commit e09ebd221e613555e98243720c9f742cc44538bd
Author: Jacek Konieczny <[email protected]>
Date:   Sat Nov 28 18:06:44 2015 +0100

    automatic change: use py_build/py_install macros

 python-txzmq.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-txzmq.spec b/python-txzmq.spec
index 793e867..57a8056 100644
--- a/python-txzmq.spec
+++ b/python-txzmq.spec
@@ -61,11 +61,11 @@ loop (reactor).
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3
+%py3_build
 %endif
 
 %if %{with tests}
@@ -79,11 +79,7 @@ PYTHONPATH=$(pwd) nosetests-%{py3_ver}
 %install
 rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
-%{__python} setup.py \
-       build --build-base build-2 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/txzmq/test
 
@@ -91,11 +87,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/txzmq/test
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-txzmq.git/commitdiff/e09ebd221e613555e98243720c9f742cc44538bd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to