From 834247ddb8553c02a36057c9a214e268b94b83b1665e873a4b12a04011b64359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 17 Jun 2025 08:43:55 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=62 --- python-bottle.changes | 5 +++++ python-bottle.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-bottle.changes b/python-bottle.changes index 1109cf5..ddc937a 100644 --- a/python-bottle.changes +++ b/python-bottle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 17 08:43:33 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Sun Jun 15 12:06:40 UTC 2025 - Benoît Monin diff --git a/python-bottle.spec b/python-bottle.spec index 097ad7c..ea158ca 100644 --- a/python-bottle.spec +++ b/python-bottle.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-bottle Version: 0.13.4 @@ -28,10 +29,10 @@ Source1: http://bottlepy.org/docs/0.12/bottle-docs.pdf BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires: alts BuildArch: noarch %python_subpackages @@ -73,11 +74,8 @@ cp %{SOURCE1} . %check %pyunittest -v -%post -%python_install_alternative bottle.py bottle - -%postun -%python_uninstall_alternative bottle.py bottle +%pre +%python_libalternatives_reset_alternative bottle.py bottle %files %{python_files} %license LICENSE