Hello community, here is the log from the commit of package python-pathlib2 for openSUSE:Factory checked in at 2020-03-08 22:21:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pathlib2 (Old) and /work/SRC/openSUSE:Factory/.python-pathlib2.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pathlib2" Sun Mar 8 22:21:03 2020 rev:12 rq:769889 version:2.3.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pathlib2/python-pathlib2.changes 2019-10-10 11:51:54.691565475 +0200 +++ /work/SRC/openSUSE:Factory/.python-pathlib2.new.26092/python-pathlib2.changes 2020-03-08 22:21:03.595963527 +0100 @@ -1,0 +2,7 @@ +Mon Feb 3 14:59:05 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Add multibuild in order to break cycle betwen python3 and mesa + * Caused by python3-testsuite that is part of the main python +- Add devel dependency for the tests on python2 only + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pathlib2.spec ++++++ --- /var/tmp/diff_new_pack.iSULzi/_old 2020-03-08 22:21:04.159963875 +0100 +++ /var/tmp/diff_new_pack.iSULzi/_new 2020-03-08 22:21:04.167963880 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-pathlib2 +# spec file for package python # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,14 +16,18 @@ # -%if 0%{?suse_version} >= 1500 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test %bcond_without test %else +%define psuffix %{nil} %bcond_with test %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python -Name: python-pathlib2 +%bcond_without python2 +Name: python-pathlib2%{?psuffix} Version: 2.3.5 Release: 0 Summary: Object-oriented filesystem paths @@ -32,23 +36,25 @@ URL: https://github.com/mcmtroffaes/pathlib2 Source: https://files.pythonhosted.org/packages/source/p/pathlib2/pathlib2-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-six +BuildArch: noarch %if %{with test} BuildRequires: %{python_module mock} BuildRequires: %{python_module scandir} BuildRequires: %{python_module six} BuildRequires: python3-testsuite +%if %{with python2} +BuildRequires: python-devel %endif -BuildRequires: python-rpm-macros -Requires: python-six -%if %{python3_version_nodots} < 35 +%endif +%ifpython2 Requires: python-scandir -%else -Requires: python2-scandir %endif -BuildArch: noarch %ifpython2 -Provides: %oldpython-pathlib2 = %{version} -Obsoletes: %oldpython-pathlib2 <= %{version} +Provides: %{oldpython}-pathlib2 = %{version} +Obsoletes: %{oldpython}-pathlib2 <= %{version} %endif %python_subpackages @@ -66,19 +72,22 @@ %python_build %install +%if !%{with test} %python_install +%python_expand fdupes %{buildroot}%{$python_sitelib} +%endif %if %{with test} %check -# nothing provides test module in python2 -# test module is not available in SLE-12 export PYTHONPATH="$PWD" -python3 tests/test_pathlib2.py +%python_exec tests/test_pathlib2.py %endif +%if !%{with test} %files %{python_files} %license LICENSE.rst %doc CHANGELOG.rst README.rst %{python_sitelib}/* +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>