From 8e96c3876a7fc94be37b3b18fb0e8b24fd28f2fe7c6d96b814b3ec0508c440d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 7 Jul 2025 09:43:33 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cpplint?expand=0&rev=18 --- python-cpplint.changes | 5 +++++ python-cpplint.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-cpplint.changes b/python-cpplint.changes index 18fd5cd..a2bab20 100644 --- a/python-cpplint.changes +++ b/python-cpplint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 7 09:42:55 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jun 16 06:12:19 UTC 2025 - Steve Kowalik diff --git a/python-cpplint.spec b/python-cpplint.spec index 542d922..cc9008e 100644 --- a/python-cpplint.spec +++ b/python-cpplint.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-cpplint Version: 1.6.1 Release: 0 @@ -34,10 +35,10 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testfixtures} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires: alts BuildArch: noarch %python_subpackages @@ -66,11 +67,8 @@ sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg %check %pytest -%post -%python_install_alternative cpplint - -%postun -%python_uninstall_alternative cpplint +%pre +%python_libalternatives_reset_alternative cpplint %files %{python_files} %license LICENSE