[Fedora-packaging] Doc packaging questions

T.C. Hollingsworth tchollingsworth at gmail.com
Thu Jul 25 02:54:02 UTC 2013

On Tue, Jul 23, 2013 at 2:47 PM, Nico Kadel-Garcia <nkadel at 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

Oh, there's a %{_docdir}!

% rpm -E '%{_docdir}'

Sad panda.  *Looks back at 'showrc' output.*  Hmm, there's a
%{_defaultdocdir} too...

% rpm -E '%{_defaultdocdir}'

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...)


More information about the packaging mailing list