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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:35:25 CET 2015


commit 438626b1fe157364e5da45f320fc265c5e434018
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-py.spec | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/python-py.spec b/python-py.spec
index b74996b..47708d0 100644
--- a/python-py.spec
+++ b/python-py.spec
@@ -78,12 +78,12 @@ cp -p %{SOURCE1} doc
 
 %build
 %if %{with python2}
-%{__python} setup.py build \
+%py_build \
 	--build-base build-2
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build \
+%py3_build \
 	--build-base build-3
 %endif
 
@@ -96,11 +96,7 @@ PYTHONPATH=$(pwd) \
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-	build --build-base build-2 \
-	install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py_install
 
 %py_postclean
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-py.git/commitdiff/438626b1fe157364e5da45f320fc265c5e434018



More information about the pld-cvs-commit mailing list