[packages/python-jinja2] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:27:38 CET 2015
commit d831097c17508334c9f14a7af79f30104633dc8a
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-jinja2.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-jinja2.spec b/python-jinja2.spec
index ef06794..60ef448 100644
--- a/python-jinja2.spec
+++ b/python-jinja2.spec
@@ -80,10 +80,10 @@ Dokumentacja API silnika szablonów Jinja2.
%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
%if %{with doc}
@@ -96,21 +96,13 @@ rm -rf _build/html/_sources
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_postclean
%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-jinja2.git/commitdiff/d831097c17508334c9f14a7af79f30104633dc8a
More information about the pld-cvs-commit
mailing list