15
0

Accepting request 1291007 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291007
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cpplint?expand=0&rev=9
This commit is contained in:
2025-07-07 12:49:52 +00:00
committed by Git OBS Bridge
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