Bug 441808
Summary: | [RFE]: provide API to SPEC file parser | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Michal Nowak <mnowak> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 5.2 | CC: | lockhart, ohudlick, pmatilai |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-03-07 09:40:35 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
Michal Nowak
2008-04-10 09:32:19 UTC
Sure there's an API of sorts for this in librpmbuild (even if it's not exactly very sane or friendly to use), but just for digging out a release number from a spec you can use a spec query, for example: [pmatilai@localhost RHEL-5]$ rpm -q --define "%dist .el5" --specfile --qf "%{name} %{version} %{release}\n" virt-manager.spec virt-manager 0.5.3 7.el5 virt-manager-debuginfo 0.5.3 7.el5 NOTABUG in the sense that couple of ways to access this data do exist. There are plans to provide a saner API for the build parts for rpm (including python bindings), but that's way way out of scope for RHEL 5. |