diff --git a/python-portpicker.changes b/python-portpicker.changes index c95a8ae..39832fc 100644 --- a/python-portpicker.changes +++ b/python-portpicker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 15:06:09 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 11:55:19 UTC 2025 - Markéta Machová diff --git a/python-portpicker.spec b/python-portpicker.spec index 2964acb..a98f974 100644 --- a/python-portpicker.spec +++ b/python-portpicker.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-portpicker Version: 1.6.0 Release: 0 @@ -27,11 +28,11 @@ Source0: https://files.pythonhosted.org/packages/source/p/portpicker/port BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: net-tools-deprecated BuildRequires: python-rpm-macros -Requires(post): alts -Requires(postun): alts +Requires: alts BuildArch: noarch %python_subpackages @@ -55,11 +56,8 @@ test -f setup.py || echo "import setuptools; setuptools.setup()" > setup.py %check %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python src/tests/portpicker_test.py -%post -%python_install_alternative portserver.py - -%postun -%python_uninstall_alternative portserver.py +%pre +%python_libalternatives_reset_alternative portserver.py %files %{python_files} %license LICENSE