On 7/6/21 7:15 PM, Richard W.M. Jones wrote:

Is this possible?  I've got one with lots of %{macros} in it.

It seems like this should be possible using rpmspec, but I can't work
out how.

It's a bit hysterical, but then, this is rpm...

`rpmspec --parse foo.spec|grep -i ^source0` might be the best option with rpmspec (spectool might be nicer for some tasks but doesn't support everything that rpmspec does)

In rpmbuild context the full URL isn't generally meaningful so it effectively gets discarded, but the list of source basename can be queried with `rpmspec --srpm -q --qf "[%{source}\n]" glibc.spec`, replace "source" with "patch" for list of patches, and note the --srpm flag in the query: normally rpmspec queries opearate on binary packages, which will not carry eg source and patch info at all.

        - Panu -
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to