From 295c9c21fd27c92ee4936ca4ecf97c611b5da38d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20St=C3=B6ggl?= Date: Thu, 22 Oct 2020 20:20:10 +0200 Subject: [PATCH] Fix missing Contents and Index in Qt help file Adjust the timestamp of online-help.qch to the value expected by online-help.qhc - The rpm is built on servers using UTC. Get this UTC timestamp and apply it to the file under the local TZ - Further details: https://github.com/danmar/cppcheck/commit/9693940dadfd54bb0bac2549e1b2d6804be9a1a8#commitcomment-43482215 --- cppcheck.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cppcheck.spec b/cppcheck.spec index 7a33dfd..5a8d1f9 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -2,7 +2,7 @@ Name: cppcheck Version: 2.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Tool for static C/C++ code analysis License: GPLv3+ URL: http://cppcheck.wiki.sourceforge.net/ @@ -122,7 +122,16 @@ cd %{_vpath_builddir}/bin %files htmlreport %{_bindir}/cppcheck-htmlreport +%post +# Adjust the timestamp of online-help.qch to the value expected by online-help.qhc +# The rpm is built on servers using UTC. Get this UTC timestamp and apply it to the file under the local TZ +# https://github.com/danmar/cppcheck/commit/9693940dadfd54bb0bac2549e1b2d6804be9a1a8#commitcomment-43482215 +touch -a -m -t $(TZ=UTC date -r /usr/share/Cppcheck/help/online-help.qch +%Y%m%d%H%M.%%S) /usr/share/Cppcheck/help/online-help.qch + %changelog +* Thu Oct 22 2020 Wolfgang Stöggl - 2.2-4 +- Fix missing Contents and Index in Qt online-help file + * Tue Oct 13 2020 Jeff Law - 2.2-3 - Fix missing #include for gcc-11