QTDOCDIR, use %_qt4_docdir if available, fallback to pkg-config if not

(though I think we could probably assume _qt4_docdir is present these days)
This commit is contained in:
Rex Dieter 2010-10-08 07:29:37 -05:00
parent 411685d022
commit ed4e146527
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ make %{?_smp_mflags} -C %{_target_platform}
# build apidocs
%if 0%{?apidocs}
export QTDOCDIR=`pkg-config --variable=docdir Qt`
export QTDOCDIR="%{?_qt4_docdir}%{?!_qt4_docdir:%(pkg-config --variable=docdir Qt)}"
%if 0%{?apidocs_qch}
export PROJECT_NAME="%{name}"
export PROJECT_VERSION="%{version}%{?alphatag}"