diff --git a/python-labels.changes b/python-labels.changes index 959cb88..1060bb9 100644 --- a/python-labels.changes +++ b/python-labels.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 5 09:25:03 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Fri May 30 09:38:00 UTC 2025 - Markéta Machová diff --git a/python-labels.spec b/python-labels.spec index e3d05f3..9ee3149 100644 --- a/python-labels.spec +++ b/python-labels.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-labels Version: 20.1.0 Release: 0 @@ -29,12 +30,12 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-attrs Requires: python-click Requires: python-pytoml Requires: python-requests -Requires(post): alts -Requires(postun): alts +BuildRequires: alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module attrs} @@ -65,11 +66,9 @@ CLI app for managing GitHub labels. export LANG=en_US.UTF-8 %pytest -%post -%python_install_alternative labels - -%postun -%python_uninstall_alternative labels +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative labels %files %{python_files} %doc README.md