Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Pygments for openSUSE:Factory 
checked in at 2021-11-09 23:53:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Pygments (Old)
 and      /work/SRC/openSUSE:Factory/.python-Pygments.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Pygments"

Tue Nov  9 23:53:47 2021 rev:34 rq:929733 version:2.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Pygments/python-Pygments.changes  
2021-07-25 20:09:02.807458169 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Pygments.new.1890/python-Pygments.changes    
    2021-11-09 23:53:56.059931936 +0100
@@ -1,0 +2,5 @@
+Thu Sep  9 08:48:02 UTC 2021 - Stefan Schubert <sch...@suse.de>
+
+- Use libalternatives instead of update-alternatives. 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Pygments.spec ++++++
--- /var/tmp/diff_new_pack.3RVqkc/_old  2021-11-09 23:53:56.695932264 +0100
+++ /var/tmp/diff_new_pack.3RVqkc/_new  2021-11-09 23:53:56.699932267 +0100
@@ -16,6 +16,13 @@
 #
 
 
+#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
 %define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Pygments
@@ -33,10 +40,15 @@
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210929
 Requires:       python-setuptools
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
 Requires(post): update-alternatives
 Requires(postun):update-alternatives
+%endif
 Provides:       python-pygments = %{version}
 Obsoletes:      python-pygments < %{version}
 BuildArch:      noarch
@@ -74,6 +86,10 @@
 
 %prepare_alternative pygmentize
 
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative pygmentize
+
 %post
 %{python_install_alternative pygmentize pygmentize.1}
 

Reply via email to