X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plnode-utils-lxc.spec;h=83e933e58c09d5098eae72eafd0099edabac4427;hb=6bcc71dba2742c92cb386a5f135918129dfc6600;hp=e54bed886cc0629f5f20eab4908d50e5393ff44e;hpb=d5f6df5e6626fa7e148cdc254bb1aa65aed73b4a;p=plnode-utils.git diff --git a/plnode-utils-lxc.spec b/plnode-utils-lxc.spec index e54bed8..83e933e 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,16 +33,16 @@ 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