From 2184c2de0a5fa8864ea8c691cfcc6fe2e05ce2f04ad5ca5d46721744b76abb62 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 15:38:28 +0000 Subject: [PATCH] - Migrate to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stone?expand=0&rev=4 --- python-stone.changes | 5 +++++ python-stone.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-stone.changes b/python-stone.changes index 2e211a9..f199f78 100644 --- a/python-stone.changes +++ b/python-stone.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 15:37:57 UTC 2025 - Nico Krapp + +- Migrate to libalternatives + ------------------------------------------------------------------- Tue May 13 03:29:18 UTC 2025 - Steve Kowalik diff --git a/python-stone.spec b/python-stone.spec index 597a1de..51bc5c4 100644 --- a/python-stone.spec +++ b/python-stone.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-stone Version: 3.3.9 Release: 0 @@ -37,11 +38,11 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module testsuite} # /SECTION BuildRequires: fdupes +BuildRequires: alts +Requires: alts Requires: python-Jinja2 >= 3.0.3 Requires: python-packaging >= 21.0 Requires: python-ply >= 3.4 -Requires(post): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -62,11 +63,11 @@ Stone is an interface description language (IDL) for APIs. %check %pytest -%post -%python_install_alternative stone +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative stone -%postun -%python_uninstall_alternative stone +# post and postun macro call is not needed with only libalternatives %files %{python_files} %doc README.rst