15
0

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cpplint?expand=0&rev=18
This commit is contained in:
2025-07-07 09:43:33 +00:00
committed by Git OBS Bridge
parent 4afda8e8d4
commit 8e96c3876a
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 7 09:42:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jun 16 06:12:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -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