9 # this is getting really a lot of stuff, could be made simpler probably
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
13 Packager: PlanetLab Central <support@planet-lab.org>
14 Distribution: PlanetLab %{plrelease}
17 Summary: Userspace tools for switching between lxc containers
22 Group: System Environment/Kernel
23 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
24 Source0: lxctools-%{version}.tar.gz
27 Userspace tools for switching between lxc containers.
36 mkdir -p $RPM_BUILD_ROOT/usr/sbin
37 install -D -m 755 vsh $RPM_BUILD_ROOT/usr/sbin/vsh
38 install -D -m 755 lxcsu $RPM_BUILD_ROOT/usr/sbin/lxcsu
39 chmod u+s $RPM_BUILD_ROOT/usr/sbin/lxcsu
40 cp build/lib*/setns.so $RPM_BUILD_ROOT/usr/sbin
43 rm -rf $RPM_BUILD_ROOT
49 chmod u+s /usr/sbin/vsh