* Fri Aug 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.5.1-3

- make building -apidocs-qch optional and disable it by default until fixed
This commit is contained in:
Kevin Kofler 2010-08-28 00:40:51 +02:00
parent 30a8071b34
commit df86e87ee6
1 changed files with 14 additions and 1 deletions

View File

@ -7,10 +7,12 @@
%define strigi_ver 0.7.2
# to build/include apidocs or not
%define apidocs 1
# to build/include QCH apidocs or not (currently broken)
#define apidocs_qch 1
Summary: KDE Libraries
Version: 4.5.1
Release: 2%{?dist}
Release: 3%{?dist}
Name: kdelibs
Epoch: 6
@ -274,9 +276,13 @@ make %{?_smp_mflags} -C %{_target_platform}
# build apidocs
%if 0%{?apidocs}
export QTDOCDIR=`pkg-config --variable=docdir Qt`
%if 0%{?apidocs_qch}
export PROJECT_NAME="%{name}"
export PROJECT_VERSION="%{version}%{?alphatag}"
doc/api/doxygen.sh --qhppages .
%else
doc/api/doxygen.sh .
%endif
%endif
@ -336,6 +342,7 @@ rm -vf %{buildroot}%{_kde4_docdir}/HTML/en/kdelibs4-apidocs/*.tmp \
%{buildroot}%{_kde4_docdir}/HTML/en/kdelibs4-apidocs/index.qhp \
%{buildroot}%{_kde4_docdir}/HTML/en/kdelibs4-apidocs/*/html/index.qhp
%if 0%{?apidocs_qch}
mkdir -p %{buildroot}%{_qt4_docdir}/qch
for i in %{buildroot}%{_kde4_docdir}/HTML/en/kdelibs4-apidocs/*/qch
do
@ -343,6 +350,7 @@ do
rmdir "$i"
done
%endif
%endif
%post
@ -486,13 +494,18 @@ rm -rf %{buildroot}
%defattr(-,root,root,-)
%{_kde4_docdir}/HTML/en/kdelibs4-apidocs/
%if 0%{?apidocs_qch}
%files apidocs-qch
%defattr(-,root,root,-)
%{_qt4_docdir}/qch/*.qch
%endif
%endif
%changelog
* Fri Aug 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.5.1-3
- make building -apidocs-qch optional and disable it by default until fixed
* Fri Aug 27 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.5.1-2
- -apidocs : exclude installdox