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

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


commit 6f3430bbd3b691c742f36fb89c33fa152208abeb
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:44 2015 +0100

    automatic change: use py_build/py_install macros

 python-xhtml2pdf.spec | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-xhtml2pdf.spec b/python-xhtml2pdf.spec
index 00ded11..0ade852 100644
--- a/python-xhtml2pdf.spec
+++ b/python-xhtml2pdf.spec
@@ -31,16 +31,13 @@ HTML/CSS to PDF converter based on Python.
 
 
 %build
-%{__python} setup.py build
+%py_build
 
 %{?with_tests:%{__python} setup.py test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-xhtml2pdf.git/commitdiff/6f3430bbd3b691c742f36fb89c33fa152208abeb



More information about the pld-cvs-commit mailing list