]>
Commit | Line | Data |
---|---|---|
ade3f0b2 JR |
1 | Summary: Debian/Ubuntu guest OS definition for Ganeti |
2 | Name: ganeti-instance-debootstrap | |
3 | Version: 0.14 | |
4126280e | 4 | Release: 2 |
ade3f0b2 JR |
5 | License: GPL v2 |
6 | Group: Applications/System | |
7 | Source0: https://ganeti.googlecode.com/files/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 318039b68d63453ac115a6987e31c6f0 | |
e2f503ad | 9 | Patch0: kpartx-sync.patch |
ade3f0b2 JR |
10 | URL: https://code.google.com/p/ganeti/ |
11 | BuildRequires: rpmbuild(macros) >= 1.647 | |
b987b0d4 JR |
12 | Requires: blockdev |
13 | Requires: coreutils | |
ade3f0b2 | 14 | Requires: debootstrap |
e2f503ad | 15 | Requires: dpkg |
b987b0d4 JR |
16 | Requires: dump |
17 | Requires: e2fsprogs | |
ade3f0b2 | 18 | Requires: ganeti |
39c7fa13 JR |
19 | Requires: kpartx |
20 | Requires: losetup | |
39c7fa13 JR |
21 | Requires: mount |
22 | Requires: sed | |
39c7fa13 | 23 | Requires: tar |
b987b0d4 | 24 | Requires: util-linux |
4126280e | 25 | BuildArch: noarch |
ade3f0b2 JR |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | This is a guest OS definition for Ganeti. It will install a minimal | |
30 | version of Debian or Ubuntu via debootstrap (thus it requires network | |
31 | access). | |
32 | ||
33 | %prep | |
34 | %setup -q | |
e2f503ad | 35 | %patch0 -p1 |
ade3f0b2 JR |
36 | |
37 | %build | |
38 | %configure | |
39 | %{__make} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
e2f503ad JR |
43 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/ganeti/instance-debootstrap/hooks \ |
44 | $RPM_BUILD_ROOT/var/cache/ganeti-instance-debootstrap | |
ade3f0b2 JR |
45 | |
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
e2f503ad JR |
49 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/ganeti/os/debootstrap/variants.list $RPM_BUILD_ROOT%{_sysconfdir}/ganeti/instance-debootstrap |
50 | ln -s %{_sysconfdir}/ganeti/instance-debootstrap/variants.list $RPM_BUILD_ROOT%{_datadir}/ganeti/os/debootstrap/variants.list | |
51 | ||
ade3f0b2 JR |
52 | %{__rm} -r $RPM_BUILD_ROOT/%{_docdir}/%{name} |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc NEWS README examples | |
60 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/ganeti-instance-debootstrap | |
61 | %dir %{_sysconfdir}/ganeti/instance-debootstrap | |
e2f503ad | 62 | %dir %{_sysconfdir}/ganeti/instance-debootstrap/hooks |
ade3f0b2 JR |
63 | %dir %{_sysconfdir}/ganeti/instance-debootstrap/variants |
64 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-debootstrap/variants/default.conf | |
e2f503ad | 65 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-debootstrap/variants.list |
ade3f0b2 JR |
66 | %dir %{_datadir}/ganeti/os/debootstrap |
67 | %{_datadir}/ganeti/os/debootstrap/common.sh | |
68 | %attr(755,root,root) %{_datadir}/ganeti/os/debootstrap/create | |
69 | %attr(755,root,root) %{_datadir}/ganeti/os/debootstrap/export | |
70 | %{_datadir}/ganeti/os/debootstrap/ganeti_api_version | |
71 | %attr(755,root,root) %{_datadir}/ganeti/os/debootstrap/import | |
72 | %{_datadir}/ganeti/os/debootstrap/parameters.list | |
73 | %attr(755,root,root) %{_datadir}/ganeti/os/debootstrap/rename | |
74 | %{_datadir}/ganeti/os/debootstrap/variants.list | |
75 | %attr(755,root,root) %{_datadir}/ganeti/os/debootstrap/verify | |
e2f503ad | 76 | /var/cache/ganeti-instance-debootstrap |