[packages/python-html2text] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:25:56 CET 2015
commit 19e0b4787a000a90955f1ae7a0bbe36c3121c902
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:42 2015 +0100
automatic change: use py_build/py_install macros
python-html2text.spec | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python-html2text.spec b/python-html2text.spec
index e1fab4f..eee0e84 100644
--- a/python-html2text.spec
+++ b/python-html2text.spec
@@ -41,29 +41,23 @@ A HTML to markdown-structured text converter.
%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
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-html2text.git/commitdiff/19e0b4787a000a90955f1ae7a0bbe36c3121c902
More information about the pld-cvs-commit
mailing list