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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:30:13 CET 2015


commit 3a472966114c8f29c45bde7be6964c92648c2e8f
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-matplotlib.spec | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/python-matplotlib.spec b/python-matplotlib.spec
index 5d2960f..cb70d67 100644
--- a/python-matplotlib.spec
+++ b/python-matplotlib.spec
@@ -99,20 +99,18 @@ rm -f setup.cfg
 export CFLAGS="%{rpmcflags}"
 
 %if %{with python2}
-%{__python} setup.py build
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py_install
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
@@ -125,9 +123,7 @@ rm -rf $RPM_BUILD_ROOT%{py_sitedir}/%{module}/tests
 %endif
 
 %if %{with python3}
-%{__python3} setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py3_install
 
 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-matplotlib.git/commitdiff/3a472966114c8f29c45bde7be6964c92648c2e8f



More information about the pld-cvs-commit mailing list