[packages/python-repoguard] automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 18:42:16 CET 2015


commit 3901b23e8e66cf4409e5a5e1bb1e193f9362724a
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-repoguard.spec | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python-repoguard.spec b/python-repoguard.spec
index 59a6c6d..415d3c0 100644
--- a/python-repoguard.spec
+++ b/python-repoguard.spec
@@ -53,17 +53,17 @@ successor of the SVNChecker framework.
 
 %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
+%py3_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 \
@@ -72,7 +72,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 \
+%py3_build \
 	--build-base py3 \
 	install \
 	--optimize 2 \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-repoguard.git/commitdiff/3901b23e8e66cf4409e5a5e1bb1e193f9362724a



More information about the pld-cvs-commit mailing list