[Fedora-packaging] %doc and docdir conflicts

Rex Dieter rdieter at math.unl.edu
Thu May 18 16:07:01 UTC 2006


Orion Poplawski wrote:
> Where is the appropriate place to put documentation that a package will 
> install during %install in the location specified by --docdir?  I've 
> tried using %{_docdir}/%{name}-%{version}, but the %doc macro will clean 
> out that directory before copying over any files listed, wiping out 
> anything installed during %install.

It's an either/or thing.  You either let %install put the stuff in 
%{_docdir}/%{name}-%{version} *or* you do it manually with %doc.

If you want/need stuff done in %install, you need to put it somewhere else.

-- Rex




More information about the Fedora-packaging mailing list