[packages/python-hgtools] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:25:52 CET 2015
commit b9fda36836269948dbe3d9c34a2212717f9b893b
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-hgtools.spec | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/python-hgtools.spec b/python-hgtools.spec
index 004eee7..7e11551 100644
--- a/python-hgtools.spec
+++ b/python-hgtools.spec
@@ -76,21 +76,13 @@ wersji (VCS) Mercurial oraz Git.
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-hgtools.git/commitdiff/b9fda36836269948dbe3d9c34a2212717f9b893b
More information about the pld-cvs-commit
mailing list