]> git.pld-linux.org Git - packages/ganeti-instance-debootstrap.git/blob - ganeti-instance-debootstrap.spec
- noarch
[packages/ganeti-instance-debootstrap.git] / ganeti-instance-debootstrap.spec
1 Summary:        Debian/Ubuntu guest OS definition for Ganeti
2 Name:           ganeti-instance-debootstrap
3 Version:        0.14
4 Release:        2
5 License:        GPL v2
6 Group:          Applications/System
7 Source0:        https://ganeti.googlecode.com/files/%{name}-%{version}.tar.gz
8 # Source0-md5:  318039b68d63453ac115a6987e31c6f0
9 Patch0:         kpartx-sync.patch
10 URL:            https://code.google.com/p/ganeti/
11 BuildRequires:  rpmbuild(macros) >= 1.647
12 Requires:       blockdev
13 Requires:       coreutils
14 Requires:       debootstrap
15 Requires:       dpkg
16 Requires:       dump
17 Requires:       e2fsprogs
18 Requires:       ganeti
19 Requires:       kpartx
20 Requires:       losetup
21 Requires:       mount
22 Requires:       sed
23 Requires:       tar
24 Requires:       util-linux
25 BuildArch:      noarch
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
35 %patch0 -p1
36
37 %build
38 %configure
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ganeti/instance-debootstrap/hooks \
44         $RPM_BUILD_ROOT/var/cache/ganeti-instance-debootstrap
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
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
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
62 %dir %{_sysconfdir}/ganeti/instance-debootstrap/hooks
63 %dir %{_sysconfdir}/ganeti/instance-debootstrap/variants
64 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-debootstrap/variants/default.conf
65 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-debootstrap/variants.list
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
76 /var/cache/ganeti-instance-debootstrap
This page took 0.05697 seconds and 3 git commands to generate.