diff --git a/cppcheck.changes b/cppcheck.changes index c162bc8..b33115f 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Feb 20 18:58:43 UTC 2016 - crrodriguez@opensuse.org + +- Build the GUI against QT5 in newish products. + ------------------------------------------------------------------- Tue Sep 15 13:00:50 UTC 2015 - Adam Mizerski diff --git a/cppcheck.spec b/cppcheck.spec index b7d4926..5b3ace4 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -1,7 +1,7 @@ # # spec file for package cppcheck # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -58,7 +58,14 @@ 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 @@ -77,7 +84,11 @@ 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}