[Rpm-maint] [rpm-software-management/rpm] RFE: allow rpmspec query %{SOURCE#}, %{SOURCEURL#}, %{PATCH#} and %{PATCHURL#} over query format string (Issue #2134)
Florian Festi
notifications at github.com
Fri Jul 29 12:19:04 UTC 2022
The error message here is correct: There is no RPM tag named `SOURCE0`. `SOURCE0` is a macro only available within the spec file. The tags are named `SOURCE` and `PATCH` and both contain a list of strings. So the right queries are:
`rpmspec -q --srpm xfce4-whiskermenu-plugin.spec --qf "[%{SOURCE}\n]"`
`rpmspec -q --srpm xfce4-whiskermenu-plugin.spec --qf "[%{PATCH}\n]"`
`rpm --querytags` lists the names of tags for `--qf` so does https://rpm-software-management.github.io/rpm/manual/tags.html
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2134#issuecomment-1199211082
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2134/1199211082 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220729/98f17fb7/attachment.html>
More information about the Rpm-maint
mailing list