From a8a9740288c50c60063e39ec31d65daeec78d0a5b05fecb0948b46295f499957 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 14:51:23 +0000 Subject: [PATCH] Accepting request 1282801 from home:fstegmeier:branches:devel:languages:python - Migration to libalternatives OBS-URL: https://build.opensuse.org/request/show/1282801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-confpy?expand=0&rev=5 --- python-confpy.changes | 5 +++++ python-confpy.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-confpy.changes b/python-confpy.changes index 5706c81..bce49b6 100644 --- a/python-confpy.changes +++ b/python-confpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 14:47:10 UTC 2025 - Felix Stegmeier + +- Migration to libalternatives + ------------------------------------------------------------------- Mon May 26 10:46:45 UTC 2025 - Markéta Machová diff --git a/python-confpy.spec b/python-confpy.spec index 7cab1e3..efaaa92 100644 --- a/python-confpy.spec +++ b/python-confpy.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-confpy Version: 0.11.0 Release: 0 @@ -28,6 +29,8 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts +Requires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros Suggests: python-Jinja2 @@ -52,11 +55,9 @@ find . -name '*.pyc' -delete %check %pytest -%post -%python_install_alternative confpy-generate - -%postun -%python_uninstall_alternative confpy-generate +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative confpy-generate %files %{python_files} %doc README.rst