X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plnode-utils-vs.spec;h=d3aadcf9d38458c44530e8d0adc247e95e1fd1a5;hb=refs%2Fheads%2Fpython3;hp=ad5817d27f795184ef0d1518454b6077081553f0;hpb=3e23f1a5eec7fdd665a2dcb1355d1118d788df8e;p=plnode-utils.git diff --git a/plnode-utils-vs.spec b/plnode-utils-vs.spec index ad5817d..d3aadcf 100644 --- a/plnode-utils-vs.spec +++ b/plnode-utils-vs.spec @@ -1,11 +1,10 @@ %define name plnode-utils -%define version 0.2 -%define taglevel 1 +%define version 1.0 +%define taglevel 0 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} -# for f12 -%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") Summary: Python utilities for a PlanetLab node Name: %{name} @@ -24,7 +23,7 @@ URL: %{SCMURL} Provides: bwlimit %description -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. +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. %prep %setup -q @@ -33,10 +32,12 @@ This python package provides utilities like bwlimit, used in various places on a # xxx fixme # this is where we chose which flavour of bwlimit gets shipped cp plnode/bwlimit_vs.py plnode/bwlimit.py -/usr/bin/python setup.py build +# for backwards compatibilty until legacy packages import from plnode +cp plnode/bwlimit_vs.py bwlimit.py +python3 setup.py build %install -/usr/bin/python setup.py install --skip-build --root "$RPM_BUILD_ROOT" +python3 setup.py install --skip-build --root "$RPM_BUILD_ROOT" %clean rm -rf $RPM_BUILD_ROOT @@ -46,7 +47,13 @@ rm -rf $RPM_BUILD_ROOT /usr/bin/bwlimit init %files -%{python_sitelib}/* +%{python3_sitelib}/* %{_bindir}/* %changelog +* Mon Jan 07 2019 Thierry - plnode-utils-1.0-0 +- ported to python3 + various cleanups +- more tolerant wrt units (accepts more floats) + +* Mon Feb 11 2013 Stephen Soltesz - plnode-utils-0.2-2 +- import bwlimit from plnode dir, and keep legacy support.