Hello community,

here is the log from the commit of package python-oauth2 for openSUSE:Factory 
checked in at 2018-06-19 12:02:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oauth2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-oauth2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oauth2"

Tue Jun 19 12:02:08 2018 rev:2 rq:616911 version:1.9.0.post1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oauth2/python-oauth2.changes      
2015-12-10 10:24:41.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-oauth2.new/python-oauth2.changes 
2018-06-19 12:02:14.117213634 +0200
@@ -1,0 +2,10 @@
+Thu Jun 14 16:19:20 UTC 2018 - [email protected]
+
+- Clean SPEC file
+
+-------------------------------------------------------------------
+Thu Aug 24 13:46:58 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -49,0 +60 @@
+

Old:
----
  python-oauth2-1.9.tar.gz

New:
----
  oauth2-1.9.0.post1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-oauth2.spec ++++++
--- /var/tmp/diff_new_pack.6McsQF/_old  2018-06-19 12:02:16.037142350 +0200
+++ /var/tmp/diff_new_pack.6McsQF/_new  2018-06-19 12:02:16.041142200 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-oauth2
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,31 +16,32 @@
 #
 
 
-Name:           python-oauth2
-Version:        1.9
+%define skip_python3 1
+%define modname oauth2
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+
+Name:           python-%{modname}
+Version:        1.9.0.post1
 Release:        0
 Summary:        A fully tested, abstract interface to creating OAuth clients 
and servers
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/joestump/python-oauth2
-Source:         python-oauth2-1.9.tar.gz
+URL:            https://github.com/joestump/python-oauth2
+Source:         
https://files.pythonhosted.org/packages/source/o/oauth2/%{modname}-%{version}.tar.gz
 Patch0:         oauth2-drop-tests-with-net-access.patch
 Patch1:         hidePythonRequires.patch
 Patch2:         addTestPath.patch
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  %{python_module coverage}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module httplib2}
+BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module setuptools}
 # Test requirements:
+BuildRequires:  fdupes
 BuildRequires:  python
-BuildRequires:  python-coverage
-BuildRequires:  python-httplib2
-BuildRequires:  python-mock
-Requires:       python-httplib2
-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
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 This code was originally forked from Leah Culver and Andy Smith's oauth.py 
code.
@@ -48,47 +49,24 @@
 class and more tests were merged in from Mark Paschal's fork. After a hiatus
 the project was taken over by Daniel Holmes the current maintainer
 
-
-%package test
-Summary:        Tests for python-oauth2
-Group:          Development/Libraries/Python
-PreReq:         python-oauth2 = %version
-Requires:       python-coverage
-Requires:       python-httplib2
-Requires:       python-mock
-
-%description test
-Package provides the unit tests for python-oauth2
-
 %prep
-%setup -q
+%setup -q -n %{modname}-%{version}
 %patch0
 %patch1
 %patch2
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-mkdir -p %{buildroot}%{python_sitelib}/tests/oauth2
-mv %{buildroot}%{python_sitelib}/tests/*.py* 
%{buildroot}%{python_sitelib}/tests/oauth2
+%python_install
+%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-python %{buildroot}%{python_sitelib}/tests/oauth2/test_oauth.py
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python 
tests/test_oauth.py
 
-%files
-%defattr(-,root,root,-)
-%doc LICENSE.txt README.md
-%dir %{python_sitelib}/oauth2
-%dir %{python_sitelib}/oauth2-%{version}.0-py%{py_ver}.egg-info
-%{python_sitelib}/oauth2/*
-%{python_sitelib}/oauth2-%{version}.0-py%{py_ver}.egg-info/*
-
-%files test
-%defattr(-,root,root,-)
-%dir %{python_sitelib}/tests
-%dir %{python_sitelib}/tests/oauth2
-%{python_sitelib}/tests/oauth2/*
+%files %{python_files}
+%{python_sitelib}/oauth2*
 
 %changelog


Reply via email to