303495d
# Keep matching patterns enough not to hide unintended errors and warnings.
b65d1d3
b65d1d3
# There is no way to implement this with `%{SOURCE0}` without `%{_sourcedir}`.
b65d1d3
# The order in the .spec file could be possibly different.
e6a3dff
addFilter(r'ruby\.(spec|src):20: E: use-of-RPM_SOURCE_DIR$')
4108f57
4108f57
# The used version is not obvious.
e6a3dff
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-build_assert\)$')
e6a3dff
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-check_type\)$')
e6a3dff
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-container_of\)$')
e6a3dff
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-list\)$')
fbaee91
fbaee91
# The template files do not have to have executable bits.
fbaee91
addFilter(r'^rubygem-bundler\.noarch: E: non-executable-script /usr/share/gems/gems/bundler-[\d\.]+/lib/bundler/templates/[\w/\.]+ 644 /usr/bin/env ')
26bc979
26bc979
# The bundled gem files permissions are overridden as 644 by `make install`.
26bc979
# https://bugs.ruby-lang.org/issues/17840
b0ce095
# https://github.com/rubygems/rubygems/issues/5255
b0ce095
# https://github.com/ruby/debug/pull/481
b0ce095
# https://github.com/ruby/net-ftp/pull/12
b0ce095
# https://github.com/ruby/net-imap/pull/53
b0ce095
# https://github.com/ruby/net-pop/pull/7
b0ce095
# https://github.com/ruby/prime/pull/16
b0ce095
addFilter(r'^.*: E: non-executable-script /usr/share/gems/gems/(debug|net-(ftp|imap|pop)|prime)-[\d\.]+/bin/\w+ 644 ')
b0ce095
b0ce095
# Ruby provides API to set the cipher list.
b0ce095
addFilter(r'^ruby-libs\.\w+: W: crypto-policy-non-compliance-openssl /usr/lib(64)?/ruby/openssl.so SSL_CTX_set_cipher_list$')
b0ce095
b0ce095
# `gethostbyname` is part of deprecated Ruby API. There is also request to drop the API altogether:
b0ce095
# https://bugs.ruby-lang.org/issues/13097
b0ce095
# https://bugs.ruby-lang.org/issues/17944
b0ce095
addFilter(r'^ruby-libs\.\w+: W: binary-or-shlib-calls-gethostbyname /usr/lib(64)?/ruby/socket.so$')
a09dbbe
b0ce095
# Rake ships some examples.
b0ce095
addFilter(r'^rubygem-rake.noarch: W: devel-file-in-non-devel-package /usr/share/gems/gems/rake-[\d\.]+/doc/example/\w+.c$')
b0ce095
b0ce095
# Some executables don't have their manual pages. Is it worth of use help2man?
05a6c9c
addFilter(r'^.+: W: no-manual-page-for-binary (bundler|gem|racc|rbs|rdbg|rdoc|ruby-mri|syntax_suggest|typeprof)$')
b0ce095
b0ce095
# Default gems does not come with any documentation.
b0ce095
addFilter(r'^rubygem-(bigdecimal|io-console|json|psych)\.\w+: W: no-documentation$')
b0ce095
b0ce095
# rubygems-devel ships only RPM macros and generators. Their placement is given
b0ce095
# by RPM and can't be modified.
b0ce095
addFilter(r'rubygems-devel.noarch: W: only-non-binary-in-usr-lib$')
05a6c9c
05a6c9c
# Ignore some spelling false positives.
05a6c9c
# Ignore spelling of technical terms
05a6c9c
addFilter(r'^ruby-default-gems.noarch: E: spelling-error \(\'gemspec\'')
05a6c9c
addFilter(r'^ruby-libs.x86_64: E: spelling-error \(\'libruby\'')
05a6c9c
addFilter(r'^rubygem-test-unit.noarch: E: spelling-error \(\'xUnit\'')
05a6c9c
addFilter(r'^rubygem-psych.x86_64: E: spelling-error \(\'libyaml\'')
05a6c9c
addFilter(r'^rubygem-io-console.x86_64: E: spelling-error \(\'readline\'')
05a6c9c
# `pyaml` is part of URL
05a6c9c
addFilter(r'^rubygem-psych.x86_64: E: spelling-error \(\'pyyaml\'')
05a6c9c
# `de-` is actually prefix
05a6c9c
addFilter(r'^rubygem-psych.x86_64: E: spelling-error \(\'de\'')
05a6c9c
05a6c9c
# It does not seemt to be worth of changing rubygems to archful package due to
05a6c9c
# single directory, unless it causes some real troubles.
05a6c9c
addFilter(r'^rubygems.noarch: E: noarch-with-lib64$')