On 2013-08-06 01:41, Paul Howarth wrote:
What I've been doing is to define a local macro:
# Move to unversioned documentation directories from F-20
#
https://fedoraproject.org/wiki/Changes/UnversionedDocdirs
%global our_docdir
%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
and then use %{our_docdir} for the documentation path wherever needed.
That's one approach. Another one is to use %{_pkgdocdir} directly and
conditionally redefine it where it's not available, see
https://fedoraproject.org/wiki/Changes/UnversionedDocdirs#Detailed_Descri...
The benefit of doing it this way in my opinion is that sometime in the
future when the redefinition is no longer needed, it can be removed just
by removing one line without leaving unnecessary things like "%global
our_docdir %{_pkgdocdir}" behind.