Bug 463631

Summary: rpmlint fails to catch some errors/warnings
Product: [Fedora] Fedora Reporter: Randy Berry <randyn3lrx>
Component: rpmlintAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 9CC: manuel.wolfshant, randyn3lrx, tmz, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-25 18:32:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Randy Berry 2008-09-24 04:11:07 UTC
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):
rpmlint-0.84-2.fc9.noarch

How reproducible:
Always


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.
  
Actual results:
Seems to miss certain missing tags such as URL: space/tab mixing missing version on changelog.

Expected results:
Both methods of checking spec files should return same results.

Additional info:

Comment 1 Ville Skyttä 2008-09-25 18:32:23 UTC
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.