[packages/python-mpmath] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:31:34 CET 2015
commit 1355b8acbb4fea63cc88f155667cd05f91b6b918
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:43 2015 +0100
automatic change: use py_build/py_install macros
python-mpmath.spec | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/python-mpmath.spec b/python-mpmath.spec
index 0256db4..5075f3c 100644
--- a/python-mpmath.spec
+++ b/python-mpmath.spec
@@ -86,12 +86,12 @@ done
%build
%if %{with python2}
-python setup.py build
-%{__python} setup.py build --build-base build-2
+%py_build
+%py_build
%endif
%if %{with python3}
-%{__python3} setup.py build --build-base build-3
+%py3_build
%endif
cd doc
@@ -101,21 +101,13 @@ python build.py
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
%py_postclean
%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-mpmath.git/commitdiff/1355b8acbb4fea63cc88f155667cd05f91b6b918
More information about the pld-cvs-commit
mailing list