Files in the directory excep some included as doc

Pierre-Yves pingou at pingoured.fr
Tue Feb 24 22:16:14 UTC 2009


On Tue, 2009-02-24 at 14:07 -0800, Conrad Meyer wrote:
> On Tuesday 24 February 2009 01:48:59 pm Pierre-Yves wrote:
> > On Tue, 2009-02-24 at 13:41 -0800, Conrad Meyer wrote:
> > > On Tuesday 24 February 2009 01:36:14 pm Pierre-Yves wrote:
> > > > I am wondering if there is any trick that could make me able to say in
> > > > the %file section of a spec file
> > > > include all what's in the directory foo
> > > > except bar
> > > > include bar as %doc
> > > >
> > > > (bar in contained in the directory foo)
> > >
> > > Move bar at the end of %install; add it to %doc normally.
> >
> > I do not install bar myself, it's done directly.
> That does not stop you from moving it at the end of %install.

I should not move them, they are where they should be:

%{_datadir}/R/library/%{packname}/

%doc %{_datadir}/R/library/%{packname}/doc
%doc %{_datadir}/R/library/%{packname}/DESCRIPTION
%doc %{_datadir}/R/library/%{packname}/html
%doc %{_datadir}/R/library/%{packname}/late

This obviously returns "File listed twice" but I was wondering if I
could find a way to avoid to add the content of the whole directory.

Just wondering if it is possible, it might not be. I already asked spot
who had no idea about that.

Thanks for your help,

Pierre




More information about the fedora-devel-list mailing list