[Bug 661961] Review Request: kyotocabinet - A lightweight database library

bugzilla at redhat.com bugzilla at redhat.com
Fri Dec 10 23:35:40 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=661961

--- Comment #2 from Casey Dahlin <cdahlin at redhat.com> 2010-12-10 18:35:38 EST ---
>From http://fedoraproject.org/wiki/PackageMaintainers/CreatingPackageHowTo

There is a potential 'gotcha' with %doc entries: if you have a %doc entry, then
you can't use commands during %install to copy files into the documentation
directory descending from %_defaultdocdir. That's because if there's a %doc
entry, rpmbuild will automatically remove the docdir files created by %install
before installing the files listed with %doc. This can hit you if, for example,
you want an "examples" subdirectory in the documentation directory. In this
case, don't use "%doc" to mark documentation. Instead, create the directories
and copy the files into %{buildroot}%{_defaultdocdir}/%{name}-%{version}/
during %install, and make sure that %files includes an entry for
"%{_defaultdocdir}/%{name}-%{version}/". They will still be correctly marked as
documentation.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list