Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-peewee for openSUSE:Factory checked in at 2025-08-21 20:32:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-peewee (Old) and /work/SRC/openSUSE:Factory/.python-peewee.new.29662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-peewee" Thu Aug 21 20:32:48 2025 rev:36 rq:1300821 version:3.18.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-peewee/python-peewee.changes 2025-07-21 20:00:20.523189990 +0200 +++ /work/SRC/openSUSE:Factory/.python-peewee.new.29662/python-peewee.changes 2025-08-21 20:33:15.756351861 +0200 @@ -1,0 +2,5 @@ +Thu Aug 21 15:33:41 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-peewee.spec ++++++ --- /var/tmp/diff_new_pack.zwgzek/_old 2025-08-21 20:33:16.584386331 +0200 +++ /var/tmp/diff_new_pack.zwgzek/_new 2025-08-21 20:33:16.584386331 +0200 @@ -16,7 +16,11 @@ # +%if 0%{?suse_version} > 1500 %bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-peewee Version: 3.18.2 @@ -32,13 +36,18 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module wheel} BuildRequires: %{pythons} -BuildRequires: alts BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: unzip BuildRequires: pkgconfig(sqlite3) +%if %{with libalternatives} +BuildRequires: alts Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %if 0%{?suse_version} > 1500 BuildRequires: %{python_module apsw} %endif @@ -65,6 +74,12 @@ %check %pytest_arch tests +%post +%python_install_alternative pwiz.py + +%postun +%python_uninstall_alternative pwiz.py + %pre %python_libalternatives_reset_alternative pwiz.py