Red Hat Bugzilla – Bug 566978
rpmlint reports invalid-url for non-url source references
Last modified: 2014-05-09 07:03:31 EDT
Description of problem:
The new rpmlint version reports invalid-url warning for source references that are not urls, e.g.
$ rpmlint globus-gram-client-tools.spec
globus-gram-client-tools.spec: W: invalid-url Source0: globus_gram_client_tools-7.3.tar.gz
The description of this warning is:
$ rpmlint -I invalid-url
The value should be a valid, public HTTP, HTTPS, or FTP URL.
Issuing this warning if there is e.g. a git:// or svn+ssh:// url there makes sense, but issuing the warning when the source reference is not a url at all doesn't. There are many reasons why the source reference might not be a url:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run rpmlint on a spec file with a non-url source reference
rpmlint issues an invalid-url warning.
This issue did not exist in earlier versions of rpmlint.
This is intentional, we want a warning for all non-URL source archives to alert packagers to check if a URL would exist but is accidentally not used. If there's no URL that can be used for the source archive, just ignore the warning.
I've just hit the same problem. It would seem to me that a better solution would be for rpmlint to support file:// URLs.
I fail to see how file:// URLs in specfiles would make any sense.