diff --git a/python-confpy.changes b/python-confpy.changes index 5706c81..bce49b6 100644 --- a/python-confpy.changes +++ b/python-confpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 14:47:10 UTC 2025 - Felix Stegmeier + +- Migration to libalternatives + ------------------------------------------------------------------- Mon May 26 10:46:45 UTC 2025 - Markéta Machová diff --git a/python-confpy.spec b/python-confpy.spec index 7cab1e3..efaaa92 100644 --- a/python-confpy.spec +++ b/python-confpy.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-confpy Version: 0.11.0 Release: 0 @@ -28,6 +29,8 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts +Requires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros Suggests: python-Jinja2 @@ -52,11 +55,9 @@ find . -name '*.pyc' -delete %check %pytest -%post -%python_install_alternative confpy-generate - -%postun -%python_uninstall_alternative confpy-generate +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative confpy-generate %files %{python_files} %doc README.rst