1 %define name plnode-utils
5 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
8 %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
10 Summary: Python utilities for a PlanetLab node
15 Group: System Environment/Libraries
16 Source0: %{name}-%{version}.tar.gz
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
20 Packager: PlanetLab Central <support@planet-lab.org>
21 Distribution: PlanetLab %{plrelease}
27 This python 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.
34 # this is where we chose which flavour of bwlimit gets shipped
35 cp plnode/bwlimit_vs.py plnode/bwlimit.py
39 python setup.py install --skip-build --root "$RPM_BUILD_ROOT"
42 rm -rf $RPM_BUILD_ROOT
44 # moved from util-vserver-pl package