Browse code

Added micro-config-drive package

Change-Id: I717a6e17bcd39489b8ef802862679ff398051d21
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1250
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

dthaluru authored on 2016/08/30 02:47:32
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,62 @@
0
+Summary:    A cloud-init implementation in C.
1
+Name:       micro-config-drive
2
+Version:    25
3
+Release:    1%{?dist}
4
+Group:      Development/Tools
5
+License:    GPL-3.0
6
+URL:        https://github.com/clearlinux/micro-config-drive
7
+Source0:    https://github.com/clearlinux/micro-config-drive/releases/download/v%{version}/%{name}-%{version}.tar.xz
8
+%define sha1 micro-config-drive=11945b6c13e5f5e126bc12906c69cc057026bc28
9
+BuildRequires:    e2fsprogs-devel
10
+BuildRequires:    shadow
11
+BuildRequires:    check
12
+BuildRequires:    glib-devel
13
+BuildRequires:    json-glib-devel
14
+BuildRequires:    curl
15
+BuildRequires:    parted
16
+BuildRequires:    libyaml-devel
17
+BuildRequires:    systemd
18
+Requires:    json-glib
19
+Requires:    glib
20
+Requires:    libyaml
21
+Requires:    parted
22
+
23
+%description
24
+A cloud-init for Clear Linux* Project for Intel Architecture.
25
+
26
+%prep
27
+%setup -q
28
+
29
+%build
30
+autoreconf -vif
31
+%configure --disable-static --with-packagemgr=tdnf
32
+make V=1 CFLAGS="%{optflags}" %{?_smp_mflags}
33
+
34
+%check
35
+make VERBOSE=1 V=1 %{?_smp_mflags} check
36
+
37
+%install
38
+rm -rf $RPM_BUILD_ROOT
39
+%make_install
40
+
41
+%post
42
+%systemd_post ucd.service
43
+
44
+%preun
45
+%systemd_preun ucd.service
46
+
47
+%postun
48
+%systemd_postun_with_restart ucd.service
49
+
50
+
51
+%files
52
+%defattr(-,root,root,-)
53
+%{_bindir}/ucd
54
+/lib/systemd/system/ucd.service
55
+/lib/systemd/system/multi-user.target.wants/ucd.service
56
+%doc /usr/share/man/man1/*
57
+%doc /usr/share/man/man5/*
58
+
59
+%changelog
60
+*    Wed Aug 3 2016 Divya Thaluru <dthaluru@vmware.com> 25-1
61
+-    Initial version
... ...
@@ -151,6 +151,7 @@
151 151
         "nasm",
152 152
         "libmnl",
153 153
         "ipset",
154
-        "build-essential"
154
+        "build-essential",
155
+        "micro-config-drive"
155 156
             ]
156 157
 }