X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plnode-utils-lxc.spec;h=a1763b0bb021496aacfd9b2bb48582daa78c5b58;hb=bad9e5e4dfa5c8c697e9da8784c80865e4ac1fb1;hp=cfb13ec334672efcddf4c096c16b773dca32b238;hpb=bfd20f8b235c56039fda4caa01d066d096674b42;p=plnode-utils.git diff --git a/plnode-utils-lxc.spec b/plnode-utils-lxc.spec index cfb13ec..a1763b0 100644 --- a/plnode-utils-lxc.spec +++ b/plnode-utils-lxc.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,25 +23,31 @@ 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 %build # xxx fixme -# this is where we chose which flavour of bwlimit gets shipped +# this is where we choose which flavour of bwlimit gets shipped cp plnode/bwlimit_lxc.py plnode/bwlimit.py -python setup.py build +python3 setup.py build %install -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 %files -%{python_sitelib}/* -%{_bindir} +%{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.