From 92569d3d592abb5cfedbb8566f602455edf8db2f22e80ba77421b8bd0670096e Mon Sep 17 00:00:00 2001 From: Wolfgang Bauer Date: Sat, 28 Jul 2018 15:11:50 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/akonadi-server?expand=0&rev=156 --- akonadi-server.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/akonadi-server.spec b/akonadi-server.spec index 546a09b..3adcac9 100644 --- a/akonadi-server.spec +++ b/akonadi-server.spec @@ -184,6 +184,16 @@ service. %setup -q -n %{rname}-%{version} %build + %if 0%{?suse_version} < 1330 + # It does not build with the default compiler (GCC 4.8) on Leap 42.x + %if 0%{?sle_version} < 120300 + export CC=gcc-6 + export CXX=g++-6 + %else + export CC=gcc-7 + export CXX=g++-7 + %endif + %endif %cmake_kf5 -d build -- -DINSTALL_QSQLITE_IN_QT_PREFIX=TRUE -DQT_PLUGINS_DIR=%{_kf5_plugindir} %make_jobs