14
0

Accepting request 493394 from home:xenonpk:python

Convert to singlespec & update to latest version

OBS-URL: https://build.opensuse.org/request/show/493394
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-oauthlib?expand=0&rev=7
This commit is contained in:
2017-05-15 13:22:27 +00:00
committed by Git OBS Bridge
parent e6bfc590c8
commit 7976bb7ba9
5 changed files with 49 additions and 18 deletions

View File

@@ -16,26 +16,31 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-requests-oauthlib
Version: 0.7.0
Version: 0.8.0
Release: 0
Summary: OAuthlib authentication support for Requests
License: ISC
Group: Development/Languages/Python
Url: https://github.com/requests/requests-oauthlib
Source: https://pypi.io/packages/source/r/requests-oauthlib/requests-oauthlib-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-oauthlib >= 0.6.2
BuildRequires: python-setuptools
Requires: python-oauthlib >= 0.6.2
BuildRequires: python-requests >= 2.0.0
Requires: python-requests >= 2.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module oauthlib >= 0.6.2}
BuildRequires: %{python_module requests >= 2.0.0}
BuildRequires: %{python_module setuptools}
Requires: python-oauthlib >= 0.6.2
Requires: python-requests >= 2.0.0
%python_subpackages
%description
This project provides first-class OAuth library support for Requests.
@@ -44,15 +49,18 @@ This project provides first-class OAuth library support for Requests.
%setup -q -n requests-oauthlib-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
#hardlink duplicated files
%fdupes %{buildroot}
%check
# python setup.py test
#%%python_exec setup.py test
%files
%files %python_files
%defattr(-,root,root,-)
%doc AUTHORS.rst LICENSE README.rst
%{python_sitelib}/*