[packages/python-oauthlib] - use rpm python macros - rel 4

baggins baggins at pld-linux.org
Sat May 7 21:06:07 CEST 2016


commit fd8b22ee6220566e9ca5213e131f41310cfe14f2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 21:05:18 2016 +0200

    - use rpm python macros
    - rel 4

 python-oauthlib.spec | 24 ++++++------------------
 1 file changed, 6 insertions(+), 18 deletions(-)
---
diff --git a/python-oauthlib.spec b/python-oauthlib.spec
index ba9fd4d..018aaf2 100644
--- a/python-oauthlib.spec
+++ b/python-oauthlib.spec
@@ -2,11 +2,11 @@
 %bcond_without  python2         # build python 2 module
 %bcond_without  python3         # build python 3 module
 #
-%define 	module	oauthlib
+%define		module	oauthlib
 Summary:	A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
 Name:		python-%{module}
 Version:	1.0.3
-Release:	3
+Release:	4
 License:	BSD
 Group:		Development/Languages/Python
 Source0:	https://pypi.python.org/packages/source/o/oauthlib/%{module}-%{version}.tar.gz
@@ -48,39 +48,27 @@ support for very little effort.
 
 %build
 %if %{with python2}
-%py_build -b py2
+%py_build
 %endif
 
 %if %{with python3}
-%py3_build -b py3
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-	build -b py2 \
-	install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py  \
-	build -b py3 \
-	install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
-%{__rm} -rf $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py3_sitescriptdir}}/%{module}/{cacert.pem,packages}
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-oauthlib.git/commitdiff/fd8b22ee6220566e9ca5213e131f41310cfe14f2



More information about the pld-cvs-commit mailing list