From 7b40b6a717b247d6af8edbdc3babcbfc08da3bc7a3471937f89681135dc01254 Mon Sep 17 00:00:00 2001 From: Wolfgang Bauer Date: Fri, 12 Apr 2019 11:34:34 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kmplot?expand=0&rev=88 --- kmplot.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/kmplot.spec b/kmplot.spec index 9d8e5ef..4999018 100644 --- a/kmplot.spec +++ b/kmplot.spec @@ -43,21 +43,26 @@ BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Widgets) Obsoletes: %{name}5 < %{version} Provides: %{name}5 = %{version} -%if %{with lang} Recommends: %{name}-lang +%if 0%{?suse_version} < 1500 +# the default gcc 4.8 is too old +BuildRequires: gcc7-c++ %endif %description Mathematical function plotter by KDE. -%if %{with lang} %lang_package -%endif %prep %setup -q %build +%if 0%{?suse_version} < 1500 +# the default gcc 4.8 is too old +export CC=gcc-7 +export CXX=g++-7 +%endif %ifarch ppc ppc64 export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %endif