commit 4d7e4299a4b2cbd97c12924b2d734d926565a09e
Author: Jan Rękorajski <[email protected]>
Date: Sat May 7 20:27:40 2016 +0200
- use rpm python macros
- rel 4
python-requests_oauthlib.spec | 23 +++++++----------------
1 file changed, 7 insertions(+), 16 deletions(-)
---
diff --git a/python-requests_oauthlib.spec b/python-requests_oauthlib.spec
index 0f60f25..6ac3c26 100644
--- a/python-requests_oauthlib.spec
+++ b/python-requests_oauthlib.spec
@@ -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}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-requests_oauthlib.git/commitdiff/4d7e4299a4b2cbd97c12924b2d734d926565a09e
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit