Ask Your Question

rpmlint override in spec file?

asked 2012-01-01 18:27:35 -0500

Xiao-Long Chen gravatar image

updated 2012-01-01 18:30:23 -0500

Is there a way to override certain rpmlint warnings in the spec file for a package? In Debian, I could create a pkgabc.lintian-overrides file to override the warning. I'm wondering if there's some way to do the same in an RPM spec file. Specifically, I'm trying to make rpmlint ignore some spelling 'mistakes' (really just package names that aren't in the dictionary).

Thanks in advance!

EDIT: I'm not looking to do this globally, but rather per-package.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-01-02 10:53:01 -0500

mooninite gravatar image

Add a file in /etc/rpmlint to control the behavior of rpmlint.


addFilter ("^foo-.*regex-match-for-rpmlint-warning")

Replace "foo" with the name of your package to restrict this override to only your packages.

Replace "regex-match-for-rpmlint-warning" with a regular expression to match the warning you are receiving that you wish to have hidden.

For additional information see this e-mail thread:

edit flag offensive delete link more

Question Tools


Asked: 2012-01-01 18:27:35 -0500

Seen: 987 times

Last updated: Jan 02 '12