Bug 555284
| Summary: | test for unexpanded macros in srpms | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kamil Páral <kparal> |
| Component: | rpmlint | Assignee: | Ville Skyttä <ville.skytta> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | ajax, manuel.wolfshant, tmz, ville.skytta |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | rpmlint-0.94-1.fc12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-01-25 23:19:56 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
Kamil Páral
2010-01-14 09:56:37 UTC
rpmlint should already do that for summary, description, group, buildhost, license, and changelog. Do you have an reproducer where it doesn't? I suppose more tags could be added to the list of checked ones though.
$ rpm -qp --qf="%{DESCRIPTION}\n" foo-1.0-1.fc11.src.rpm
Foo %foo bar
$ rpmlint foo-1.0-1.fc11.src.rpm
foo.src: W: macro-in-%description %foo
$ rpmlint -I macro-in-%description
macro-in-%description:
This tag contains something that looks like an unexpanded macro; this is often
the sign of a misspelling. Please check your specfile.
Adding Adam Jackson to needinfo as he is the reporter of the original bug. Upstream rpmlint svn now checks for unexpanded macros in a lot more tags, this will most likely be in rpmlint 0.93 once released. http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1697 Closing as rawhide (0.93-2 will hopefully appear in the next push), feel free to reopen or submit another bug if some tags for which this would be beneficial got left out. rpmlint-0.93-2.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/rpmlint-0.93-2.fc12 rpmlint-0.94-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/rpmlint-0.94-1.fc12 rpmlint-0.94-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |