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

python-requests_oauthlib.spec

index 0f60f25b721155d9f5a0c3eac39dc02bd71b94c9..6ac3c261517b49971568984ce5fd65388a4b6215 100644 (file)
@@ -2,11 +2,11 @@
 %bcond_without  python2         # build python 2 module
 %bcond_without  python3         # build python 3 module
 #
-%define        module  requests_oauthlib
+%define                module  requests_oauthlib
 Summary:       First-class OAuth library support for python-requests
 Name:          python-%{module}
 Version:       0.5.0
-Release:       3
+Release:       4
 License:       ISC
 Group:         Development/Languages/Python
 Source0:       https://pypi.python.org/packages/source/r/requests-oauthlib/requests-oauthlib-%{version}.tar.gz
@@ -46,35 +46,26 @@ First-class OAuth library support for python-requests.
 
 %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}
This page took 0.146449 seconds and 4 git commands to generate.