Hello community,

here is the log from the commit of package python-pathlib2 for openSUSE:Factory 
checked in at 2019-03-12 09:46:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pathlib2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-pathlib2.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pathlib2"

Tue Mar 12 09:46:15 2019 rev:9 rq:683717 version:2.3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pathlib2/python-pathlib2.changes  
2019-02-08 13:48:42.314773522 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pathlib2.new.28833/python-pathlib2.changes   
    2019-03-12 09:46:16.887623378 +0100
@@ -1,0 +2,13 @@
+Mon Mar 11 07:37:06 UTC 2019 - John Vandenberg <[email protected]>
+
+- Add Provides/Obsoletes of python-pathlib2, needed by
+  python2-jupyter_ipython and python2-pytest-django and others
+
+-------------------------------------------------------------------
+Sat Mar  9 10:24:15 UTC 2019 - John Vandenberg <[email protected]>
+
+- Fix build dependency on python3-scandir, unbreaking Leap 42.3
+  and SLE 12 SP4
+- Add bcond test to deactivate %check properly when necessary
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pathlib2.spec ++++++
--- /var/tmp/diff_new_pack.jrGN1v/_old  2019-03-12 09:46:18.163623123 +0100
+++ /var/tmp/diff_new_pack.jrGN1v/_new  2019-03-12 09:46:18.199623116 +0100
@@ -15,8 +15,13 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-
+%if 0%{?suse_version} >= 1500
+%bcond_without test
+%else
+%bcond_with    test
+%endif
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 Name:           python-pathlib2
 Version:        2.3.3
 Release:        0
@@ -25,23 +30,24 @@
 Group:          Development/Languages/Python
 URL:            https://pypi.python.org/pypi/pathlib2/
 Source:         
https://files.pythonhosted.org/packages/source/p/pathlib2/pathlib2-%{version}.tar.gz
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}
+%if %{with test}
+BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module scandir}
 BuildRequires:  %{python_module six}
-BuildRequires:  python-rpm-macros
-Requires:       python-six
-BuildArch:      noarch
-%if 0%{?suse_version} >= 1500
 BuildRequires:  python3-testsuite
-%else
-Requires:       python-scandir
 %endif
+BuildRequires:  python-rpm-macros
+Requires:       python-six
 %if %{python3_version_nodots} < 35
-BuildRequires:  python3-scandir
+Requires:       python-scandir
+%else
+Requires:       python2-scandir
 %endif
+BuildArch:      noarch
 %ifpython2
-BuildRequires:  python2-scandir
-Requires:       python2-scandir
+Provides:       %oldpython-pathlib2 = %{version}
+Obsoletes:      %oldpython-pathlib2 <= %{version}
 %endif
 %python_subpackages
 
@@ -61,11 +67,11 @@
 %install
 %python_install
 
+%if %{with test}
 %check
 # nothing provides test module in python2
 # test module is not available in SLE-12
 export PYTHONPATH="$PWD"
-%if 0%{?suse_version} >= 1500
 python3 tests/test_pathlib2.py
 %endif
 


Reply via email to