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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:38:05 CET 2015


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

    automatic change: use py_build/py_install macros

 python-pygments.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pygments.git/commitdiff/cd0bf6744dfd9f9b0e0a98a6f76f86622753949a



More information about the pld-cvs-commit mailing list