Hello community,

here is the log from the commit of package python-contextlib2 for 
openSUSE:Factory checked in at 2018-05-23 16:09:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-contextlib2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-contextlib2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-contextlib2"

Wed May 23 16:09:08 2018 rev:3 rq:611220 version:0.5.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-contextlib2/python-contextlib2.changes    
2017-05-27 13:19:33.953318805 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-contextlib2.new/python-contextlib2.changes   
    2018-05-23 16:09:36.960852240 +0200
@@ -1,0 +2,15 @@
+Tue May 22 11:05:09 UTC 2018 - [email protected]
+
+- Do not run the tests twice for no reason
+
+-------------------------------------------------------------------
+Tue May 22 10:56:10 UTC 2018 - [email protected]
+
+- Clean the SPEC, enable tests
+
+-------------------------------------------------------------------
+Thu Aug 24 13:34:54 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -54,0 +70 @@
+

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

Other differences:
------------------
++++++ python-contextlib2.spec ++++++
--- /var/tmp/diff_new_pack.GlWk4m/_old  2018-05-23 16:09:37.580829535 +0200
+++ /var/tmp/diff_new_pack.GlWk4m/_new  2018-05-23 16:09:37.584829389 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-contextlib2
 #
-# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2014 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -14,26 +14,24 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
 
 
-%bcond_without test
-
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-contextlib2
 Version:        0.5.5
 Release:        0
-License:        Python-2.0
 Summary:        Backports and enhancements for the contextlib module
-Url:            http://contextlib2.readthedocs.org
+License:        Python-2.0
 Group:          Development/Languages/Python
+URL:            http://contextlib2.readthedocs.org
 Source:         
https://files.pythonhosted.org/packages/source/c/contextlib2/contextlib2-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-%if %{with test}
-BuildRequires:  python-unittest2
-%endif
-Provides:       python2-contextlib2 = %{version}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module unittest2}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
+%python_subpackages
 
 %description
 contextlib2 is a backport of the standard library's contextlib module to
@@ -46,19 +44,18 @@
 %setup -q -n contextlib2-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%if %{with test}
 %check
-python2 test_contextlib2.py
-%endif
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python 
test_contextlib2.py
 
-%files
-%defattr(-,root,root,-)
-%doc README.rst NEWS.rst LICENSE.txt
+%files %{python_files}
+%license LICENSE.txt
+%doc README.rst NEWS.rst
 %{python_sitelib}/*
 
 %changelog


Reply via email to