Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lal for openSUSE:Factory checked in at 2021-05-15 23:16:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lal (Old) and /work/SRC/openSUSE:Factory/.lal.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lal" Sat May 15 23:16:18 2021 rev:5 rq:893299 version:7.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/lal/lal.changes 2021-04-21 20:59:06.518173863 +0200 +++ /work/SRC/openSUSE:Factory/.lal.new.2988/lal.changes 2021-05-15 23:17:18.244474479 +0200 @@ -1,0 +2,6 @@ +Wed Apr 21 10:59:16 UTC 2021 - Atri Bhattacharya <badshah...@gmail.com> + +- Split tests into a multibuild flavor to avoid circular + BuildRequires with python-ligo-lw and other test requirements. + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lal.spec ++++++ --- /var/tmp/diff_new_pack.nfyZmT/_old 2021-05-15 23:17:18.720472620 +0200 +++ /var/tmp/diff_new_pack.nfyZmT/_new 2021-05-15 23:17:18.724472605 +0200 @@ -16,6 +16,15 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%bcond_without test +%define psuffix -test +%else +%bcond_with test +%define psuffix %{nil} +%endif + # NEP 29: numpy, scipy do not have a python36 flavor package in TW %define skip_python36 1 @@ -59,6 +68,7 @@ %else BuildRequires: swig >= 3.0 %endif +%if %{with test} # SECTION For tests (only the default python3 flavor) BuildRequires: python3-freezegun BuildRequires: python3-ligo-lw @@ -67,6 +77,7 @@ BuildRequires: python3-python-dateutil BuildRequires: python3-scipy # /SECTION +%endif %python_subpackages @@ -142,6 +153,7 @@ } %install +%if %{without test} %{python_expand # all python flavors as configured above export PYTHON=$python pushd ../${PYTHON}_build @@ -154,8 +166,6 @@ find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot}%{_libdir} -name "*.a" -delete -print -%python_expand %fdupes %{buildroot}%{$python_sitearch}/ - %{python_expand # FIX env HASHBANGS sed -Ei "1{/^#!\/usr\/bin\/env python/d}" %{buildroot}%{$python_sitearch}/lal/gpstime.py sed -Ei "1{/^#!\/usr\/bin\/env python/d}" %{buildroot}%{$python_sitearch}/lal/series.py @@ -163,7 +173,11 @@ } %{?python_compileall} +%python_expand %fdupes %{buildroot}%{$python_sitearch}/ +%endif + %check +%if %{with test} %{python_expand # Run tests from the build dir of the primary python3 flavor only if [ "$python_" = "python3_" -o "%{$python_provides}" = "python3" ]; then export PYTHON=$python @@ -172,7 +186,9 @@ popd fi } +%endif +%if %{without test} %post -n %{shliblal} -p /sbin/ldconfig %post -n %{shliblalsupport} -p /sbin/ldconfig %postun -n %{shliblal} -p /sbin/ldconfig @@ -204,4 +220,6 @@ %{_libdir}/octave/*/site/oct/*/*.oct %endif +%endif + %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>