Add rpmlint config to silence unneeded warnings

After this change, the only rpmlint issues are incorrect-fsf-address
errors:

git-gui.noarch: E: incorrect-fsf-address /usr/libexec/git-core/git-gui
git-gui.noarch: E: incorrect-fsf-address /usr/libexec/git-core/git-citool
git.x86_64: E: incorrect-fsf-address /usr/share/emacs/site-lisp/git/git.el
git-core-doc.x86_64: E: incorrect-fsf-address /usr/share/doc/git/contrib/hg-to-git/hg-to-git.py
git-core-doc.x86_64: E: incorrect-fsf-address /usr/share/doc/git/contrib/emacs/git.el
git-core-doc.x86_64: E: incorrect-fsf-address /usr/share/doc/git/contrib/fast-import/import-directories.perl
git-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/git-2.15.0/trace.c

These issues will be fixed in the next upstream release, with the
following commits:

https://github.com/git/git/commit/484257925f
https://github.com/git/git/commit/63100874c1
This commit is contained in:
Todd Zullinger 2017-11-10 00:48:10 -05:00
parent d24b9418f8
commit 76189e1ea4

17
.rpmlint Normal file
View File

@ -0,0 +1,17 @@
from Config import *
# the dictionary is a bit limited
addFilter("git.* spelling-error %description .* subpackages")
# We're not misusing %{buildroot} here
addFilter("git\.(spec|src):.* rpm-buildroot-usage %prep DESTDIR = %{buildroot}")
# git-core-doc requires git-core, which provides the symlink target
addFilter("git(-core-doc)?\..*: W: dangling-relative-symlink /usr/share/doc/git/contrib/hooks ../../../git-core/contrib/hooks")
# git-gui requires git, which provides the git binary
addFilter("git-gui.noarch: W: desktopfile-without-binary /usr/share/applications/git-gui.desktop git")
# ignore no doc/manpage warnings where we don't expect any documentation
addFilter("git-(all|core|gnome-keyring)\..*: W: no-documentation")
addFilter("git-core\..*: W: no-manual-page-for-binary")