]> git.pld-linux.org Git - packages/ganeti-instance-debootstrap.git/blame - ganeti-instance-debootstrap.spec
- noarch
[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
4126280e 4Release: 2
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
4126280e 25BuildArch: noarch
ade3f0b2
JR
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This is a guest OS definition for Ganeti. It will install a minimal
30version of Debian or Ubuntu via debootstrap (thus it requires network
31access).
32
33%prep
34%setup -q
e2f503ad 35%patch0 -p1
ade3f0b2
JR
36
37%build
38%configure
39%{__make}
40
41%install
42rm -rf $RPM_BUILD_ROOT
e2f503ad
JR
43install -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
50ln -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
55rm -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
This page took 0.062695 seconds and 4 git commands to generate.