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