Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Sphinx for openSUSE:Factory 
checked in at 2025-08-27 21:33:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Sphinx (Old)
 and      /work/SRC/openSUSE:Factory/.python-Sphinx.new.30751 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Sphinx"

Wed Aug 27 21:33:37 2025 rev:111 rq:1301462 version:8.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Sphinx/python-Sphinx.changes      
2025-03-21 20:21:38.988831790 +0100
+++ /work/SRC/openSUSE:Factory/.python-Sphinx.new.30751/python-Sphinx.changes   
2025-08-27 21:34:01.105024849 +0200
@@ -1,0 +2,5 @@
+Mon Aug 25 12:56:50 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives on SLE-16-based and newer systems
+
+-------------------------------------------------------------------
@@ -3807 +3811,0 @@
-----------
@@ -3819 +3822,0 @@
---------------
@@ -3824 +3826,0 @@
-----------

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

Other differences:
------------------
++++++ python-Sphinx.spec ++++++
--- /var/tmp/diff_new_pack.ONvKu5/_old  2025-08-27 21:34:01.881057295 +0200
+++ /var/tmp/diff_new_pack.ONvKu5/_new  2025-08-27 21:34:01.885057462 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Sphinx
 #
-# 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
@@ -24,6 +24,11 @@
 %define psuffix %{nil}
 %bcond_with test
 %endif
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 %{?sle15_python_module_pythons}
 Name:           python-Sphinx%{psuffix}
 Version:        8.2.3
@@ -68,13 +73,18 @@
 Requires:       python-sphinxcontrib-jsmath
 Requires:       python-sphinxcontrib-qthelp >= 1.0.2
 Requires:       python-sphinxcontrib-serializinghtml >= 1.1.9
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
 Recommends:     python-SQLAlchemy >= 0.9
 Recommends:     python-Sphinx-doc-man
 Recommends:     python-Whoosh >= 2.0
 Suggests:       python-sphinx_rtd_theme
 BuildArch:      noarch
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 %if %{with test}
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module Sphinx = %{version}}
@@ -208,10 +218,10 @@
 Summary:        Man files for python-Sphinx
 Group:          Documentation/Man
 Requires:       python3-Sphinx = %{version}
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
 Supplements:    python3-Sphinx
 Obsoletes:      python-Sphinx-doc-man-common <= %{version}
+BuildRequires:  alts
+Requires:       alts
 
 %description -n python-Sphinx-doc-man
 Sphinx is a tool that facilitates creating documentation for Python
@@ -266,6 +276,7 @@
 %python_clone -a %{buildroot}%{_bindir}/sphinx-autogen
 %python_clone -a %{buildroot}%{_bindir}/sphinx-build
 %python_clone -a %{buildroot}%{_bindir}/sphinx-quickstart
+%python_group_libalternatives sphinx-apidoc sphinx-autogen sphinx-build 
sphinx-quickstart
 
 %python_expand mkdir -p %{buildroot}%{$python_sitelib}/sphinxcontrib
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -281,6 +292,9 @@
 }
 %python_find_lang sphinx
 
+# libalternatives binaries break the kernel script for determining the Sphinx 
version
+sed -i 's/import sys/import sys; sys.argv[0] = "sphinx-build"/' 
%{buildroot}%{_bindir}/sphinx-build-*
+
 %else
 %if 0%{?suse_version} > 1500
 mkdir -p %{buildroot}%{_docdir}/python-Sphinx/
@@ -305,6 +319,9 @@
 
 %postun
 %python_uninstall_alternative sphinx-apidoc
+
+%pre
+%python_libalternatives_reset_alternative sphinx-apidoc
 %endif
 
 %check

Reply via email to