On Sun, 28 Jul 2013 21:36:54 +0200, Ville Skyttä wrote:
On the other hand with doc-only subpackages
I personally think that it would often make sense to install into the
main package's docdir instead of creating a separate dir, e.g. for a
package named foo, IMO it's better to have all docs in
/usr/share/doc/foo than some in that plus some in /usr/share/doc/foo-doc.
This does not work, gdb.spec:
%files doc
%doc %{gdb_build}/gdb/doc/{gdb,annotate}.{html,pdf}
->
/usr/share/doc/gdb-doc/annotate.html
/usr/share/doc/gdb-doc/annotate.pdf
/usr/share/doc/gdb-doc/gdb.html
/usr/share/doc/gdb-doc/gdb.pdf
If it should be /usr/share/doc/ then rpm macros need to be changed first
accordingly to s/-doc$// on the directory name.
Therefore currently keeping the path /usr/share/doc/gdb-doc/ for gdb-doc.rpm.
Jan