automatic packaging of _docdir?

Florian Festi ffesti at redhat.com
Mon Sep 7 10:54:10 UTC 2015


On 09/07/2015 12:43 PM, Miroslav Suchý wrote:
> Dne 7.9.2015 v 12:40 Florian Festi napsal(a):
>> Can you please provide the full spec file. There is a bug in rpm-4.12
>> wrt %doc that got fixed in 4.13. But the information you provide does
>> not really match. Are the the files in %{_docdir} listed (implicitly) in
>> the file section else where? See also
>> https://bugzilla.redhat.com/show_bug.cgi?id=728959
>>
>> The bug actually is that all files in %{_docdir} get added if %doc is
>> used. With the fix all files installed without using %doc need to be
>> listed in %files. This still all doesn't explain why they are listed
>> twice unless there are listed elsewhere in your spec.
> 
> SRPM: http://miroslav.suchy.cz/fedora/python-marshmallow-2.0.0b5-2.fc22.src.rpm
> SPEC: http://miroslav.suchy.cz/fedora/python-marshmallow.spec
> 
Yeah, that explains it: You have two %doc directives which both try to
add all files in %{_docdir} due to the bug mentioned above. You can try
if merging them into one directive solves your problem.

Florian

-- 

Red Hat GmbH, http://www.de.redhat.com/ Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael Cunningham, Michael
O'Neill, Charles Peters


More information about the Rpm-list mailing list