[packages/python-logilab-astng] automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 18:29:46 CET 2015


commit 34413eae533ea9bf3122b31f268341c8f5b8b4d6
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:43 2015 +0100

    automatic change: use py_build/py_install macros

 python-logilab-astng.spec | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/python-logilab-astng.spec b/python-logilab-astng.spec
index 55980a0..2c96e8b 100644
--- a/python-logilab-astng.spec
+++ b/python-logilab-astng.spec
@@ -70,17 +70,17 @@ rm */*/*py2.5.egg
 
 %build
 %if %{with python2}
-%{__python} setup.py build
+%py_build
 %endif
 %if %{with python3}
-%{__python3} setup.py build --build-base=build3
+%py3_build --build-base=build3
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python3}
-%{__python3} setup.py build --build-base=build3 install \
+%py3_build --build-base=build3 install \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
@@ -89,9 +89,7 @@ rm $RPM_BUILD_ROOT%{py3_sitescriptdir}/logilab/__init__.py
 %endif
 
 %if %{with python2}
-%{__python} setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-logilab-astng.git/commitdiff/34413eae533ea9bf3122b31f268341c8f5b8b4d6



More information about the pld-cvs-commit mailing list