From 35afb0e0ec312a307680732fa869bbf83b1e3e65127353233813323550c9f4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 13:26:12 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eradicate?expand=0&rev=15 --- python-eradicate.changes | 5 +++++ python-eradicate.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-eradicate.changes b/python-eradicate.changes index 612dc1d..7010000 100644 --- a/python-eradicate.changes +++ b/python-eradicate.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 13:25:52 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue May 27 09:49:35 UTC 2025 - Markéta Machová diff --git a/python-eradicate.spec b/python-eradicate.spec index 4bfdeb0..2e62156 100644 --- a/python-eradicate.spec +++ b/python-eradicate.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-eradicate Version: 2.3.0 @@ -28,10 +29,10 @@ Source: https://files.pythonhosted.org/packages/source/e/eradicate/eradi BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): alts -Requires(postun): alts +Requires: alts BuildArch: noarch %python_subpackages @@ -55,11 +56,8 @@ which is valid Python syntax, but is probably not code.) %python_clone -a %{buildroot}%{_bindir}/eradicate -%post -%python_install_alternative eradicate - -%postun -%python_uninstall_alternative eradicate +%pre +%python_libalternatives_reset_alternative eradicate %check %pyunittest -v