%doc removal behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to move some API docs to a -doc subpackage.  I'd like to
install these docs to /usr/share/doc/%{name}-%{version} (which
corresponds to where "make install" puts them); so I do

        %files doc
        %doc %{_docdir}/%{name}-%{version}/manual
        
instead of

        %files doc
        %doc doc/manual

However, I'd like to leave README and similar in the main package, where
I have

        %files
        %doc README NEWS COPYING.LESSER

The problem I'm running into is that in the course of packaging the docs
for the main package, rpm does

        rm -rf %{_docdir}/%{name}-%{version}

So, when it subsequently tries to package the docs for the -doc
subpackage, the "manual" subdirectory (that was put there by "make
install") has been blown away.

What can I do here? Is it possible to suppress the "rm -rf" that %doc
does?

-- 
Braden McDaniel <braden@xxxxxxxxxxxxx>

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux