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