Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pkginfo for openSUSE:Factory checked in at 2025-08-22 17:47:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pkginfo (Old) and /work/SRC/openSUSE:Factory/.python-pkginfo.new.29662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pkginfo" Fri Aug 22 17:47:14 2025 rev:16 rq:1300820 version:1.12.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pkginfo/python-pkginfo.changes 2025-07-21 19:59:27.464981992 +0200 +++ /work/SRC/openSUSE:Factory/.python-pkginfo.new.29662/python-pkginfo.changes 2025-08-22 17:47:39.955644808 +0200 @@ -1,0 +2,5 @@ +Thu Aug 21 15:25:03 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pkginfo.spec ++++++ --- /var/tmp/diff_new_pack.nrIPjq/_old 2025-08-22 17:47:41.279699303 +0200 +++ /var/tmp/diff_new_pack.nrIPjq/_new 2025-08-22 17:47:41.283699468 +0200 @@ -16,7 +16,11 @@ # +%if 0%{?suse_version} > 1500 %bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-pkginfo Version: 1.12.1.2 @@ -30,12 +34,17 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: alts Requires: python-setuptools BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif # SECTION test requirements BuildRequires: %{python_module pytest} BuildRequires: %{python_module wheel} @@ -66,6 +75,12 @@ sed -iE "s/_make_installed('wheel')/_make_installed('wheel', metadata_version='2.3')/" pkginfo/tests/test_installed.py %pytest +%post +%python_install_alternative pkginfo + +%postun +%python_uninstall_alternative pkginfo + %pre %python_libalternatives_reset_alternative pkginfo