Statistics
| Branch: | Revision:

root / ganeti-instance-image.spec @ 80972ed1

History | View | Annotate | Download (2.6 kB)

1
%define         instancename    image
2
Name:		ganeti-instance-image
3
Version:	0.5.1
4
Release:	1%{?dist}
5
Summary:	Guest OS definition for Ganeti based on Linux-based images
6

    
7
Group:		System Environment/Daemons
8
License:	GPLv2
9
URL:		http://code.osuosl.org/projects/ganeti-image
10
Source0:	http://code.osuosl.org/attachments/download/1893/%{name}-%{version}.tar.gz
11
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
12
BuildRequires:	qemu-img, dump, tar
13
Requires:       qemu-img, dump, tar, ganeti
14
BuildArch:      noarch
15

    
16
%description
17
This is a guest OS definition for Ganeti (http://code.google.com/p/ganeti). It
18
will install a Linux-based image using either a tarball, filesystem dump, or a
19
qemu-img disk image file. This definition also allows for manual creation of an
20
instance by simply setting only the disks up and allowing you to boot via the
21
install cd manually.  The goal of this instance is to allow fast and flexible
22
installation of instances without the need for external tools such as
23
debootstrap.
24

    
25

    
26
%prep
27
%setup -q
28

    
29

    
30
%build
31
%configure \
32
    --prefix=%{_prefix} \
33
    --sysconfdir=%{_sysconfdir} \
34
    --localstatedir=%{_localstatedir} \
35
    --with-os-dir=%{_libdir}/ganeti/os
36
make %{?_smp_mflags}
37

    
38

    
39
%install
40
rm -rf $RPM_BUILD_ROOT
41
make install DESTDIR=$RPM_BUILD_ROOT
42

    
43
# Next part covered by %doc in %files
44
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}
45

    
46
# Workaround issue #92 http://code.google.com/p/ganeti/issues/detail?id=92
47
# The install scripts create a symlink using the fully qualified path
48
# that includes the build root path.
49
pushd $RPM_BUILD_ROOT%{_libdir}/ganeti/os/%{instancename}
50
rm -f variants.list
51
ln -s ../../../../..%{_sysconfdir}/ganeti/instance-%{instancename}/variants.list variants.list
52
popd
53

    
54

    
55
%clean
56
rm -rf $RPM_BUILD_ROOT
57

    
58

    
59
%files
60
%defattr(-,root,root,-)
61
%doc COPYING README NEWS example/hooks/*
62
%config(noreplace) %{_sysconfdir}/ganeti/instance-%{instancename}/variants/default.conf
63
%config(noreplace) %{_sysconfdir}/ganeti/instance-%{instancename}/variants.list
64
%config(noreplace) %{_sysconfdir}/ganeti/instance-%{instancename}/hooks/linux/*
65
%config(noreplace) %{_sysconfdir}/ganeti/instance-%{instancename}/hooks/windows/*
66
%{_libdir}/ganeti/os/%{instancename}/*
67

    
68

    
69

    
70
%changelog
71
* Wed May 25 2011 Lance Albertson <lance osuosl org>
72
- Bugfix release
73
- Ticket #4785 - blkid sometimes didn't return a value
74
- Ticket #5685 - baselayout-2.x support for gentoo guests
75

    
76
* Fri Apr  1 2011 Lance Albertson <lance osuosl org>
77
- Version bump to 0.5
78

    
79
* Tue Nov  9 2010 Stephen Fromm <stephenf nero net>
80
- Fix handling of variants.list in /usr/lib/ganeti/os/<name>
81

    
82
* Thu Nov  4 2010 Stephen Fromm <stephenf nero net>
83
- Initial package for version 0.4