1
0

Accepting request 493324 from home:xenonpk:python

Convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/493324
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oauthlib?expand=0&rev=24
This commit is contained in:
Robert Schweikert 2017-05-08 01:43:15 +00:00 committed by Git OBS Bridge
parent f4d2e12fc8
commit 759b6a7314
2 changed files with 32 additions and 20 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun May 7 15:22:56 UTC 2017 - pousaduarte@gmail.com
- Convert to singlespec
-------------------------------------------------------------------
Mon Jan 2 08:13:27 UTC 2017 - tbechtold@suse.com

View File

@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-oauthlib
Version: 2.0.1
Release: 0
@ -25,25 +26,28 @@ License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://pypi.io/packages/source/o/oauthlib/oauthlib-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test build requirements:
BuildRequires: python-PyJWT
BuildRequires: python-blinker
BuildRequires: python-cryptography
BuildRequires: python-mock
BuildRequires: python-nose
BuildRequires: python-pyasn1
BuildRequires: python-pycrypto
BuildRequires: python-unittest2
Requires: python-PyJWT
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module pyasn1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module unittest2}
Requires: python-blinker
Requires: python-cryptography
%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
Requires: python-PyJWT
BuildArch: noarch
%endif
%python_subpackages
%description
A generic, spec-compliant, thorough implementation of the OAuth request-signing
@ -66,15 +70,18 @@ veneer on top of OAuthLib and get OAuth support for very little effort.
%setup -q -n 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 LICENSE README.rst CHANGELOG.rst
%{python_sitelib}/*