From 4afda8e8d4bea6357b36eb1f7043c7d2886dc900882686acae5ea76cb127564b Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:20:47 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cpplint?expand=0&rev=16 --- python-cpplint.changes | 5 +++++ python-cpplint.spec | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-cpplint.changes b/python-cpplint.changes index 313a8f0..18fd5cd 100644 --- a/python-cpplint.changes +++ b/python-cpplint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:19 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + ------------------------------------------------------------------- Tue Feb 20 19:11:15 UTC 2024 - Daniel Garcia diff --git a/python-cpplint.spec b/python-cpplint.spec index d044ce5..542d922 100644 --- a/python-cpplint.spec +++ b/python-cpplint.spec @@ -1,7 +1,7 @@ # # spec file for package python-cpplint # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,9 +29,11 @@ Patch0: drop-sre-compile.patch Patch1: python312.patch # PATCH-FIX-UPSTREAM deprecated-unittest-aliases.patch gh#cpplint/cpplint#182 Patch2: deprecated-unittest-aliases.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testfixtures} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives @@ -54,10 +56,10 @@ sed -i 's/pytest-cov//' test-requirements sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/cpplint %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -74,7 +76,8 @@ sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg %license LICENSE %doc README.rst %python_alternative %{_bindir}/cpplint -%{python_sitelib}/cpplint* -%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/cpplint.py +%pycache_only %{python_sitelib}/__pycache__/cpplint.*.pyc +%{python_sitelib}/cpplint-%{version}.dist-info %changelog