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

Querying for Source URL's from specfile?



Just wondering.. is it possible to query the Source / Patch files from a
specfile? 

What I'm after is that practically everybody uses something like
"Source0: ftp://somewhere.com/pub/download/%{name}-%{version}.tar.gz";
and I'd like to get the URL with %{name} and {version} expanded out of
specfile query, basically

$ rpm -q --qf "%{SOURCE0}\n" foo.spec
ftp://somewhere.com/pub/download/foo-1.2.tar.gz

	- Panu -

Attachment: signature.asc
Description: This is a digitally signed message part


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