On Wed, 2009-10-14 at 15:36 -0400, Braden McDaniel wrote: > On 10/14/09 5:38 AM, Jussi Lehtola wrote: > > Just use %doc to place the files in %{_docdir}, e.g. > > %doc doc/* > > The problem with that is that it does *not* put the files in %{_docdir} > when it is used for a subpackage. Instead, the files are put in > /usr/share/doc/subpackagename-%{version}. I don't want that. Sorry, I must have misread your question. If you only use %docs with absolute paths, then rpm doesn't seem to remove %{_docdir}. If you use paths relative to the builddir, then rm -rf is run. For example %files %defattr(-,root,root,-) %doc A %files doc %defattr(-,root,root,-) %doc %{_docdir}/%{name}-%{version}/B does not work (fails with file B not found), but %files %defattr(-,root,root,-) %doc %{_docdir}/%{name}-%{version}/A %files doc %defattr(-,root,root,-) %doc %{_docdir}/%{name}-%{version}/B works just fine. PS. This list is actually off-topic for this kind of discussion, next time mail fedora-devel-list instead. -- Jussi Lehtola Fedora Project Contributor jussilehtola@xxxxxxxxxxxxxxxxx -- Fedora-packaging mailing list Fedora-packaging@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-packaging