From bb76c6e5a5ea4cce9eb448dd490a38a2831ead1c 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-flask.spec | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/python-flask.spec b/python-flask.spec index 71aa799..b838dbc 100644 --- a/python-flask.spec +++ b/python-flask.spec @@ -67,38 +67,24 @@ good intentions. %build %if %{with python2} -# CC/CFLAGS is only for arch packages - remove on noarch packages -CC="%{__cc}" \ -CFLAGS="%{rpmcflags}" \ -%{__python} setup.py build --build-base build-2 %{?with_tests:test} +%py_build %{?with_tests:test} %endif %if %{with python3} -# CC/CFLAGS is only for arch packages - remove on noarch packages -CC="%{__cc}" \ -CFLAGS="%{rpmcflags}" \ -%{__python3} setup.py build --build-base build-3 %{?with_tests:test} +%py3_build %{?with_tests:test} %endif %install rm -rf $RPM_BUILD_ROOT %if %{with python2} -%{__python} setup.py \ - build --build-base build-2 \ - install --skip-build \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT +%py_install %py_postclean %endif %if %{with python3} -%{__python3} setup.py \ - build --build-base build-3 \ - install --skip-build \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT +%py3_install %endif # in case there are examples provided -- 2.43.0