Hello community,
here is the log from the commit of package python-configparser for
openSUSE:Factory checked in at 2019-06-18 14:51:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-configparser (Old)
and /work/SRC/openSUSE:Factory/.python-configparser.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-configparser"
Tue Jun 18 14:51:01 2019 rev:10 rq:709679 version:3.7.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-configparser/python-configparser.changes
2019-03-29 20:37:51.574653183 +0100
+++
/work/SRC/openSUSE:Factory/.python-configparser.new.4811/python-configparser.changes
2019-06-18 14:51:08.541636723 +0200
@@ -1,0 +2,5 @@
+Thu Jun 13 07:44:59 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Switch to multibuild to avoid buildcycle
+
+-------------------------------------------------------------------
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-configparser.spec ++++++
--- /var/tmp/diff_new_pack.AOxE7G/_old 2019-06-18 14:51:09.093636455 +0200
+++ /var/tmp/diff_new_pack.AOxE7G/_new 2019-06-18 14:51:09.093636455 +0200
@@ -21,7 +21,15 @@
%if %{python3_version_nodots} >= 35
%define skip_python3 1
%endif
-Name: python-configparser
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name: python-configparser%{psuffix}
Version: 3.7.4
Release: 0
Summary: Backport of the enhanced config parser introduced in Python 3.x
@@ -30,16 +38,17 @@
URL: http://docs.python.org/3/library/configparser.html
Source:
https://files.pythonhosted.org/packages/source/c/configparser/configparser-%{version}.tar.gz
BuildRequires: %{python_module backports}
-# needed for test import which is python3-testsuite for py3
-BuildRequires: %{python_module pytest >= 3.5}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-BuildRequires: python-devel
BuildRequires: python-rpm-macros
BuildRequires: python-unittest2
-BuildRequires: python3-testsuite
Requires: python-backports
BuildArch: noarch
+%if %{with test}
+BuildRequires: %{python_module pytest >= 3.5}
+BuildRequires: python-devel
+BuildRequires: python3-testsuite
+%endif
%python_subpackages
%description
@@ -56,20 +65,26 @@
%python_build
%install
+%if !%{with test}
export LANG=en_US.UTF-8
%python_install
%python_expand rm -f %{buildroot}%{$python_sitelib}/backports/__init__.py*
%python_expand rm -f
%{buildroot}%{$python_sitelib}/backports/__pycache__/__init__*
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
+%endif
%check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix}
+%if %{with test}
+%pytest
+%endif
+%if !%{with test}
%files %{python_files}
%doc README.rst CHANGES.rst
%license LICENSE
%python2_only %{python_sitelib}/configparser.py*
%{python_sitelib}/backports/configparser/
%{python_sitelib}/configparser-%{version}-py*.egg-info
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>