[packages/python-decorator] - use rpm python macros - rel 7

baggins baggins at pld-linux.org
Sat May 7 21:55:36 CEST 2016


commit 56db354d66ac1e63bc5b2b9ce6b65900d74b538c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 21:55:12 2016 +0200

    - use rpm python macros
    - rel 7

 python-decorator.spec | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)
---
diff --git a/python-decorator.spec b/python-decorator.spec
index 4b0e504..539dd03 100644
--- a/python-decorator.spec
+++ b/python-decorator.spec
@@ -8,7 +8,7 @@ Summary:	Bunch of nice decorators for Python 2
 Summary(pl.UTF-8):	Zbiór ładnych dekoratorów dla Pythona 2
 Name:		python-%{module}
 Version:	3.4.0
-Release:	6
+Release:	7
 License:	BSD
 Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/d/decorator/%{module}-%{version}.tar.gz
@@ -53,35 +53,23 @@ redirecting_stdout, locked...
 
 %build
 %if %{with python2}
-%py_build \
-	--build-base build-2
+%py_build
 %endif
 %if %{with python3}
-%py3_build \
-	--build-base build-3
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-	build \
-		--build-base build-2 \
-	install \
-		--optimize=2 \
-		--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-	build \
-		--build-base build-3 \
-	install \
-		--optimize=2 \
-		--root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-decorator.git/commitdiff/56db354d66ac1e63bc5b2b9ce6b65900d74b538c



More information about the pld-cvs-commit mailing list