[packages/python-testtools] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:46:36 CET 2015
commit ee01c435c7aee474a322063919d99a87d67a63fd
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:44 2015 +0100
automatic change: use py_build/py_install macros
python-testtools.spec | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/python-testtools.spec b/python-testtools.spec
index fc85928..9d63a62 100644
--- a/python-testtools.spec
+++ b/python-testtools.spec
@@ -95,22 +95,14 @@ Dokumentacja HTML do pakietu %{name}.
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}/testtools/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}/testtools/tests
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-testtools.git/commitdiff/ee01c435c7aee474a322063919d99a87d67a63fd
More information about the pld-cvs-commit
mailing list