From a236fb8ac590a25e27d589f4bac36cdc36dbcf5b4e96522493703b80f9a8b43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 Jun 2025 12:10:19 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acefile?expand=0&rev=12 --- python-acefile.changes | 5 +++++ python-acefile.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-acefile.changes b/python-acefile.changes index a90264e..4a1e4b7 100644 --- a/python-acefile.changes +++ b/python-acefile.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 12:09:56 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Fri Jun 13 05:35:23 UTC 2025 - Steve Kowalik diff --git a/python-acefile.spec b/python-acefile.spec index 8c3dbe6..cf61e84 100644 --- a/python-acefile.spec +++ b/python-acefile.spec @@ -17,6 +17,7 @@ %define skip_python2 1 +%bcond_without libalternatives Name: python-acefile Version: 0.6.13 Release: 0 @@ -29,11 +30,11 @@ BuildRequires: %{python_module devel} 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 %python_subpackages %description @@ -52,11 +53,8 @@ export CFLAGS="%{optflags}" %python_clone -a %{buildroot}%{_bindir}/acefile-unace %python_expand %fdupes %{buildroot}%{$python_sitearch} -%post -%python_install_alternative acefile-unace - -%postun -%python_uninstall_alternative acefile-unace +%pre +%python_libalternatives_reset_alternative acefile-unace %files %{python_files} %doc NEWS.md README.md