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

pyplnet.spec

index 3faa683..794e4f7 100644 (file)
@@ -32,11 +32,11 @@ configuration data recorded at PLC.
 %setup -q
 
 %build
-python setup.py build
+/usr/bin/python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-python setup.py install --skip-build --root "$RPM_BUILD_ROOT"
+/usr/bin/python setup.py install --skip-build --root "$RPM_BUILD_ROOT"
 chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/plnet.py
 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
 ln -s %{python_sitelib}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet