Re: Is there a command to expand Source0 from spec file to the final URL?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux