Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2019-02-26 22:16:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-chardet" Tue Feb 26 22:16:05 2019 rev:25 rq:679159 version:3.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2018-12-27 00:26:25.307808838 +0100 +++ /work/SRC/openSUSE:Factory/.python-chardet.new.28833/python-chardet.changes 2019-02-26 22:16:08.674196156 +0100 @@ -1,0 +2,5 @@ +Tue Feb 26 08:14:25 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Switch to multibuild to avoid buildcycles + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-chardet.spec ++++++ --- /var/tmp/diff_new_pack.uzhQri/_old 2019-02-26 22:16:09.386195914 +0100 +++ /var/tmp/diff_new_pack.uzhQri/_new 2019-02-26 22:16:09.390195913 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-chardet # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -17,7 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-chardet +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-chardet%{psuffix} Version: 3.0.4 Release: 0 Summary: Universal encoding detector @@ -26,14 +34,16 @@ URL: https://github.com/chardet/chardet Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz Source1: python-chardet-rpmlintrc -BuildRequires: %{python_module hypothesis} -BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest-runner} +%endif %python_subpackages %description @@ -72,17 +82,20 @@ %python_build %install -%python_install +%if !%{with test} %{python_expand %$python_install mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/chardetect-%{$python_bin_suffix} %fdupes -s %{buildroot}%{$python_sitelib} } - %prepare_alternative chardetect +%endif %check +%if %{with test} %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} test.py +%endif +%if !%{with test} %post %python_install_alternative chardetect @@ -94,5 +107,6 @@ %python_alternative %{_bindir}/chardetect %{python_sitelib}/chardet %{python_sitelib}/chardet-%{version}-py%{python_version}.egg-info +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
