Hello community, here is the log from the commit of package python-oauthlib for openSUSE:Factory checked in at 2017-05-10 20:50:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oauthlib (Old) and /work/SRC/openSUSE:Factory/.python-oauthlib.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oauthlib" Wed May 10 20:50:37 2017 rev:16 rq:493372 version:2.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-oauthlib/python-oauthlib.changes 2017-01-10 10:45:04.377896726 +0100 +++ /work/SRC/openSUSE:Factory/.python-oauthlib.new/python-oauthlib.changes 2017-05-10 20:50:38.517793815 +0200 @@ -1,0 +2,5 @@ +Sun May 7 15:22:56 UTC 2017 - [email protected] + +- Convert to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oauthlib.spec ++++++ --- /var/tmp/diff_new_pack.Xd3ZrC/_old 2017-05-10 20:50:39.521652162 +0200 +++ /var/tmp/diff_new_pack.Xd3ZrC/_new 2017-05-10 20:50:39.525651597 +0200 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-oauthlib Version: 2.0.1 Release: 0 @@ -25,25 +26,28 @@ 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 @@ %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}/*
