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:
parent
411685d022
commit
ed4e146527
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user