From 9128edb03bc822ced6bad2ce3e6d658a8d71c3946acdc69645bdc57588c7b164 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 15:06:26 +0000 Subject: [PATCH] Accepting request 1282810 from home:fstegmeier:branches:devel:languages:python - Migration to libalternatives OBS-URL: https://build.opensuse.org/request/show/1282810 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfgdiff?expand=0&rev=10 --- python-cfgdiff.changes | 5 +++++ python-cfgdiff.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-cfgdiff.changes b/python-cfgdiff.changes index 7752d6a..f9fd47d 100644 --- a/python-cfgdiff.changes +++ b/python-cfgdiff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 14:54:38 UTC 2025 - Felix Stegmeier + +- Migration to libalternatives + ------------------------------------------------------------------- Fri May 23 09:05:55 UTC 2025 - Markéta Machová diff --git a/python-cfgdiff.spec b/python-cfgdiff.spec index cac7790..a9b2d62 100644 --- a/python-cfgdiff.spec +++ b/python-cfgdiff.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-cfgdiff Version: 0.0.0+git.1641843506.dc1234a Release: 0 @@ -29,8 +30,10 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} ## /SECTION +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Provides: cfgdiff BuildArch: noarch %python_subpackages @@ -58,11 +61,9 @@ cfgdiff currently supports the following formats: %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/cfgdiff -%post -%python_install_alternative cfgdiff - -%postun -%python_uninstall_alternative cfgdiff +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative cfgdiff %check export PYTHONPATH=.