1 %define name plnode-utils
5 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
7 %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
9 Summary: Python utilities for a PlanetLab node
14 Group: System Environment/Libraries
15 Source0: %{name}-%{version}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
19 Packager: PlanetLab Central <support@planet-lab.org>
20 Distribution: PlanetLab %{plrelease}
26 This python3 package provides utilities like bwlimit, used in various places on a PlanetLab node, nodemanager and mom among others. It aims at cleaning up the packaging scheme, as bwlimit used to ship with util-vserver-pl, but is relevant in the lxc variant as well.
33 # this is where we chose which flavour of bwlimit gets shipped
34 cp plnode/bwlimit_vs.py plnode/bwlimit.py
35 # for backwards compatibilty until legacy packages import from plnode
36 cp plnode/bwlimit_vs.py bwlimit.py
37 python3 setup.py build
40 python3 setup.py install --skip-build --root "$RPM_BUILD_ROOT"
43 rm -rf $RPM_BUILD_ROOT
45 # moved from util-vserver-pl package
54 * Mon Feb 11 2013 Stephen Soltesz <soltesz@opentechinstitute.org> - plnode-utils-0.2-2
55 - import bwlimit from plnode dir, and keep legacy support.