From f8593b405cf068dbc1ab72d1de5cd0eda90a437daee53b7bc475c04b606c19a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Sat, 19 Jul 2025 07:29:00 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkginfo?expand=0&rev=32 --- python-pkginfo.changes | 5 +++++ python-pkginfo.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) 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