X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plnode-utils-lxc.spec;h=cdf579268e850f0c705d31b83d363d033cfc4185;hb=9f52e2852c4f11533d0cece022aa7c8d171e749c;hp=e54bed886cc0629f5f20eab4908d50e5393ff44e;hpb=d5f6df5e6626fa7e148cdc254bb1aa65aed73b4a;p=plnode-utils.git diff --git a/plnode-utils-lxc.spec b/plnode-utils-lxc.spec index e54bed8..cdf5792 100644 --- a/plnode-utils-lxc.spec +++ b/plnode-utils-lxc.spec @@ -1,9 +1,12 @@ %define name plnode-utils %define version 0.2 -%define taglevel 1 +%define taglevel 2 %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()")} + Summary: Python utilities for a PlanetLab node Name: %{name} Version: %{version} @@ -30,16 +33,19 @@ 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_lxc.py plnode/bwlimit.py -python setup.py build +/usr/bin/python setup.py build %install -python setup.py install --skip-build --root "$RPM_BUILD_ROOT" +/usr/bin/python setup.py install --skip-build --root "$RPM_BUILD_ROOT" %clean rm -rf $RPM_BUILD_ROOT %files %{python_sitelib}/* -%{_bindir} +%{_bindir}/* %changelog +* Mon Feb 11 2013 Stephen Soltesz - plnode-utils-0.2-2 +- import bwlimit from plnode dir, and keep legacy support. +