Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-nose2 for openSUSE:Factory checked in at 2025-08-21 20:32:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nose2 (Old) and /work/SRC/openSUSE:Factory/.python-nose2.new.29662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nose2" Thu Aug 21 20:32:55 2025 rev:17 rq:1300823 version:0.15.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nose2/python-nose2.changes 2025-07-17 17:21:00.053337110 +0200 +++ /work/SRC/openSUSE:Factory/.python-nose2.new.29662/python-nose2.changes 2025-08-21 20:33:17.616429294 +0200 @@ -1,0 +2,5 @@ +Thu Aug 21 10:02:03 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nose2.spec ++++++ --- /var/tmp/diff_new_pack.NzgnRy/_old 2025-08-21 20:33:19.040488576 +0200 +++ /var/tmp/diff_new_pack.NzgnRy/_new 2025-08-21 20:33:19.060489409 +0200 @@ -16,7 +16,11 @@ # +%if 0%{?suse_version} > 1500 %bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-nose2 Version: 0.15.1 @@ -25,19 +29,24 @@ License: BSD-2-Clause AND Python-2.0 URL: https://github.com/nose-devs/nose2 Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz -# Required for testsuite. Bring on python-wheel-wheel +# Required for testsuite. Bring on python-wheel wheel. Source1: https://files.pythonhosted.org/packages/c7/c3/55076fc728723ef927521abaa1955213d094933dc36d4a2008d5101e1af5/wheel-0.42.0-py3-none-any.whl BuildRequires: %{python_module coverage} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools-wheel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: alts Suggests: python-coverage BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %python_subpackages %description @@ -64,11 +73,17 @@ %{python_expand # nose must test itself in an editable install $python -m venv editable-%{$python_bin_suffix} --system-site-packages . editable-%{$python_bin_suffix}/bin/activate -pip install --no-index --find-links /usr/lib/python%{$python_bin_suffix}/wheels --find-links ../wheels -e . +pip install --no-index --find-links %{_prefix}/lib/python%{$python_bin_suffix}/wheels --find-links ../wheels -e . nose2 -v --pretty-assert deactivate } +%post +%python_install_alternative nose2 + +%postun +%python_uninstall_alternative nose2 + %pre %python_libalternatives_reset_alternative nose2