[et-mgmt-tools] koan patch to use __python

Tru Huynh tru at pasteur.fr
Wed Oct 18 21:48:49 UTC 2006


Hi,

same request on koan.spec (%{__python} instead of python)

[tru at casewell koan]$ hg diff koan.spec 
diff -r 85dbf26fe42a koan.spec
--- a/koan.spec Tue Oct 17 11:42:11 2006 -0400
+++ b/koan.spec Wed Oct 18 23:47:17 2006 +0200
@@ -26,14 +26,14 @@ any existing system.  For use with a boo
 %setup -q
 
 %build
-python setup.py build
+%{__python} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-python setup.py install --optimize=1 --root=$RPM_BUILD_ROOT
+test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --optimize=1 --root=$RPM_BUILD_ROOT
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)

Cheers,

Tru
-- 
Dr Tru Huynh          | http://www.pasteur.fr/recherche/unites/Binfs/
mailto:tru at pasteur.fr | tel/fax +33 1 45 68 87 37/19
Institut Pasteur, 25-28 rue du Docteur Roux, 75724 Paris CEDEX 15 France  




More information about the et-mgmt-tools mailing list