From 538ab0f82d9ed7d74c9759abffa1a281709ec6b627af0ba680108906cec16428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 27 Jun 2025 14:52:31 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pystache?expand=0&rev=17 --- python-pystache.changes | 5 +++++ python-pystache.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-pystache.changes b/python-pystache.changes index f543ceb..5ccade4 100644 --- a/python-pystache.changes +++ b/python-pystache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 27 14:52:00 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Thu Jun 26 12:52:01 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-pystache.spec b/python-pystache.spec index f3db7ef..ee75e5f 100644 --- a/python-pystache.spec +++ b/python-pystache.spec @@ -17,6 +17,7 @@ %{?sle15_python_module_pythons} +%bcond_without libalternatives Name: python-pystache Version: 0.6.8 Release: 0 @@ -30,8 +31,10 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts BuildArch: noarch %description @@ -58,16 +61,14 @@ https://github.com/mustache/spec. %pyproject_install %python_clone -a %{buildroot}%{_bindir}/pystache %python_clone -a %{buildroot}%{_bindir}/pystache-test +%python_group_libalternatives pystache pystache-test %{python_expand %fdupes %{buildroot}%$python_sitelib/} %check %pytest -%post -%{python_install_alternative pystache pystache-test} - -%postun -%{python_uninstall_alternative pystache pystache-test} +%pre +%python_libalternatives_reset_alternative pystache %files %{python_files} %license LICENSE