[packages/python-extras] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:22:53 CET 2015
commit bcaed8761c77b07d107302bf1d17d6c6013e07b4
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:42 2015 +0100
automatic change: use py_build/py_install macros
python-extras.spec | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/python-extras.spec b/python-extras.spec
index 887b3b8..c920db7 100644
--- a/python-extras.spec
+++ b/python-extras.spec
@@ -78,22 +78,14 @@ później wydzielony do ogólnego użytku, nie tylko w kontekście testów.
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
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/extras/tests
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/extras/tests
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-extras.git/commitdiff/bcaed8761c77b07d107302bf1d17d6c6013e07b4
More information about the pld-cvs-commit
mailing list