diff --git a/python-abimap.changes b/python-abimap.changes index 7e87670..dbf0764 100644 --- a/python-abimap.changes +++ b/python-abimap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 12:09:03 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Wed Jan 22 00:59:09 UTC 2025 - Steve Kowalik diff --git a/python-abimap.spec b/python-abimap.spec index c50cae7..feee442 100644 --- a/python-abimap.spec +++ b/python-abimap.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-abimap Version: 0.3.2 Release: 0 @@ -27,11 +28,11 @@ BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sphinx_rtd_theme} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-setuptools -Requires(post): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML} @@ -81,11 +82,8 @@ install -m 0644 man/abimap.1 %{buildroot}%{_mandir}/man1/ %make_build -j1 -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}" %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:${PWD}/tests py.test-%{$python_version} -vv tests -k 'not test_main' -%post -%python_install_alternative abimap abimap.1 - -%postun -%python_uninstall_alternative abimap +%pre +%python_libalternatives_reset_alternative abimap %files %{python_files} %doc AUTHORS.rst CHANGELOG.rst README.rst