Hello community, here is the log from the commit of package python-arrow for openSUSE:Factory checked in at 2019-12-23 22:40:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-arrow (Old) and /work/SRC/openSUSE:Factory/.python-arrow.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-arrow" Mon Dec 23 22:40:23 2019 rev:12 rq:757264 version:0.15.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-arrow/python-arrow.changes 2019-11-22 10:22:07.437328108 +0100 +++ /work/SRC/openSUSE:Factory/.python-arrow.new.6675/python-arrow.changes 2019-12-23 22:42:55.081962800 +0100 @@ -1,0 +2,6 @@ +Sat Dec 14 23:42:58 UTC 2019 - Stefan BrĂ¼ns <[email protected]> + +- Use _multibuild for tests to reduce the build dependencies + and simplify bootstrap for e.g. rpmlint. + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-arrow.spec ++++++ --- /var/tmp/diff_new_pack.aONpZy/_old 2019-12-23 22:42:56.505963418 +0100 +++ /var/tmp/diff_new_pack.aONpZy/_new 2019-12-23 22:42:56.509963420 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-arrow # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,22 +18,32 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 -Name: python-arrow +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%bcond_without test +%define psuffix -test +%else +%bcond_with test +%endif +Name: python-arrow%{?psuffix} Version: 0.15.4 Release: 0 Summary: Better dates and times for Python License: Apache-2.0 URL: https://github.com/crsmithdev/arrow Source: https://files.pythonhosted.org/packages/source/a/arrow/arrow-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module arrow == %{version}} BuildRequires: %{python_module chai} BuildRequires: %{python_module dateparser} BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} -BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module pytz} BuildRequires: %{python_module simplejson} -BuildRequires: fdupes -BuildRequires: python-rpm-macros +%endif Requires: python-python-dateutil BuildArch: noarch %if %{with python2} @@ -63,12 +73,17 @@ %python_build %install +%if %{without test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v +%endif +%if %{without test} %files %{python_files} %license LICENSE %doc README.rst @@ -76,5 +91,6 @@ %{python_sitelib}/arrow/* %dir %{python_sitelib}/arrow-%{version}-py*.egg-info %{python_sitelib}/arrow-%{version}-py*.egg-info +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
