Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-asdf for openSUSE:Factory checked in at 2021-11-12 15:59:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-asdf (Old) and /work/SRC/openSUSE:Factory/.python-asdf.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-asdf" Fri Nov 12 15:59:21 2021 rev:13 rq:930995 version:2.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-asdf/python-asdf.changes 2021-07-20 15:40:42.265605483 +0200 +++ /work/SRC/openSUSE:Factory/.python-asdf.new.1890/python-asdf.changes 2021-11-12 16:00:08.930589480 +0100 @@ -1,0 +2,5 @@ +Thu Nov 11 23:33:42 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com> + +- Add multibuild to avoid a build loop. + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-asdf.spec ++++++ --- /var/tmp/diff_new_pack.Dq2UMC/_old 2021-11-12 16:00:09.390589693 +0100 +++ /var/tmp/diff_new_pack.Dq2UMC/_new 2021-11-12 16:00:09.394589695 +0100 @@ -1,5 +1,5 @@ # -# spec file for package python-asdf +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -17,10 +17,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif %define skip_python2 1 # current astropy in TW requires python >= 3.7 %define skip_python36 1 -Name: python-asdf +Name: python-asdf%{psuffix} Version: 2.8.1 Release: 0 Summary: Python tools to handle ASDF files @@ -52,12 +60,15 @@ Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements +%if %{with test} +BuildRequires: %{python_module asdf} BuildRequires: %{python_module astropy} BuildRequires: %{python_module gwcs} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pytest < 6} BuildRequires: %{python_module pytest-doctestplus} BuildRequires: %{python_module pytest-openfiles >= 0.3.1} +%endif # /SECTION %python_subpackages @@ -77,14 +88,17 @@ %python_build %install +%if !%{with test} %python_install %python_clone -a %{buildroot}%{_bindir}/asdftool %{python_expand # sed -i -e 's|^#!/usr/bin/env python|#!%{__$python}|' %{buildroot}%{$python_sitelib}/asdf/reference_files/generate/generate %fdupes %{buildroot}%{$python_sitelib} } +%endif %check +%if %{with test} export LANG=en_US.UTF-8 %{python_expand # the tests assume the existence of a `python` command mkdir -p build/bin @@ -94,6 +108,7 @@ # import everything from the source directory because of collection conflicts with buildroot export PYTHONPATH=":x" %pytest --import-mode=append +%endif %post %python_install_alternative asdftool @@ -101,6 +116,7 @@ %postun %python_uninstall_alternative asdftool +%if !%{with test} %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE @@ -108,5 +124,6 @@ %{python_sitelib}/asdf %{python_sitelib}/asdf-%{version}*-info %{python_sitelib}/pytest_asdf +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>