[packages/python-six] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:44:12 CET 2015
commit 1c4b2e5b10369c711ea6fb5769302b9c40cf9aee
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-six.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-six.spec b/python-six.spec
index e780e3c..418a3d3 100644
--- a/python-six.spec
+++ b/python-six.spec
@@ -72,21 +72,17 @@ Ten pakiet zawiera moduł Pythona 3.
%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
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py \
- build --build-base build-2 \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
@@ -94,11 +90,7 @@ rm -rf $RPM_BUILD_ROOT
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-six.git/commitdiff/1c4b2e5b10369c711ea6fb5769302b9c40cf9aee
More information about the pld-cvs-commit
mailing list