From b83c0695cc275e6267c07536589c2a9ee26d6432a1a8b6dab4c14b89a4614c58 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 14:49:40 +0000 Subject: [PATCH] Accepting request 1282799 from home:fstegmeier:branches:devel:languages:python - fix usage of libalternatives OBS-URL: https://build.opensuse.org/request/show/1282799 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cppclean?expand=0&rev=12 --- python-cppclean.changes | 5 +++++ python-cppclean.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-cppclean.changes b/python-cppclean.changes index a2df1ca..445aa66 100644 --- a/python-cppclean.changes +++ b/python-cppclean.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 14:32:35 UTC 2025 - Felix Stegmeier + +- fix usage of libalternatives + ------------------------------------------------------------------- Fri May 16 12:22:18 UTC 2025 - Markéta Machová diff --git a/python-cppclean.spec b/python-cppclean.spec index 013c807..6c5b1f4 100644 --- a/python-cppclean.spec +++ b/python-cppclean.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-cppclean Version: 0.13 Release: 0 @@ -27,11 +28,11 @@ Source: https://github.com/myint/cppclean/archive/v%{version}.tar.gz BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: bash BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): alts -Requires(postun): alts +Requires: alts BuildArch: noarch %python_subpackages @@ -56,11 +57,9 @@ considerable extra compiles increasing the edit-compile-run cycle. %check %python_expand PYTHON=%{__$python} bash test.bash -%post -%python_install_alternative cppclean - -%postun -%python_uninstall_alternative cppclean +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative cppclean %files %{python_files} %license COPYING