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

    automatic change: use py_build/py_install macros

 python-progressbar.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-progressbar.spec b/python-progressbar.spec
index 34a9443..f0b3285 100644
--- a/python-progressbar.spec
+++ b/python-progressbar.spec
@@ -45,32 +45,24 @@ visual clue that processing is underway.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-       build --build-base build-2 \
-       install --skip-build \
-       --root=$RPM_BUILD_ROOT \
-       --optimize=2
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --root=$RPM_BUILD_ROOT \
-       --optimize=2
+%py3_install
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-progressbar.git/commitdiff/2caae4c104baa2ffee632f16eb59e4addbfc4d6e

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

Reply via email to