File project.diff of Package python-Mako

--- python-Mako.changes.orig
+++ python-Mako.changes
@@ -1,4 +1,14 @@
 -------------------------------------------------------------------
+Wed Sep 10 10:40:31 UTC 2025 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>
+
+- Only build python3-Mako 
+
+-------------------------------------------------------------------
+Wed Sep 10 10:39:16 UTC 2025 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>
+
+- Enable alternatives for /usr/bin/mako-render 
+
+-------------------------------------------------------------------
 Mon Sep 12 15:24:18 UTC 2022 - Matej Cepl <mcepl@suse.com>
 
 - add CVE-2022-40023-RE-DoS-Lexer.patch to fix bsc#1203246
--- python-Mako.spec.orig
+++ python-Mako.spec
@@ -18,6 +18,7 @@
 
 %define oldpython python
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define pythons python3
 Name:           python-Mako
 Version:        1.0.7
 Release:        0
@@ -47,6 +48,8 @@ Obsoletes:      %{oldpython}-mako < %{ve
 Provides:       python3-mako = %{version}
 Obsoletes:      python3-mako < %{version}
 %endif
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 %python_subpackages
@@ -68,16 +71,24 @@ scoping semantics.
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/mako-render
 %python_expand %fdupes -s %{buildroot}%{$python_sitelib}
 
-%check
-%python_exec setup.py test
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative mako-render
+
+%post
+%python_install_alternative mako-render
+
+%postun
+%python_uninstall_alternative mako-render
 
 %files %{python_files}
 %defattr(-,root,root,-)
 %doc CHANGES LICENSE README.rst
 %doc examples
-%python3_only %{_bindir}/mako-render
+%python_alternative %{_bindir}/mako-render
 %{python_sitelib}/mako/
 %{python_sitelib}/Mako-%{version}-py*.egg-info
 
openSUSE Build Service is sponsored by