From: Jacek Konieczny Date: Sat, 28 Nov 2015 17:06:43 +0000 (+0100) Subject: automatic change: use py_build/py_install macros X-Git-Tag: auto/th/python-pygments-2.0.2-5~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fpython-pygments.git;a=commitdiff_plain;h=cd0bf6744dfd9f9b0e0a98a6f76f86622753949a automatic change: use py_build/py_install macros --- diff --git a/python-pygments.spec b/python-pygments.spec index 494bdff..682d565 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -110,22 +110,18 @@ forów, wiki i inne plikacje wymagające ładnego wyświetlania kodu %build %if %{with python2} -%{__python} setup.py build -b build-2 +%py_build %endif %if %{with python3} -%{__python3} setup.py build -b build-3 +%py3_build %endif %install rm -rf $RPM_BUILD_ROOT %if %{with python2} -%{__python} setup.py \ - build -b build-2 \ - install \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT +%py_install mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-2} @@ -135,11 +131,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-2} %endif %if %{with python3} -%{__python3} setup.py \ - build -b build-3 \ - install \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT +%py3_install mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-3} %endif