From fe69b5a977cab72ed986dcc4ff74f9da8617b5ee Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Aug 21 2020 20:01:14 +0000 Subject: Add a patch to exclude the build directory in the Doxyfile --- diff --git a/AusweisApp2-1.20.1-doxygen_exclude_build_dir.patch b/AusweisApp2-1.20.1-doxygen_exclude_build_dir.patch new file mode 100644 index 0000000..10e0a59 --- /dev/null +++ b/AusweisApp2-1.20.1-doxygen_exclude_build_dir.patch @@ -0,0 +1,42 @@ +From 7da59790e72ed2073a58f612772aa3fd18022f87 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= +Date: Fri, 21 Aug 2020 12:42:43 +0200 +Subject: [PATCH] Doxyfile: Exclude binary, CMake, libs, and test directories. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +These directories do not contain any useful source files +for the documentation of the internal API of AusweisApp2, +and thus should not be included in its API documentation +generated by Doxygen. + +Additionally this comes in handy for distributing the API +documentation architecture independent, when the name of +the binary directory contains the name of the system's +architecture the build is targeted to. + +Also explicitly set the 'FULL_PATH_NAMES' parameter to 'YES', +as this is needed for properly stripping and/or excluding +the paths during generation of the documentation files. + +Signed-off-by: Björn Esser +--- + Doxyfile.in | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Doxyfile.in b/Doxyfile.in +index 7c4633f..2242bff 100644 +--- a/Doxyfile.in ++++ b/Doxyfile.in +@@ -11,7 +11,10 @@ OPTIMIZE_OUTPUT_C = YES + QT_AUTOBRIEF = YES + BUILTIN_STL_SUPPORT = YES + GENERATE_TREEVIEW = YES ++FULL_PATH_NAMES = YES + STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@ ++EXCLUDE_PATTERNS = @PROJECT_BINARY_DIR@/* \ ++ */CMake* */libs/* */test/* + + SEARCHENGINE = YES + COLS_IN_ALPHA_INDEX = 10 diff --git a/AusweisApp2.spec b/AusweisApp2.spec index 6f049b1..16dbd05 100644 --- a/AusweisApp2.spec +++ b/AusweisApp2.spec @@ -24,7 +24,7 @@ fipshmac -d "$fipsdir" "$bindir/%{name}" \ Name: AusweisApp2 Version: 1.20.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{pkg_sum} # Init forge packaging helpers. @@ -38,6 +38,7 @@ Source0000: %{forgesource} # Upstreamed. Patch00001: %{forgeurl}/pull/27.patch#/%{name}-1.20.1-add_english_license_text.patch +Patch00002: %{forgeurl}/pull/28.patch#/%{name}-1.20.1-doxygen_exclude_build_dir.patch BuildRequires: cmake BuildRequires: desktop-file-utils @@ -249,6 +250,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %changelog +* Fri Aug 21 2020 Björn Esser - 1.20.1-2 +- Add a patch to exclude the build directory in the Doxyfile + * Wed Aug 19 2020 Björn Esser - 1.20.1-1 - Initial import (#1851205)