diff --git a/python-patiencediff.changes b/python-patiencediff.changes index 94fa4a7..6bad874 100644 --- a/python-patiencediff.changes +++ b/python-patiencediff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 14:28:12 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 09:13:27 UTC 2025 - Markéta Machová diff --git a/python-patiencediff.spec b/python-patiencediff.spec index c2d4ae5..dafa1cf 100644 --- a/python-patiencediff.spec +++ b/python-patiencediff.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-patiencediff Version: 0.2.15 Release: 0 @@ -29,10 +30,10 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): alts -Requires(preun): alts +Requires: alts %python_subpackages %description @@ -50,11 +51,8 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %python_clone -a %{buildroot}%{_bindir}/patiencediff -%post -%python_install_alternative patiencediff - -%postun -%python_uninstall_alternative patiencediff +%pre +%python_libalternatives_reset_alternative patiencediff %check %pytest