- Remove the following patch, which is not needed anymore in 2.6:
cppcheck-2.5-fix_failed_to_load_translation_for_English.patch
- Remove -DNO_UNIX_SIGNAL_HANDLING to CXXFLAGS, due to new upstream
fix: https://github.com/danmar/cppcheck/commit/8869ee3
- Restore execute permission of python files.
Fixes rpmlint errors (8x): E: non-executable-script
- Remove the following patches, which are not needed anymore in 2.5:
cppcheck-2.3-Fix-issue-10024-FP-nullPointerRedundantCheck-when-us.patch
cppcheck-2.3-gcc11.patch
- Add patch: cppcheck-2.5-disable-test-testexprengine-array7.patch
- Add -DNO_UNIX_SIGNAL_HANDLING to CXXFLAGS
oss-fuzz is never built when non-clang compilers are in use, but when
using clang and a system-wide tinyxml2 installation, cmake prints a
confusing error message. Disable it explicitly.
- Remove the following patches, which are not needed anymore in 2.3:
cppcheck-2.2-tinyxml.patch
cppcheck-2.2-exprengine.patch
cppcheck-2.2-online-help.patch
cppcheck-2.2-online-help_q_readonly.patch
- Update patch:
cppcheck-2.3-gcc11.patch
- Add -DUSE_BUNDLED_TINYXML2=OFF to cmake
Make sure, that the timestamp of online-help.qch, which is stored
inside online-help.qhc, is in UTC. This is not relevant when the rpm
is built as usual on servers using UTC, but on systems with a different
local timezone.
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:
9693940dad (commitcomment-43482215)
- Use %cmake_build and %cmake_install macros to fix FTBFS (#1863368)
- Rearrange BuildRequires:
Put qt5-qtbase-devel and qt5-linguist inside if %{gui}
Move cmake, python3-devel and z3-devel out of if %{gui}
Remark: Z3 is not available under epel 7 or epel 8
However, add general support for epel 8 to the spec file
in addition to epel 7 using "%if 0%{?rhel} >= 7"
Typo: -DMATCHCOMPILER -> -DUSE_MATCHCOMPILER
Fixes the following CMake Warning:
Manually-specified variables were not used by the project:
MATCHCOMPILER
- Drop cppcheck-1.89-manual.patch
The file manual.docbook has been removed upstream
- Use pandoc to create manual.html from manual.md
- Add reference-cfg-format.html to doc
- Use %%license macro instead of %%doc for the COPYING file
- Fix typo in cppcheck-1.89-translations.patch:
CppCheck/lang/ -> Cppcheck/lang/
- drop cppcheck-1.87-cfgdir.patch
FILESDIR is used instead of CFGDIR since 1.89
- Update tinyxml patch to 1.90