diff --git a/ktorrent.changes b/ktorrent.changes index 807bd49..6faaa9d 100644 --- a/ktorrent.changes +++ b/ktorrent.changes @@ -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 diff --git a/ktorrent.spec b/ktorrent.spec index bca297e..d0b32d8 100644 --- a/ktorrent.spec +++ b/ktorrent.spec @@ -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