Buchan Milne wrote:

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}

Thanks a lot !
Next time I'll use --help, not the manpage :-)



Reply via email to