Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-typer for openSUSE:Factory 
checked in at 2025-08-26 14:56:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-typer (Old)
 and      /work/SRC/openSUSE:Factory/.python-typer.new.30751 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-typer"

Tue Aug 26 14:56:23 2025 rev:24 rq:1301303 version:0.16.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-typer/python-typer.changes        
2025-08-21 16:54:03.064731284 +0200
+++ /work/SRC/openSUSE:Factory/.python-typer.new.30751/python-typer.changes     
2025-08-26 14:56:52.498083266 +0200
@@ -1,0 +2,5 @@
+Mon Aug 25 14:25:37 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives on SLE-16-based and newer systems
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-typer.spec ++++++
--- /var/tmp/diff_new_pack.s7TPix/_old  2025-08-26 14:56:53.474123953 +0200
+++ /var/tmp/diff_new_pack.s7TPix/_new  2025-08-26 14:56:53.474123953 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-typer
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
 # Copyright (c) 2021 Matthias Bach <ma...@marix.org>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,6 +18,11 @@
 
 
 %define plainpython python
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 %{?sle15_python_module_pythons}
 Name:           python-typer
 Version:        0.16.1
@@ -41,13 +46,18 @@
 Requires:       python-click
 Requires:       python-rich
 Requires:       python-shellingham
-Requires:       python-typer-slim >= %version
+Requires:       python-typer-slim >= %{version}
 Requires:       python-typing_extensions
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
 # both packages provide /usr/bin/typer
 Conflicts:      erlang
 BuildArch:      noarch
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 %python_subpackages
 
 %description
@@ -90,6 +100,9 @@
 %postun
 %python_uninstall_alternative typer
 
+%pre
+%python_libalternatives_reset_alternative typer
+
 %files %{python_files}
 %doc README.md
 %license LICENSE

Reply via email to