SHA256
1
0
forked from pool/kmplot

Accepting request 651556 from home:wolfi323:branches:home:luca_b:kapps1812beta

- Use gcc7 to build on Leap 42.3, the default 4.8 is too old

OBS-URL: https://build.opensuse.org/request/show/651556
OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kmplot?expand=0&rev=79
This commit is contained in:
Christophe Giboudeaux 2018-11-25 08:57:05 +00:00 committed by Git OBS Bridge
parent 77359e9209
commit 84c82cb194
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 22 17:40:46 UTC 2018 - wbauer@tmo.at
- Use gcc7 to build on Leap 42.3, the default 4.8 is too old
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 20 06:22:34 UTC 2018 - Luca Beltrame <lbeltrame@kde.org> Tue Nov 20 06:22:34 UTC 2018 - Luca Beltrame <lbeltrame@kde.org>

View File

@ -43,21 +43,26 @@ BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Widgets)
Obsoletes: %{name}5 < %{version} Obsoletes: %{name}5 < %{version}
Provides: %{name}5 = %{version} Provides: %{name}5 = %{version}
%if %{with lang}
Recommends: %{name}-lang Recommends: %{name}-lang
%if 0%{?suse_version} < 1500
# the default gcc 4.8 is too old
BuildRequires: gcc7-c++
%endif %endif
%description %description
Mathematical function plotter for KDE. Mathematical function plotter for KDE.
%if %{with lang}
%lang_package %lang_package
%endif
%prep %prep
%setup -q %setup -q
%build %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 %ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif %endif