From d11fccfd4fdcf9704c13911e9a77651db77a9bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 26 Mar 2021 13:44:21 +0100 Subject: [PATCH] rpmlint: Don't report extra tokens at the end of %endif/%else directives --- python3.10.rpmlintrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python3.10.rpmlintrc b/python3.10.rpmlintrc index 2fa3074..930d8ec 100644 --- a/python3.10.rpmlintrc +++ b/python3.10.rpmlintrc @@ -44,6 +44,9 @@ addFilter(r'^python3(\.\d+)?-(debug|tkinter|test|idle)\.[^:]+: (E|W): no-documen # platform python is obsoleted, but not provided addFilter(r'obsolete-not-provided platform-python') +# we have extra tokens at the end of %endif/%else directives, we consider them useful +addFilter(r'extra tokens at the end of %(endif|else) directive') + # RPMLINT IMPERFECTIONS # https://github.com/rpm-software-management/rpmlint/issues/123 @@ -86,5 +89,9 @@ addFilter(r'macro-in-comment %\{_pyconfig(32|64)_h\}') addFilter(r'E: library-not-linked-against-libc /usr/lib(64)?/python3\.\d+/lib-dynload/') addFilter(r'E: shared-lib-without-dependency-information /usr/lib(64)?/python3\.\d+/lib-dynload/') +# specfile-errors are listed twice, once with reason and once without +# we filter out the empty ones +addFilter(r'\bpython3(\.\d+)?\.(src|spec): (E|W): specfile-error\s+$') + # SPELLING ERRORS addFilter(r'spelling-error .* en_US (bytecode|pyc|filename|tkinter|namespaces|pytest) ')