Dominique Leuenberger 2018-01-26 12:58:57 +00:00 committed by Git OBS Bridge
parent 2790179112
commit 2eafc72a74
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 24 18:12:30 UTC 2018 - wbauer@tmo.at
- Build with gcc7 on Leap 42.3, gcc5 no longer works because of a
change to the default compiler flags in openSUSE:Leap:42.3:Update
(boo#1077345)
-------------------------------------------------------------------
Sat Sep 2 09:19:00 UTC 2017 - wbauer@tmo.at

View File

@ -75,8 +75,13 @@ BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(taglib)
%if 0%{?suse_version} < 1330
%if 0%{?sle_version} < 120300
BuildRequires: gcc5
BuildRequires: gcc5-c++
%else
BuildRequires: gcc7
BuildRequires: gcc7-c++
%endif
#!BuildIgnore: libgcc_s1
%endif
Recommends: %{name}-lang = %{version}
@ -98,8 +103,12 @@ for BitTorrent.
%build
%if 0%{?suse_version} < 1330
%if 0%{?sle_version} < 120300
%cmake_kf5 -d build -- -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5
%else
%cmake_kf5 -d build -- -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
%endif
%else
%cmake_kf5 -d build
%endif
%make_jobs