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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:11:07 CET 2015


commit 87c537d35c4e2da69daef71b22339aa847705a05
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-PyOpenGL.spec | 32 ++++++++------------------------
 1 file changed, 8 insertions(+), 24 deletions(-)
---
diff --git a/python-PyOpenGL.spec b/python-PyOpenGL.spec
index 0a1bac7..ab22f84 100644
--- a/python-PyOpenGL.spec
+++ b/python-PyOpenGL.spec
@@ -89,36 +89,28 @@ Programy demonstracyjne dla pakietu PyOpenGL.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2
+%py_build
 
 cd %{module}-Demo-%{version}a1
-%{__python} setup.py build --build-base build-2
+%py_build
 cd ..
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3
+%py3_build
 
 cd %{module}-Demo-%{version}a1
-%{__python} setup.py build --build-base build-3
+%py_build --build-base build-3
 %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
 
 cd %{module}-Demo-%{version}a1
-%{__python} setup.py \
-	build --build-base build-2 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 cd ..
 
 %py_postclean
@@ -127,18 +119,10 @@ cd ..
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-	build --build-base build-3 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 
 cd %{module}-Demo-%{version}a1
-%{__python3} setup.py \
-	build --build-base build-3 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 
 #{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/OpenGL/{Demo,doc}
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PyOpenGL.git/commitdiff/87c537d35c4e2da69daef71b22339aa847705a05



More information about the pld-cvs-commit mailing list