Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-invoke for openSUSE:Factory checked in at 2025-08-22 17:46:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-invoke (Old) and /work/SRC/openSUSE:Factory/.python-invoke.new.29662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-invoke" Fri Aug 22 17:46:54 2025 rev:21 rq:1300724 version:2.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-invoke/python-invoke.changes 2025-07-18 15:58:28.474331463 +0200 +++ /work/SRC/openSUSE:Factory/.python-invoke.new.29662/python-invoke.changes 2025-08-22 17:47:05.318219207 +0200 @@ -1,0 +2,5 @@ +Thu Aug 21 08:47:08 UTC 2025 - Markéta Machová <[email protected]> + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-invoke.spec ++++++ --- /var/tmp/diff_new_pack.WdMYpN/_old 2025-08-22 17:47:06.150253452 +0200 +++ /var/tmp/diff_new_pack.WdMYpN/_new 2025-08-22 17:47:06.150253452 +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-invoke%{psuffix} Version: 2.2.0 @@ -39,14 +43,19 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools > 56} BuildRequires: %{python_module wheel} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: alts Requires: python-PyYAML Requires: python-fluidity-sm Requires: python-lexicon BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %if %{with test} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module fluidity-sm} @@ -96,6 +105,12 @@ %pytest -s -k "not ($skiptests)" tests %endif +%post +%python_install_alternative inv invoke + +%postun +%python_uninstall_alternative inv + %pre %python_libalternatives_reset_alternative inv
