diff --git a/pyproject-rpm-macros.rpmlintrc b/pyproject-rpm-macros.rpmlintrc index c97d7d7..c67af31 100644 --- a/pyproject-rpm-macros.rpmlintrc +++ b/pyproject-rpm-macros.rpmlintrc @@ -4,5 +4,14 @@ addFilter(r'devel-dependency python3-devel') # RPM macros, this is expected addFilter(r'only-non-binary-in-usr-lib') -# spelling errors -addFilter(r'spelling-error .* en_US (toml|setuptools) ') +# 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')