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

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


commit 862d8f842d23fb641cecd537169f9854d25f6d28
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:42 2015 +0100

    automatic change: use py_build/py_install macros

 python-gunicorn.spec | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python-gunicorn.spec b/python-gunicorn.spec
index b094eb4..f5c887c 100644
--- a/python-gunicorn.spec
+++ b/python-gunicorn.spec
@@ -56,13 +56,13 @@ cp -a py2 py3
 %build
 %if %{with python2}
 cd py2
-%{__python} setup.py build
+%py_build
 cd -
 %endif
 
 %if %{with python3}
 cd py3
-%{__python3} setup.py build
+%py3_build
 %endif
 
 %if %{with tests}
@@ -80,10 +80,7 @@ cd py3
 rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 cd py3
-%{__python3} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 
 # rename executables in %{_bindir} so they don't collide
 for executable in %{module} %{module}_django %{module}_paster; do
@@ -94,10 +91,7 @@ cd -
 
 %if %{with python2}
 cd py2
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gunicorn.git/commitdiff/862d8f842d23fb641cecd537169f9854d25f6d28



More information about the pld-cvs-commit mailing list