[Bug 1702] New: Review Request: imagination - A lightweight and
simple GTK based DVD slide show creator
Michael Schwendt
mschwendt at gmail.com
Sat Apr 16 21:17:02 CEST 2011
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. ;)
More information about the rpmfusion-developers
mailing list