On Thu, 20 Nov 2014 11:54:07 +0200, Alexander Todorov wrote:
Hi guys,
I was looking into bug #1114586 and it reveals a significant number (400+) of
RPM packages which leave empty directories under /usr/share/doc when installed
with --excludedocs.
I've looked at a few of them and they had either
%dir %{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/some_file
or
%doc %{_docdir}/%{name}-%{version}
in their spec files.
They do that so the directory gets _removed_ when *uninstalling* the package.
Did you test that case, too?
The Packaging Guide doesn't say anything about these name-version
directories,
whether they should be specified in the spec file or only the indivisual files
specified.
It is ordinary ownership of directories as covered by the guidelines.