Red Hat Bugzilla – Bug 463631
rpmlint fails to catch some errors/warnings
Last modified: 2008-09-25 14:32:23 EDT
Description of problem:
rpmlint fails to detect some errors when checking spec files as 'rpmlint packagename.spec' as compared to using 'rpmlint packagename.src.rpm'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Check files using 'rpmlint packagename.spec' and some errors are overlooked returning 0 errors 0 warnings.
2.Checking same spec file within an SRPM using 'rpmlint packagename.src.rpm' and overlooked errors appear.
Seems to miss certain missing tags such as URL: space/tab mixing missing version on changelog.
Both methods of checking spec files should return same results.
Many checks rpmlint does are run against rpm packages only, not on spec files. The reason is simply that it's much more reliable to do that way (think macro expansion etc) at least until there's a usable specfile API available from rpm for rpmlint to use. In that sense, this is not a bug. If you disagree, feel free to open a RFE at http://rpmlint.zarb.org/
There was however one related bug in 0.84 which caused some UTF-8 checks which should have been enabled to be skipped in specfile-only mode, this has been fixed in upstream svn.
By the way, rpmlint-0.84-2.fc9 does check space/tab mixing on specfiles for me.