On Sat, 16 Apr 2011 13:50:49 -0500, RS wrote:
> Once you are certain that you can move the doc files without
breaking
> anything:
>
> 2.) Install them into a temporary location and make them available
> somewhere below $(pwd), which is within the space of your extracted
> package below %_builddir. Clean up and set up that temporary location
> in %install. Then you can use %doc to include those doc files. E.g.
>
> %install
> ...
> rm -rf %(pwd)/_tmpdoc ; mkdir $(pwd)/_tmpdoc
> mv %{buildroot}%{_docdir}/%{name} $(pwd)/_tmpdoc
>
>
> %files
> ...
> %doc _tmpdoc/*
I kinda see show this works, however, till the %doc move it to the
right directory this way? I though if it had a path in it, rpm would
just mark it as documentation but not move it?
As "_tmpdoc/*" is not an absolute path, %doc copies the file(s) from the
local build directory and additionally marks them as documentation. Just
like
%doc AUTHORS COPYING doc/html README
which also copies those files from the local build dir.
Techniques like this are in use for a long time, so it's not as if I'm
suggesting something that wouldn't work. ;)