On Tue, Jul 23, 2013 at 2:47 PM, Nico Kadel-Garcia nkadel@gmail.com wrote:
Try "rpm --showrc".
I did. I'm 99% sure this is what I did when I tried to figure this out for nodejs:
% rpm --showrc | grep doc <snip>
Oh, there's a %{_docdir}!
% rpm -E '%{_docdir}' %{_docdir}
Sad panda. *Looks back at 'showrc' output.* Hmm, there's a %{_defaultdocdir} too...
% rpm -E '%{_defaultdocdir}' /usr/share/doc
Yay!!! Teh users can haz docs now!
I'm not aware of any other directory macro that works like this. It's obvious why macros like %{name} and %{summary} won't eval but there's no reason why I would expect %{_docdir} not to. (If it evaluated like %{_pkgdocdir} is planned to that would be a different story...)
-T.C.