diff --git a/python-pkginfo.changes b/python-pkginfo.changes index 18b7fdb..3227d1e 100644 --- a/python-pkginfo.changes +++ b/python-pkginfo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jul 19 07:28:46 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Feb 25 21:03:21 UTC 2025 - Dirk Müller diff --git a/python-pkginfo.spec b/python-pkginfo.spec index 9ada1d0..897a75b 100644 --- a/python-pkginfo.spec +++ b/python-pkginfo.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-pkginfo Version: 1.12.1.2 @@ -29,11 +30,11 @@ BuildRequires: %{python_module base >= 3.7} 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): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} @@ -65,11 +66,8 @@ the *.egg-info stored in a "development checkout" sed -iE "s/_make_installed('wheel')/_make_installed('wheel', metadata_version='2.3')/" pkginfo/tests/test_installed.py %pytest -%post -%python_install_alternative pkginfo - -%postun -%python_uninstall_alternative pkginfo +%pre +%python_libalternatives_reset_alternative pkginfo %files %{python_files} %license LICENSE.txt