X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plnode-utils-lxc.spec;h=c9619eab4033bce7782d4ab96d7269f79c2f107d;hb=dc261e341992658555e3823ed086b9a72fc09dfd;hp=aed7c122991bc2e3a57c57fd2b6465eb77e3accc;hpb=a763f46c558a14a0b0be5cae6deb633cef64685e;p=plnode-utils.git diff --git a/plnode-utils-lxc.spec b/plnode-utils-lxc.spec index aed7c12..c9619ea 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} @@ -29,17 +32,17 @@ This python package provides utilities like bwlimit, used in various places on a %build # xxx fixme # this is where we chose which flavour of bwlimit gets shipped -cp bwlimit_lxc.py bwlimit.py -python setup.py build +cp plnode/bwlimit_lxc.py plnode/bwlimit.py +/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