On Sun, 22 Dec 2002, Pascal Terjan wrote:

> Hi, is there a way to get in a script the value of some rpm macros like
> _sourcedir or _specdir ?
> I found how to get their values (using --showrc) but not expanded
> (%{_topdir}/SPECS). I can then look for % and make the expansion by hand
> but I
> may introduce bugs...
>

rpm --eval %{_sourcedir}


-- 
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7


Reply via email to