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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:29:54 CET 2015


commit 9ffc2b4f75c02a7feee532e8fbcf0483f556cef9
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-lxml.spec | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python-lxml.spec b/python-lxml.spec
index 202eb6f..9e2d5bc 100644
--- a/python-lxml.spec
+++ b/python-lxml.spec
@@ -66,29 +66,23 @@ Dokumentacja API modułu lxml.
 
 %build
 %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_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-	install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py3_install
 %endif
 
 # cleanup for packaging
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-lxml.git/commitdiff/9ffc2b4f75c02a7feee532e8fbcf0483f556cef9



More information about the pld-cvs-commit mailing list