From a2a1cd5b20bbf4b95bb50ab9084b3a74756b9d73c11c9ea7e634a8b85d5cbcf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 27 Jun 2025 15:29:19 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cheetah3?expand=0&rev=39 --- python-Cheetah3.changes | 5 +++++ python-Cheetah3.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-Cheetah3.changes b/python-Cheetah3.changes index 05311d0..0f8c79f 100644 --- a/python-Cheetah3.changes +++ b/python-Cheetah3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 27 15:08:21 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Apr 14 05:48:43 UTC 2025 - Steve Kowalik diff --git a/python-Cheetah3.spec b/python-Cheetah3.spec index fcf78da..64e37e4 100644 --- a/python-Cheetah3.spec +++ b/python-Cheetah3.spec @@ -17,6 +17,7 @@ %define modname cheetah3 +%bcond_without libalternatives Name: python-Cheetah3 Version: 3.4.0 Release: 0 @@ -28,8 +29,10 @@ Source: https://github.com/CheetahTemplate3/cheetah3/archive/refs/tags/% BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Recommends: python-Markdown Suggests: python-Pygments Conflicts: python-Cheetah @@ -72,15 +75,13 @@ sed -Ei 's/(test6)/_\1/' Cheetah/Tests/SyntaxAndOutput.py %python_clone -a %{buildroot}%{_bindir}/cheetah %python_clone -a %{buildroot}%{_bindir}/cheetah-analyze %python_clone -a %{buildroot}%{_bindir}/cheetah-compile +%python_group_libalternatives cheetah cheetah-analyze cheetah-compile %{python_expand rm -r %{buildroot}%{$python_sitearch}/Cheetah/Tests %fdupes %{buildroot}%{$python_sitearch} } -%post -%python_install_alternative cheetah cheetah-analyze cheetah-compile - -%postun -%python_uninstall_alternative cheetah +%pre +%python_libalternatives_reset_alternative cheetah %check mkdir ~/bin