On 09/07/2015 12:26 PM, Miroslav Suchý wrote: > I have this snippet in my spec: > > %install > mkdir -p %{buildroot}%{_docdir}/python-%{upstream_name} > cp -a docs/* examples %{buildroot}%{_docdir}/python-%{upstream_name}/ > > %files > %doc %{_docdir}/python-%{upstream_name} > > However when I use it exactly this way I get warnings that those files are listed twice. > > When I comment it out: > %files > #%doc %{_docdir}/python-%{upstream_name} > > Then those doc files are packaged anyway. > Is this new feature or bug? > > I have: > rpm-4.12.0.1-12.fc22.x86_64 > 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. 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 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list