From 1278dd8dbd5743904b0c1a6dc718468bd2487d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 6 Aug 2024 00:36:55 +0200 Subject: [PATCH] Extend rpmlintrc to filer out further non-errors We got: pyproject-srpm-macros.noarch: W: unexpanded-macro Summary(C) %pyproject_buildrequires pyproject-srpm-macros.noarch: W: unexpanded-macro %description -l C %pyproject_buildrequires pyproject-srpm-macros.noarch: W: unexpanded-macro %description -l C %generate_buildrequires pyproject-rpm-macros.noarch: E: spelling-error ('cfg', '%description -l en_US cfg -> cf, cg, cog') pyproject-rpm-macros.noarch: E: spelling-error ('toml', '%description -l en_US toml -> tom, tome, toms') pyproject-rpm-macros.noarch: E: spelling-error ('setuptools', '%description -l en_US setuptools -> setup tools, setup-tools, footstools') pyproject-rpm-macros.src: E: spelling-error ('cfg', '%description -l en_US cfg -> cf, cg, cog') pyproject-rpm-macros.src: E: spelling-error ('toml', '%description -l en_US toml -> tom, tome, toms') pyproject-rpm-macros.src: E: spelling-error ('setuptools', '%description -l en_US setuptools -> setup tools, setup-tools, footstools') pyproject-srpm-macros.noarch: E: spelling-error ('buildrequires', 'Summary(en_US) buildrequires -> build requires, build-requires, requirements') pyproject-srpm-macros.noarch: E: spelling-error ('buildrequires', '%description -l en_US buildrequires -> build requires, build-requires, requirements') pyproject-srpm-macros.noarch: W: no-documentation --- pyproject-rpm-macros.rpmlintrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyproject-rpm-macros.rpmlintrc b/pyproject-rpm-macros.rpmlintrc index 6d42985..95b6b7f 100644 --- a/pyproject-rpm-macros.rpmlintrc +++ b/pyproject-rpm-macros.rpmlintrc @@ -1,5 +1,11 @@ # RPM macros, this is expected addFilter(r'only-non-binary-in-usr-lib') -# we mention older macro names in the description, they are unexpanded on purpose -addFilter(r'unexpanded-macro %description .+ %py3_') +# we mention macro names in the descriptions and summaries +addFilter(r'[EW]: unexpanded-macro (%description|Summary).+ %(py3_|(generate|pyproject)_buildrequires)') + +# terms, not spelling errors +addFilter(r"[EW]: spelling-error .+'(cfg|toml|setuptools|buildrequires)'") + +# the documentation is in the other subpackage +addFilter(r'pyproject-srpm-macros.noarch: [EW]: no-documentation')