[packages/python-ago] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:14:39 CET 2015
commit 6a4e6f7543f01480194806f74567dec448442049
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-ago.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python-ago.spec b/python-ago.spec
index 6e68b67..232e23a 100644
--- a/python-ago.spec
+++ b/python-ago.spec
@@ -46,17 +46,17 @@ Makes customizable human readable timedeltas.
%build
%if %{with python2}
-%{__python} ./setup.py build --build-base py2
+%py_build --build-base py2
%endif
%if %{with python3}
-%{__python3} ./setup.py build --build-base py3
+%{__python3} %py_build --build-base py3
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
-%{__python} ./setup.py build \
+%py_build \
--build-base py2 \
install \
--optimize 2 \
@@ -65,7 +65,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
%if %{with python3}
install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
-%{__python3} ./setup.py build \
+%{__python3} %py_build \
--build-base py3 \
install \
--optimize 2 \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ago.git/commitdiff/6a4e6f7543f01480194806f74567dec448442049
More information about the pld-cvs-commit
mailing list