Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-hatch for openSUSE:Factory checked in at 2025-08-21 16:59:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hatch (Old) and /work/SRC/openSUSE:Factory/.python-hatch.new.29662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatch" Thu Aug 21 16:59:53 2025 rev:19 rq:1300712 version:1.14.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hatch/python-hatch.changes 2025-07-10 22:13:54.784118640 +0200 +++ /work/SRC/openSUSE:Factory/.python-hatch.new.29662/python-hatch.changes 2025-08-21 17:00:17.480382391 +0200 @@ -1,0 +2,5 @@ +Thu Aug 21 08:22:26 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hatch.spec ++++++ --- /var/tmp/diff_new_pack.oBqYTl/_old 2025-08-21 17:00:18.004404335 +0200 +++ /var/tmp/diff_new_pack.oBqYTl/_new 2025-08-21 17:00:18.004404335 +0200 @@ -24,7 +24,11 @@ %define psuffix %{nil} %bcond_with test %endif +%if 0%{?suse_version} > 1500 %bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-hatch%{psuffix} Version: 1.14.1 @@ -42,10 +46,8 @@ BuildRequires: %{python_module hatch-vcs >= 0.3} BuildRequires: %{python_module hatchling >= 1.26.3} BuildRequires: %{python_module pip} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: alts Requires: git-core Requires: python-click >= 8.0.6 Requires: python-hatchling >= 1.21.0 @@ -63,6 +65,13 @@ Requires: uv Requires: (python-pexpect >= 4.8 with python-pexpect < 5) Requires: (python-userpath >= 1.7 with python-userpath < 2) +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %if %{with test} BuildRequires: %{python_module editables} BuildRequires: %{python_module filelock >= 3.7.1} @@ -136,6 +145,12 @@ %pytest -v -k "not ($donttest)" --ignore tests/cli/build/test_build.py %endif +%post +%python_install_alternative hatch + +%postun +%python_uninstall_alternative hatch + %pre %python_libalternatives_reset_alternative hatch