Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-antlr4-python3-runtime for
openSUSE:Factory checked in at 2025-08-25 20:39:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-antlr4-python3-runtime (Old)
and /work/SRC/openSUSE:Factory/.python-antlr4-python3-runtime.new.30751
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-antlr4-python3-runtime"
Mon Aug 25 20:39:07 2025 rev:9 rq:1301233 version:4.13.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-antlr4-python3-runtime/python-antlr4-python3-runtime.changes
2024-10-09 22:12:01.983964523 +0200
+++
/work/SRC/openSUSE:Factory/.python-antlr4-python3-runtime.new.30751/python-antlr4-python3-runtime.changes
2025-08-25 20:41:15.528035676 +0200
@@ -1,0 +2,5 @@
+Mon Aug 25 09:52:12 UTC 2025 - Markéta Machová <[email protected]>
+
+- Convert to libalternatives on SLE-16-based and newer systems
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-antlr4-python3-runtime.spec ++++++
--- /var/tmp/diff_new_pack.q0HSTM/_old 2025-08-25 20:41:16.244065673 +0200
+++ /var/tmp/diff_new_pack.q0HSTM/_new 2025-08-25 20:41:16.248065841 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-antlr4-python3-runtime
#
-# Copyright (c) 2024 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
@@ -16,6 +16,11 @@
#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
%{?sle15_python_module_pythons}
Name: python-antlr4-python3-runtime
Version: 4.13.2
@@ -30,9 +35,14 @@
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+BuildArch: noarch
+%if %{with libalternatives}
+BuildRequires: alts
+Requires: alts
+%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
-BuildArch: noarch
+%endif
%python_subpackages
%description
@@ -62,6 +72,9 @@
%postun
%python_uninstall_alternative pygrun
+%pre
+%python_libalternatives_reset_alternative pygrun
+
%check
cd %{_builddir}/antlr4-%{version}/runtime/Python3
%{python_expand #