Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-argcomplete for 
openSUSE:Factory checked in at 2025-08-12 17:03:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argcomplete (Old)
 and      /work/SRC/openSUSE:Factory/.python-argcomplete.new.1085 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-argcomplete"

Tue Aug 12 17:03:27 2025 rev:44 rq:1298824 version:3.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-argcomplete/python-argcomplete.changes    
2025-07-15 16:43:33.483206697 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-argcomplete.new.1085/python-argcomplete.changes
  2025-08-12 17:04:25.194873716 +0200
@@ -1,0 +2,5 @@
+Mon Aug 11 12:08:58 UTC 2025 - Markéta Machová <[email protected]>
+
+- Make the libalternatives transition conditional
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-argcomplete.spec ++++++
--- /var/tmp/diff_new_pack.1Q7pha/_old  2025-08-12 17:04:25.874902054 +0200
+++ /var/tmp/diff_new_pack.1Q7pha/_new  2025-08-12 17:04:25.878902221 +0200
@@ -25,7 +25,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-argcomplete%{psuffix}
 Version:        3.6.2
@@ -40,11 +44,16 @@
 BuildRequires:  %{python_module setuptools >= 67.2}
 BuildRequires:  %{python_module setuptools_scm >= 6.2}
 BuildRequires:  %{python_module wheel}
-BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       alts
 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 argcomplete == %{version}}
 BuildRequires:  %{python_module pexpect}
@@ -105,6 +114,16 @@
 %python_libalternatives_reset_alternative register-python-argcomplete
 %python_libalternatives_reset_alternative 
python-argcomplete-check-easy-install-script
 
+%post
+%python_install_alternative activate-global-python-argcomplete
+%python_install_alternative register-python-argcomplete
+%python_install_alternative python-argcomplete-check-easy-install-script
+
+%postun
+%python_uninstall_alternative activate-global-python-argcomplete
+%python_uninstall_alternative register-python-argcomplete
+%python_uninstall_alternative python-argcomplete-check-easy-install-script
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE.rst

Reply via email to