<div dir="ltr"><div><div><div>On 20 November 2014 09:54, Alexander Todorov &lt;<a href="mailto:atodorov@redhat.com">atodorov@redhat.com</a>&gt; wrote:<br>&gt;<br>&gt; Hi guys,<br>&gt; 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.<br>&gt;<br>&gt; I&#39;ve looked at a few of them and they had either<br>&gt;<br>&gt; %dir %{_docdir}/%{name}-%{version}<br>&gt; %doc %{_docdir}/%{name}-%{version}/some_file<br>&gt;<br>&gt; or<br>&gt;<br>&gt; %doc %{_docdir}/%{name}-%{version}<br>&gt;<br>&gt; in their spec files.<br>&gt;<br>&gt; The ones which don&#39;t leave behind empty directories specify only the documentation files, not the name-version directories as part of the file list.<br>&gt;<br>&gt; In my test all 400+ directories under /usr/share/doc are empty, no files in them. Obviously we don&#39;t need these directories either. It is very likely people who use --excludedocs will complain about these empty directories as well.<br>&gt;<br>&gt;<br>&gt;<br>&gt; The Packaging Guide doesn&#39;t say anything about these name-version directories, whether they should be specified in the spec file or only the indivisual files specified. I&#39;d like to hear your opinion on this packaging situation before I go ahead and file hundreds of bugs into Bugzilla.<br>&gt;<br>&gt;<br><br></div>Any remaining versioned doc dirs are bugs, as far as I am concerned.<br><br></div>See this change from Fedora 20: <a href="http://fedoraproject.org/wiki/Changes/UnversionedDocdirs">http://fedoraproject.org/wiki/Changes/UnversionedDocdirs</a><br><br></div></div>