From 3e3c05b5f01a7a9c20984da45f66fff145f0abe96180370985b83ecd8f72390b Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 21 Mar 2017 10:18:08 +0000 Subject: [PATCH 1/2] Accepting request 481690 from home:favogt:branches:devel:tools - Update to 1.77 * Changelog too long to add here, so please see: https://sourceforge.net/p/cppcheck/news/ - Always build Qt5 GUI OBS-URL: https://build.opensuse.org/request/show/481690 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=48 --- cppcheck-1.70.tar.bz2 | 3 --- cppcheck-1.77.tar.bz2 | 3 +++ cppcheck.changes | 8 ++++++++ cppcheck.spec | 12 ++---------- 4 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 cppcheck-1.70.tar.bz2 create mode 100644 cppcheck-1.77.tar.bz2 diff --git a/cppcheck-1.70.tar.bz2 b/cppcheck-1.70.tar.bz2 deleted file mode 100644 index 7fa0045..0000000 --- a/cppcheck-1.70.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6aaafd41b4c2050f3fb96a4aa159507007403a163d05361bd9544e5baf18f39 -size 1111291 diff --git a/cppcheck-1.77.tar.bz2 b/cppcheck-1.77.tar.bz2 new file mode 100644 index 0000000..c0890b9 --- /dev/null +++ b/cppcheck-1.77.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1980ffe5c9c24bb6dea24514d42be3aa49d6ba7cc26c448b3543611fe8ba2619 +size 1188453 diff --git a/cppcheck.changes b/cppcheck.changes index b33115f..5812d74 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Mar 21 08:09:22 UTC 2017 - fvogt@suse.com + +- Update to 1.77 + * Changelog too long to add here, so please see: + https://sourceforge.net/p/cppcheck/news/ +- Always build Qt5 GUI + ------------------------------------------------------------------- Sat Feb 20 18:58:43 UTC 2016 - crrodriguez@opensuse.org diff --git a/cppcheck.spec b/cppcheck.spec index 5b3ace4..2538377 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -1,7 +1,7 @@ # # spec file for package cppcheck # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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: 1.70 +Version: 1.77 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0+ @@ -58,14 +58,10 @@ errors: %package gui Summary: A tool for static C/C++ code analysis Group: Development/Languages/C and C++ -%if 0%{?suse_version} < 1320 -BuildRequires: libqt4-devel >= 4.8.0 -%else BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Widgets) -%endif Requires: cppcheck %description gui @@ -84,11 +80,7 @@ make %{?_smp_mflags} \ HAVE_RULES=yes pushd gui -%if 0%{?suse_version} < 1320 -qmake \ -%else qmake-qt5 \ -%endif QMAKE_CXXFLAGS="-DNDEBUG %{optflags}" \ HAVE_RULES=yes make %{?_smp_mflags} From 6a5a5d2aa5109f9fa5c40be7e6d2a65c7cbcb40dc34f944db6721a0f705c3b7b Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 21 Mar 2017 10:29:05 +0000 Subject: [PATCH 2/2] - Use qmake macros - Run spec-cleaner - Update to version 1.77: * Added flag --cppcheck-build-dir to allow incremental analysis and inter-file checking * Improved --project support for Visual Studio solutions * Detect pointer overflow * Detect usage of variable after std::move or std::forward * Warn about number and char literals in boolean expressions * Improved checking for variables modified but not used again * Libraries: Added support to specify * Improved ValueFlow, especially related to function return values and casts * Improved simplification of Null values to allow more accurate checking * Several improvements to windows.cfg, posix.cfg, gnu.cfg and std.cfg * Reimplemented check for using iterators of mismatching containers... read more OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=49 --- cppcheck.changes | 21 ++++++++++++++++++--- cppcheck.spec | 6 +++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/cppcheck.changes b/cppcheck.changes index 5812d74..27bde5d 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,9 +1,24 @@ +------------------------------------------------------------------- +Tue Mar 21 10:28:21 UTC 2017 - mpluskal@suse.com + +- Use qmake macros +- Run spec-cleaner + ------------------------------------------------------------------- Tue Mar 21 08:09:22 UTC 2017 - fvogt@suse.com -- Update to 1.77 - * Changelog too long to add here, so please see: - https://sourceforge.net/p/cppcheck/news/ +- Update to version 1.77: + * Added flag --cppcheck-build-dir to allow incremental analysis and inter-file checking + * Improved --project support for Visual Studio solutions + * Detect pointer overflow + * Detect usage of variable after std::move or std::forward + * Warn about number and char literals in boolean expressions + * Improved checking for variables modified but not used again + * Libraries: Added support to specify + * Improved ValueFlow, especially related to function return values and casts + * Improved simplification of Null values to allow more accurate checking + * Several improvements to windows.cfg, posix.cfg, gnu.cfg and std.cfg + * Reimplemented check for using iterators of mismatching containers... read more - Always build Qt5 GUI ------------------------------------------------------------------- diff --git a/cppcheck.spec b/cppcheck.spec index 2538377..e9c12e3 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -24,7 +24,6 @@ License: GPL-3.0+ Group: Development/Languages/C and C++ Url: http://cppcheck.sourceforge.net/ Source: http://downloads.sourceforge.net/cppcheck/cppcheck-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: docbook-xsl-stylesheets BuildRequires: gcc-c++ BuildRequires: pcre-devel @@ -58,6 +57,7 @@ errors: %package gui Summary: A tool for static C/C++ code analysis Group: Development/Languages/C and C++ +BuildRequires: pkgconfig BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5PrintSupport) @@ -80,10 +80,10 @@ make %{?_smp_mflags} \ HAVE_RULES=yes pushd gui -qmake-qt5 \ +%qmake5 \ QMAKE_CXXFLAGS="-DNDEBUG %{optflags}" \ HAVE_RULES=yes -make %{?_smp_mflags} +%make_jobs popd make man \