On 2013-07-29 16:54, Jan Kratochvil wrote:
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
Right, special %doc uses the subpackage name.
If it should be /usr/share/doc/ then rpm macros need to be changed
first
accordingly to s/-doc$// on the directory name.
I don't think that's desirable. (I'm assuming you meant "If it should be
/usr/share/doc/gdb ...".)
Therefore currently keeping the path /usr/share/doc/gdb-doc/ for
gdb-doc.rpm.
If you wanted to move to /usr/share/doc/gdb, you could take advantage of
the %{_pkgdocdir} property that it points to the main package, for
example like in the attached patch.