diff --git a/python-bugzillatools.changes b/python-bugzillatools.changes index c0fcdb5..f82c729 100644 --- a/python-bugzillatools.changes +++ b/python-bugzillatools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 17 09:16:04 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Fri Jun 6 05:30:56 UTC 2025 - Steve Kowalik diff --git a/python-bugzillatools.spec b/python-bugzillatools.spec index 5f7d2f0..fd7d32f 100644 --- a/python-bugzillatools.spec +++ b/python-bugzillatools.spec @@ -17,6 +17,7 @@ %define oldpython python +%bcond_without libalternatives Name: python-bugzillatools Version: 0.5.5 Release: 0 @@ -35,10 +36,10 @@ Patch2: python312.patch 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 # We want to conflict even package literally called python-bugzilla # without the python version number Conflicts: %{oldpython}-bugzilla @@ -69,11 +70,8 @@ sed -i "/.bugzillarc.sample/d" setup.py %check %pyunittest -%post -%python_install_alternative bugzilla - -%postun -%python_uninstall_alternative bugzilla +%pre +%python_libalternatives_reset_alternative bugzilla %files %{python_files} %doc CHANGES README.rst gpl-3.0.txt