[Fedora-packaging] Doc packaging questions

Ville Skyttä ville.skytta at iki.fi
Wed Jul 24 06:00:51 UTC 2013


On 2013-07-23 23:19, Ville Skyttä wrote:
> On 2013-07-23 23:00, T.C. Hollingsworth wrote:
>> On Tue, Jul 23, 2013 at 12:33 PM, Ville Skyttä <ville.skytta at iki.fi> wrote:
>>> %global pkgdocdir %{_docdir}/%{?_docdir_fmt:%{expand:%(echo
>>> '%{_docdir_fmt}' | tr A-Z a-z)}}%{!?_docdir_fmt:%{name}-%{version}}
>>
>> Why not just define %{pkgdocdir} in redhat-rpm-config instead of
>> making everyone do this in spec files?
> 
> That'd be better, yes, but I'll note that it's only a smallish subset of
> packages that need this, not "everyone".
> 
> Anyway, exactly HOW to define it is my main question at the moment.

Hm, if we define it in redhat-rpm-config where %{_docdir_fmt} is defined
as well, we can just "duplicate" its value, no need to be that fancy, so:

%_docdir_fmt %%{NAME}
%pkgdocdir %{_docdir}/%{name}

BTW thoughts if it should be %pkgdocdir or %_pkgdocdir?


More information about the packaging mailing list