diff --git a/doxygen-1.8.16-compat.patch b/doxygen-1.8.16-compat.patch new file mode 100644 index 0000000..ffab790 --- /dev/null +++ b/doxygen-1.8.16-compat.patch @@ -0,0 +1,48 @@ +From 4a72a9b07e805b4ba27560e8e921bcee0002ef4c Mon Sep 17 00:00:00 2001 +From: albert-github +Date: Mon, 9 Sep 2019 13:28:28 +0200 +Subject: [PATCH] issue #7248: Including external tag files with TOC produces a + broken index.qhp + +Ignore automatically generated anchor names when importing a tag file. +--- + src/tagreader.cpp | 19 ++++++++++++++++++- + 1 file changed, 18 insertions(+), 1 deletion(-) + +diff --git a/src/tagreader.cpp b/src/tagreader.cpp +index 56dbe7df9..d79d9b5c5 100644 +--- a/src/tagreader.cpp ++++ b/src/tagreader.cpp +@@ -494,6 +494,23 @@ class TagFileParser : public QXmlDefaultHandler + + void endDocAnchor() + { ++ // Check whether or not the tag is automatically generate, in that case ignore the tag. ++ switch(m_state) ++ { ++ case InClass: ++ case InFile: ++ case InNamespace: ++ case InGroup: ++ case InPage: ++ case InMember: ++ case InPackage: ++ case InDir: ++ if (QString(m_curString).startsWith("autotoc_md")) return; ++ break; ++ default: ++ warn("Unexpected tag 'docanchor' found"); ++ return; ++ } + switch(m_state) + { + case InClass: m_curClass->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break; +@@ -504,7 +521,7 @@ class TagFileParser : public QXmlDefaultHandler + case InMember: m_curMember->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break; + case InPackage: m_curPackage->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break; + case InDir: m_curDir->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break; +- default: warn("Unexpected tag 'docanchor' found"); break; ++ default: warn("Unexpected tag 'docanchor' found"); break; // Not really necessary anymore + } + } + diff --git a/doxygen.spec b/doxygen.spec index d0aa23f..2aefce5 100644 --- a/doxygen.spec +++ b/doxygen.spec @@ -7,7 +7,7 @@ %define pck_docdir %{_datadir}/doc/doxygen-%{version} Name: doxygen -Version: 1.8.15 +Version: 1.8.16 Release: 1mamba Summary: A documentation system for C, C++, Java, IDL, Objective-C, PHP, C# and D Group: Applications/Development @@ -22,15 +22,20 @@ Patch2: doxygen-1.6.2-timestamp.patch Patch3: doxygen-1.7.2-fix_cftchapfont.patch Patch4: doxygen-1.8.10-flex-2.6.patch Patch5: doxygen-1.8.14-upstream-bug-789168-segfault.patch +Patch6: doxygen-1.8.16-compat.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libqt5-devel +BuildRequires: libsqlite-devel +BuildRequires: libstdc++6-devel +BuildRequires: libxapian-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END %if "%{stage1}" != "1" BuildRequires: graphviz %endif -BuildRequires: libgcc -BuildRequires: libstdc++6-devel -## AUTOBUILDREQ-END BuildRequires: flex BuildRequires: bison BuildRequires: ghostscript @@ -74,32 +79,25 @@ This package contains the documentation in HTML format and PDF format. %prep %setup -q #%patch4 -p1 -%patch5 -R -p1 +#%patch5 -R -p1 +%patch6 -p1 %build -%if %{with_qt_wiz} -unset QTDIR || : ; . /etc/profile.d/libqt4.sh -export QMAKE=%{_qt4_qmake} -%endif -%cmake -d build \ - -Dbuild_search=ON \ +# FIXME: % cmake macro fails +mkdir build +cd build +cmake -d build \ + -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ + -DDOC_INSTALL_DIR:PATH=share/doc/doxygen \ %if %{with_qt_wiz} -Dbuild_wizard=ON \ %endif -Dbuild_doc=ON \ -Duse_sqlite3=ON \ - -Duse_libclang=OFF + -Dbuild_search=ON \ + .. -## note: not a standard configure script -#./configure \ -# --prefix %{_prefix} \ -# --docdir %{pck_docdir} \ -# --shared \ -# --release \ -# --install %{_bindir}/install \ -#%if %{with_qt_wiz} -# --with-doxywizard \ -#% endif +# -Duse_libclang=ON \ %make make docs @@ -151,11 +149,14 @@ find examples -type f | xargs chmod -x %files doc %defattr(-,root,root) -%dir %{_datadir}/doc/packages/doxygen -%{_datadir}/doc/packages/doxygen/* +%dir %{_datadir}/doc/doxygen +%{_datadir}/doc/doxygen/* %doc LANGUAGE.HOWTO examples %changelog +* Tue Oct 29 2019 Automatic Build System 1.8.16-1mamba +- automatic version update by autodist + * Sun Mar 31 2019 Silvan Calarco 1.8.15-1mamba - update to 1.8.15