1 # we define this in a separate specfile because we cannot produce all the 3 packages
2 # nodemanager-lib nodemanager-vs nodemanager-lxc in a single build
4 %define slicefamily %{pldistro}-%{distroname}-%{_arch}
6 %define name nodemanager-lxc
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 Summary: PlanetLab Node Manager Plugin for lxc nodes
17 Group: System Environment/Daemons
18 Source0: %{name}-%{version}.tar.gz
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
22 Packager: PlanetLab Central <support@planet-lab.org>
23 Distribution: PlanetLab %{plrelease}
27 Requires: libvirt-python
28 # cgroups.py needs this
29 Requires: python-inotify
30 # the common package for nodemanager
31 Requires: nodemanager-lib
32 # the lxc-specific tools for using slice images
33 Requires: lxc-sliceimage
36 nodemanager-lxc provides the lxc code for the PlanetLab Node Manager.
42 # make manages the C and Python stuff
43 %{__make} %{?_smp_mflags} lxc
46 # make manages the C and Python stuff
47 rm -rf $RPM_BUILD_ROOT
48 %{__make} %{?_smp_mflags} install-lxc DESTDIR="$RPM_BUILD_ROOT"
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(-,root,root,-)
55 %{_datadir}/NodeManager/
58 * Thu Jun 28 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - nodemanager-2.1-5
59 - first complete version for vs and lxc - functional but not thoroughly tested though
61 * Tue Jun 26 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - nodemanager-2.1-4
62 - split packaging in 3 (lib, lxc, vs)
63 - this tag will only work with lxc though