X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=plnode-utils-lxc.spec;h=58c91b19bfa0332294c858f938261ba7fd67c2d1;hb=a6ef7fb0a22d7f0a7ca20070fc4c453f3ed30887;hp=e54bed886cc0629f5f20eab4908d50e5393ff44e;hpb=d5f6df5e6626fa7e148cdc254bb1aa65aed73b4a;p=plnode-utils.git diff --git a/plnode-utils-lxc.spec b/plnode-utils-lxc.spec index e54bed8..58c91b1 100644 --- a/plnode-utils-lxc.spec +++ b/plnode-utils-lxc.spec @@ -4,6 +4,9 @@ %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,10 +33,10 @@ 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