diff --git a/krfb.changes b/krfb.changes index 4389a47..6c5ceda 100644 --- a/krfb.changes +++ b/krfb.changes @@ -7,6 +7,7 @@ Thu Jul 26 13:00:54 UTC 2018 - lbeltrame@kde.org * https://www.kde.org/announcements/announce-applications-18.07.80.php - Changes since 18.04.3: * Fix IPv6 connectivity +- Build with gcc7 on Leap 42.3 ------------------------------------------------------------------- Fri Jul 13 04:50:09 UTC 2018 - lbeltrame@kde.org diff --git a/krfb.spec b/krfb.spec index 7f937fd..d721869 100644 --- a/krfb.spec +++ b/krfb.spec @@ -54,6 +54,15 @@ BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(xdamage) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(xtst) +# Needed for 42.3 +%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 +BuildRequires: gcc6-c++ +%else +BuildRequires: gcc7-c++ +%endif +%endif %if %{with lang} Recommends: %{name}-lang %endif @@ -70,6 +79,16 @@ VNC-compatible server to share KDE desktops. %setup -q %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 %ifarch ppc ppc64 export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %endif