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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:48:50 CET 2015


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

    automatic change: use py_build/py_install macros

 python-x2go.spec | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python-x2go.spec b/python-x2go.spec
index f36050c..c96b4a7 100644
--- a/python-x2go.spec
+++ b/python-x2go.spec
@@ -87,12 +87,12 @@ cp -a . py3
 %endif
 
 %build
-%{__python} setup.py build
+%py_build
 
 %if %{with python3}
 cd py3
 2to3 --write --nobackups py3
-%{__python3} setup.py build
+%py3_build
 cd ..
 %endif
 
@@ -106,17 +106,11 @@ epydoc --debug -n "Python X2Go" -u http://www.x2go.org -v --html --no-private -o
 rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 cd py3
-%{__python3} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 cd ..
 %endif
 
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/x2go/tests
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-x2go.git/commitdiff/6070e350971236fdb0b167158d97e62ebcaae3b2



More information about the pld-cvs-commit mailing list