mention /usr/bin/python when invoking setup.py, because otherwise on
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 31 Jan 2013 10:46:51 +0000 (11:46 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 31 Jan 2013 10:46:51 +0000 (11:46 +0100)
f18 we end up with a Requires: /bin/python

plnode-utils-vs.spec

index 18290d0..ad5817d 100644 (file)
@@ -33,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_vs.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
@@ -47,6 +47,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %{python_sitelib}/*
-%{_bindir}
+%{_bindir}/*
 
 %changelog