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