root / ganeti-instance-image.spec @ 47c86659
History | View | Annotate | Download (2.6 kB)
1 | 64018e9c | Lance Albertson | %define instancename image |
---|---|---|---|
2 | 64018e9c | Lance Albertson | Name: ganeti-instance-image |
3 | 6fa4aeee | Lance Albertson | Version: 0.5.1 |
4 | 5178b88b | Lance Albertson | Release: 1%{?dist} |
5 | 64018e9c | Lance Albertson | Summary: Guest OS definition for Ganeti based on Linux-based images |
6 | 64018e9c | Lance Albertson | |
7 | 64018e9c | Lance Albertson | Group: System Environment/Daemons |
8 | 64018e9c | Lance Albertson | License: GPLv2 |
9 | 64018e9c | Lance Albertson | URL: http://code.osuosl.org/projects/ganeti-image |
10 | 5178b88b | Lance Albertson | Source0: http://code.osuosl.org/attachments/download/1893/%{name}-%{version}.tar.gz |
11 | 64018e9c | Lance Albertson | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
12 | 64018e9c | Lance Albertson | BuildRequires: qemu-img, dump, tar |
13 | 64018e9c | Lance Albertson | Requires: qemu-img, dump, tar, ganeti |
14 | 64018e9c | Lance Albertson | BuildArch: noarch |
15 | 64018e9c | Lance Albertson | |
16 | 64018e9c | Lance Albertson | %description |
17 | 64018e9c | Lance Albertson | This is a guest OS definition for Ganeti (http://code.google.com/p/ganeti). It |
18 | 64018e9c | Lance Albertson | will install a Linux-based image using either a tarball, filesystem dump, or a |
19 | 64018e9c | Lance Albertson | qemu-img disk image file. This definition also allows for manual creation of an |
20 | 64018e9c | Lance Albertson | instance by simply setting only the disks up and allowing you to boot via the |
21 | 64018e9c | Lance Albertson | install cd manually. The goal of this instance is to allow fast and flexible |
22 | 64018e9c | Lance Albertson | installation of instances without the need for external tools such as |
23 | 64018e9c | Lance Albertson | debootstrap. |
24 | 64018e9c | Lance Albertson | |
25 | 64018e9c | Lance Albertson | |
26 | 64018e9c | Lance Albertson | %prep |
27 | 64018e9c | Lance Albertson | %setup -q |
28 | 64018e9c | Lance Albertson | |
29 | 64018e9c | Lance Albertson | |
30 | 64018e9c | Lance Albertson | %build |
31 | 64018e9c | Lance Albertson | %configure \ |
32 | 64018e9c | Lance Albertson | --prefix=%{_prefix} \ |
33 | 64018e9c | Lance Albertson | --sysconfdir=%{_sysconfdir} \ |
34 | 64018e9c | Lance Albertson | --localstatedir=%{_localstatedir} \ |
35 | 64018e9c | Lance Albertson | --with-os-dir=%{_libdir}/ganeti/os |
36 | 64018e9c | Lance Albertson | make %{?_smp_mflags} |
37 | 64018e9c | Lance Albertson | |
38 | 64018e9c | Lance Albertson | |
39 | 64018e9c | Lance Albertson | %install |
40 | 64018e9c | Lance Albertson | rm -rf $RPM_BUILD_ROOT |
41 | 64018e9c | Lance Albertson | make install DESTDIR=$RPM_BUILD_ROOT |
42 | 64018e9c | Lance Albertson | |
43 | 64018e9c | Lance Albertson | # Next part covered by %doc in %files |
44 | 64018e9c | Lance Albertson | rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/%{name} |
45 | 64018e9c | Lance Albertson | |
46 | 64018e9c | Lance Albertson | # Workaround issue #92 http://code.google.com/p/ganeti/issues/detail?id=92 |
47 | 64018e9c | Lance Albertson | # The install scripts create a symlink using the fully qualified path |
48 | 64018e9c | Lance Albertson | # that includes the build root path. |
49 | 64018e9c | Lance Albertson | pushd $RPM_BUILD_ROOT%{_libdir}/ganeti/os/%{instancename} |
50 | 64018e9c | Lance Albertson | rm -f variants.list |
51 | 64018e9c | Lance Albertson | ln -s ../../../../..%{_sysconfdir}/ganeti/instance-%{instancename}/variants.list variants.list |
52 | 64018e9c | Lance Albertson | popd |
53 | 64018e9c | Lance Albertson | |
54 | 64018e9c | Lance Albertson | |
55 | 64018e9c | Lance Albertson | %clean |
56 | 64018e9c | Lance Albertson | rm -rf $RPM_BUILD_ROOT |
57 | 64018e9c | Lance Albertson | |
58 | 64018e9c | Lance Albertson | |
59 | 64018e9c | Lance Albertson | %files |
60 | 64018e9c | Lance Albertson | %defattr(-,root,root,-) |
61 | 64018e9c | Lance Albertson | %doc COPYING README NEWS example/hooks/* |
62 | 64018e9c | Lance Albertson | %config(noreplace) %{_sysconfdir}/ganeti/instance-%{instancename}/variants/default.conf |
63 | 64018e9c | Lance Albertson | %config(noreplace) %{_sysconfdir}/ganeti/instance-%{instancename}/variants.list |
64 | bb78ba49 | Nikos Skalkotos | %config(noreplace) %{_sysconfdir}/ganeti/instance-%{instancename}/hooks/linux/* |
65 | 80972ed1 | Nikos Skalkotos | %config(noreplace) %{_sysconfdir}/ganeti/instance-%{instancename}/hooks/windows/* |
66 | 64018e9c | Lance Albertson | %{_libdir}/ganeti/os/%{instancename}/* |
67 | 64018e9c | Lance Albertson | |
68 | 64018e9c | Lance Albertson | |
69 | 64018e9c | Lance Albertson | |
70 | 64018e9c | Lance Albertson | %changelog |
71 | 6fa4aeee | Lance Albertson | * Wed May 25 2011 Lance Albertson <lance osuosl org> |
72 | 6fa4aeee | Lance Albertson | - Bugfix release |
73 | 6fa4aeee | Lance Albertson | - Ticket #4785 - blkid sometimes didn't return a value |
74 | 6fa4aeee | Lance Albertson | - Ticket #5685 - baselayout-2.x support for gentoo guests |
75 | 6fa4aeee | Lance Albertson | |
76 | 5178b88b | Lance Albertson | * Fri Apr 1 2011 Lance Albertson <lance osuosl org> |
77 | 5178b88b | Lance Albertson | - Version bump to 0.5 |
78 | 5178b88b | Lance Albertson | |
79 | 64018e9c | Lance Albertson | * Tue Nov 9 2010 Stephen Fromm <stephenf nero net> |
80 | 64018e9c | Lance Albertson | - Fix handling of variants.list in /usr/lib/ganeti/os/<name> |
81 | 64018e9c | Lance Albertson | |
82 | 64018e9c | Lance Albertson | * Thu Nov 4 2010 Stephen Fromm <stephenf nero net> |
83 | 64018e9c | Lance Albertson | - Initial package for version 0.4 |