diff --git a/python-exrex.changes b/python-exrex.changes index cf189de..6be44f1 100644 --- a/python-exrex.changes +++ b/python-exrex.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 13:26:33 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue May 27 10:23:28 UTC 2025 - Markéta Machová diff --git a/python-exrex.spec b/python-exrex.spec index 576789d..dc70e77 100644 --- a/python-exrex.spec +++ b/python-exrex.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-exrex Version: 0.11.0 Release: 0 @@ -29,11 +30,11 @@ Source: https://github.com/asciimoo/exrex/archive/v%{version}.tar.gz#/ex BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-setuptools -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -57,11 +58,8 @@ rm %{buildroot}%{_bindir}/exrex.py %{python_expand # comment LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{$python_sitelib} $python ./tests.py} -%post -%python_install_alternative exrex - -%postun -%python_uninstall_alternative exrex +%pre +%python_libalternatives_reset_alternative exrex %files %{python_files} %{python_sitelib}/exrex*