Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-semver for openSUSE:Factory checked in at 2025-08-25 20:39:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-semver (Old) and /work/SRC/openSUSE:Factory/.python-semver.new.30751 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-semver" Mon Aug 25 20:39:22 2025 rev:23 rq:1301253 version:3.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-semver/python-semver.changes 2025-02-03 21:46:44.538491749 +0100 +++ /work/SRC/openSUSE:Factory/.python-semver.new.30751/python-semver.changes 2025-08-25 20:41:32.972766494 +0200 @@ -1,0 +2,5 @@ +Mon Aug 25 11:39:05 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives on SLE-16-based and newer systems + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-semver.spec ++++++ --- /var/tmp/diff_new_pack.YwOnmZ/_old 2025-08-25 20:41:33.632794145 +0200 +++ /var/tmp/diff_new_pack.YwOnmZ/_new 2025-08-25 20:41:33.632794145 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-semver # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,11 @@ %bcond_without test +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-semver Version: 3.0.4 @@ -32,14 +37,19 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +# See https://github.com/k-bx/python-semver/issues/67 for why conflicts is needed +Conflicts: python-node-semver +BuildArch: noarch # SECTION tests BuildRequires: %{python_module pytest} # /SECTIOn +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else Requires(post): update-alternatives Requires(postun): update-alternatives -# See https://github.com/k-bx/python-semver/issues/67 for why conflicts is needed -Conflicts: python-node-semver -BuildArch: noarch +%endif %python_subpackages %description @@ -68,6 +78,9 @@ %postun %python_uninstall_alternative pysemver +%pre +%python_libalternatives_reset_alternative pysemver + %files %{python_files} %doc README.rst %{python_sitelib}/semver*