Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Cython0 for openSUSE:Factory 
checked in at 2025-08-18 16:08:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Cython0 (Old)
 and      /work/SRC/openSUSE:Factory/.python-Cython0.new.1085 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Cython0"

Mon Aug 18 16:08:48 2025 rev:6 rq:1299415 version:0.29.37

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Cython0/python-Cython0.changes    
2025-04-11 16:45:11.851234184 +0200
+++ /work/SRC/openSUSE:Factory/.python-Cython0.new.1085/python-Cython0.changes  
2025-08-18 16:09:07.949118473 +0200
@@ -1,0 +2,5 @@
+Thu Aug 14 12:49:54 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives on SLE-16-based and newer systems
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Cython0.spec ++++++
--- /var/tmp/diff_new_pack.rNLPXa/_old  2025-08-18 16:09:09.581186237 +0200
+++ /var/tmp/diff_new_pack.rNLPXa/_new  2025-08-18 16:09:09.585186403 +0200
@@ -16,8 +16,13 @@
 #
 
 
-%{?sle15_python_module_pythons}
 %bcond_with test
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+%{?sle15_python_module_pythons}
 Name:           python-Cython0
 Version:        0.29.37
 Release:        0
@@ -36,12 +41,17 @@
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  python-rpm-macros
-Provides:       python-Cython = %{version}-%{release}
-Provides:       python-cython = %{version}-%{release}
 Requires:       python-devel
 Requires:       python-xml
+Provides:       python-Cython = %{version}-%{release}
+Provides:       python-cython = %{version}-%{release}
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
+%endif
 %python_subpackages
 
 %description
@@ -68,6 +78,7 @@
 for p in cython cythonize cygdb ; do
     %python_clone -a %{buildroot}%{_bindir}/$p
 done
+%python_group_libalternatives cython cythonize cygdb
 
 %{python_expand chmod a+x 
%{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
 sed -i "s|^#!%{_bindir}/env python$|#!%{__$python}|" 
%{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
@@ -83,6 +94,9 @@
 }
 %endif
 
+%pre
+%python_libalternatives_reset_alternative cython
+
 %post
 %python_install_alternative cython cythonize cygdb
 

Reply via email to