From 19e0b4787a000a90955f1ae7a0bbe36c3121c902 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Sat, 28 Nov 2015 18:06:42 +0100 Subject: [PATCH] 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 -- 2.44.0