commit 608a2915f09d01fda3e5531645c5381de505681a
Author: Jacek Konieczny <[email protected]>
Date:   Thu Nov 26 10:49:12 2015 +0100

    Use py_build/py_install

 python-mechanicalsoup.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-mechanicalsoup.spec b/python-mechanicalsoup.spec
index 041d21a..18498e7 100644
--- a/python-mechanicalsoup.spec
+++ b/python-mechanicalsoup.spec
@@ -50,30 +50,22 @@ Javascript.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build
 %endif
 
 %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
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-mechanicalsoup.git/commitdiff/608a2915f09d01fda3e5531645c5381de505681a

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

Reply via email to