]> git.pld-linux.org Git - packages/python-oauthlib.git/commitdiff
- use rpm python macros auto/th/python-oauthlib-1.0.3-4
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 7 May 2016 19:05:18 +0000 (21:05 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 7 May 2016 19:05:18 +0000 (21:05 +0200)
- rel 4

python-oauthlib.spec

index ba9fd4dff9bd8ab6b94bb0a8aa5ba8581de7196c..018aaf2757380119a5d9316549adb48e2cd55a9e 100644 (file)
@@ -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
 
This page took 0.033167 seconds and 4 git commands to generate.