forked from pool/cppcheck
Accepting request 360647 from home:elvigia:branches:devel:tools
- Build the GUI against QT5 in newish products. OBS-URL: https://build.opensuse.org/request/show/360647 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=46
This commit is contained in:
parent
e57f872d4f
commit
92c5b39b10
@ -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 <adam@mizerski.pl>
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user