1c08424
# KNOWN BUGS:
1c08424
# https://bugzilla.redhat.com/show_bug.cgi?id=1489816
1c08424
addFilter(r'crypto-policy-non-compliance-openssl')
1c08424
1c08424
1c08424
# TESTS:
1c08424
addFilter(r'(zero-length|pem-certificate|uncompressed-zip) /usr/lib(64)?/python3.\d/test')
1c08424
1c08424
1c08424
# OTHER DELIBERATES:
1c08424
# chroot function
1c08424
addFilter(r'missing-call-to-chdir-with-chroot')
1c08424
1c08424
# intentionally unversioned and selfobsoleted
1c08424
addFilter(r'unversioned-explicit-obsoletes python')
1c08424
addFilter(r'self-obsoletion python3\d obsoletes python3\d')
1c08424
1c08424
# intentionally hardcoded
1c08424
addFilter(r'hardcoded-library-path in %{_prefix}/lib/(debug/%{_libdir}|python%{pybasever})')
1c08424
1c08424
# we have non binary stuff, python files
1c08424
addFilter(r'only-non-binary-in-usr-lib')
1c08424
1c08424
# some devel files that are deliberately needed
1c08424
addFilter(r'devel-file-in-non-devel-package /usr/include/python3\.\dm/pyconfig-(32|64)\.h')
1c08424
addFilter(r'devel-file-in-non-devel-package /usr/lib64/python3\.\d/distutils/tests/xxmodule\.c')
1c08424
1c08424
1c08424
# SORRY, NOT SORRY:
1c08424
# manual pages
1c08424
addFilter(r'no-manual-page-for-binary (idle|pydoc|pyvenv|2to3|python3-debug|pathfix\.py)')
1c08424
addFilter(r'no-manual-page-for-binary python3.*-config$')
1c08424
addFilter(r'no-manual-page-for-binary python3.\dd?m$')
1c08424
1c08424
# missing documentation from subpackages
1c08424
addFilter(r'^python3\d?-(debug|tkinter|test|idle)\.[^:]+: (E|W): no-documentation')
1c08424
1c08424
# platform python is obsoleted, but not provided
1c08424
addFilter(r'obsolete-not-provided platform-python')
1c08424
1c08424
1c08424
# RPMLINT IMPERFECTIONS:
1c08424
# ifarch applied patches are OK
1c08424
# https://fedoraproject.org/wiki/Packaging:Guidelines#Architecture_Support
1c08424
addFilter(r'%ifarch-applied-patch')
1c08424
1c08424
# debugsource
1c08424
addFilter(r'^python3\d?-debugsource\.[^:]+: (E|W): no-documentation')
1c08424
1c08424
# debuginfo
1c08424
addFilter(r'^python3\d?-debuginfo\.[^:]+: (E|W): useless-provides debuginfo\(build-id\)')
1c08424
1c08424
# debug package contains devel and non-devel files
1c08424
addFilter(r'python3\d?-debug.[^:]+: (E|W): (non-)?devel-file-in-(non-)?devel-package')
1c08424
1c08424
# this goes to other subpackage, hence not actually dangling, the read error is bogus
1c08424
addFilter(r'dangling-relative-symlink /usr/lib(64)?/pkgconfig/python-3\.\ddm\.pc python-3\.\d\.pc')
1c08424
addFilter(r'read-error /usr/lib(64)?/pkgconfig/python-3\.\ddm\.pc \[Errno 2\]')
1c08424
8dd1291
# we need this macro to evaluate, even if the line starts with #
8dd1291
addFilter(r'macro-in-comment %\{_pyconfig(32|64)_h\}')
1c08424
1c08424
# SPELLING ERRORS
1c08424
addFilter(r'spelling-error .* en_US (bytecode|pyc|filename|tkinter|namespaces|pytest) ')