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