Accepting request 625941 from home:wolfi323:branches:KDE:Applications

- Build with gcc7 on Leap 42.3
(it fails to compile with gcc 4.8)

OBS-URL: https://build.opensuse.org/request/show/625941
OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kbackup?expand=0&rev=13
This commit is contained in:
Luca Beltrame 2018-07-28 15:56:35 +00:00 committed by Git OBS Bridge
parent 5479969a8b
commit 5e0bf70140
2 changed files with 20 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Thu Jul 26 13:00:34 UTC 2018 - lbeltrame@kde.org
* Fix includes
* Use nullptr
* fix releaseinfo
- Build with gcc7 on Leap 42.3
-------------------------------------------------------------------
Fri Jul 13 04:49:51 UTC 2018 - lbeltrame@kde.org

View File

@ -39,6 +39,15 @@ BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Widgets)
# 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
%description
kbackup is a backup program based on KDE Frameworks 5. It allows backing
@ -52,6 +61,16 @@ Although GUI based, it also offers an automated, GUI-less mode.
%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
%cmake_kf5 -d build
%make_jobs