diff --git a/cppcheck-2.10.tar.gz b/cppcheck-2.10.tar.gz new file mode 100644 index 0000000..2f92276 --- /dev/null +++ b/cppcheck-2.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:785dcbf711048dfe43ae920b6eff2eeebb4a096e88188a40e173ca4c030f57c3 +size 3442586 diff --git a/cppcheck-2.9.3.tar.gz b/cppcheck-2.9.3.tar.gz deleted file mode 100644 index 4acea20..0000000 --- a/cppcheck-2.9.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:46319ca73e33e4b2bd91981a76a0d4f184cd3f86b62dc18e8938eabacd3ad2e3 -size 3918291 diff --git a/cppcheck.changes b/cppcheck.changes index 4b53494..a9faf18 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Tue Jan 31 18:24:47 UTC 2023 - PragmaticLinux + +- install files from the addons/ and platforms/ directories - boo#1207806 +- correct shebang fix for htmlreport/cppcheck-htmlreport + +------------------------------------------------------------------- +Mon Jan 30 12:07:50 UTC 2023 - Dirk Müller + +- update to 2.10.0: + * Many improvements and fixes in checkers. + * New check: use memset/memcpy instead of loop + CLI: + * if the file provided via "--file-list" cannot be opened it + will now error out + * add command-line option "--disable=" to individually disable + checks + GUI: + * Detect when installed version is old. There is setting in + Edit/Preferences to turn this on. + * Fix path issue with backslashes + * Cleanup *.ctu-info files after analysis + Build: + * the deprecated Makefile option SRCDIR is no longer accepted + * added CMake option BUILD_CORE_DLL to build lib as + cppcheck-core.dll with Visual Studio + ------------------------------------------------------------------- Wed Dec 7 22:39:58 UTC 2022 - Dirk Müller diff --git a/cppcheck.spec b/cppcheck.spec index ab7fc34..eb5a4be 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -1,7 +1,7 @@ # # spec file for package cppcheck # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: cppcheck -Version: 2.9.3 +Version: 2.10 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0-or-later @@ -25,6 +25,7 @@ URL: https://github.com/danmar/cppcheck Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: docbook-xsl-stylesheets +BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libqt5-linguist-devel BuildRequires: pkgconfig @@ -91,7 +92,7 @@ cd .. DB2MAN=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl # use python3 as interpreter -sed -i "s|env python|python3|g" htmlreport/cppcheck-htmlreport +sed -i "s|env python3|python3|g" htmlreport/cppcheck-htmlreport %check export CXXFLAGS="%{optflags}" @@ -108,6 +109,16 @@ install -Dpm 0644 cppcheck.1 \ %{buildroot}%{_mandir}/man1/cppcheck.1 install -d %{buildroot}%{_datadir}/%{name}/cfg install -pm 0644 cfg/*.cfg %{buildroot}%{_datadir}/%{name}/cfg +install -d %{buildroot}%{_datadir}/%{name}/platforms +install -pm 0644 platforms/*.xml %{buildroot}%{_datadir}/%{name}/platforms +install -d %{buildroot}%{_datadir}/%{name}/addons +install -pm 0644 addons/*.py %{buildroot}%{_datadir}/%{name}/addons +# Give execute permission to python addons with a shebang to fix non-executable-script +find %{buildroot}%{_datadir}/%{name}/addons -type f -size +0 -exec awk 'NR == 1 && /^#!.*python/ { exit } { exit 1 }' {} \; -print0 | xargs -0 chmod +x +# Correct shebang to fix env-script-interpreter +find %{buildroot}%{_datadir}/%{name}/addons -type f -size +0 -exec awk 'NR == 1 && /^#!.*python/ { exit } { exit 1 }' {} \; -print0 | xargs -0 sed -i "s|env python3|python3|g" +# Remove duplicate files +%fdupes -s %{buildroot}%{_datadir}/%{name}/platforms %files %doc AUTHORS