[packages/python-mechanicalsoup] Use py_build/py_install
jajcus
jajcus at pld-linux.org
Thu Nov 26 10:49:24 CET 2015
commit 608a2915f09d01fda3e5531645c5381de505681a
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
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
More information about the pld-cvs-commit
mailing list