[packages/python-Jinja2] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:09:25 CET 2015
commit 7fb4db215f42437672741cffd305e49fd41d487a
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-Jinja2.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-Jinja2.spec b/python-Jinja2.spec
index 63e8d4a..9ccc27e 100644
--- a/python-Jinja2.spec
+++ b/python-Jinja2.spec
@@ -28,16 +28,13 @@ optional sandboxed environment.
%setup -q -n %{module}-%{version}
%build
-%{__python} setup.py build
+%py_build
%{?with_tests:%{__python} setup.py test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-Jinja2.git/commitdiff/7fb4db215f42437672741cffd305e49fd41d487a
More information about the pld-cvs-commit
mailing list