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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:44:31 CET 2015


commit 80c1b51c1b8dab6970cbf2bf4623364be6d39091
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-slimit.spec | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-slimit.spec b/python-slimit.spec
index 8056f42..9ca89cb 100644
--- a/python-slimit.spec
+++ b/python-slimit.spec
@@ -38,7 +38,7 @@ lexer, pretty printer and a tree visitor.
 %setup -q -n %{module}-%{version}
 
 %build
-%{__python} setup.py build
+%py_build
 
 %if %{with tests}
 %{__python} setup.py test -m slimit.tests.test_lexer
@@ -47,10 +47,7 @@ lexer, pretty printer and a tree visitor.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/slimit/tests
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-slimit.git/commitdiff/80c1b51c1b8dab6970cbf2bf4623364be6d39091



More information about the pld-cvs-commit mailing list