From d03c1a3f54c4f523c08b2734fb4e421f20815a68eb56e5414941a946aad37668 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 31 Jan 2018 10:46:40 +0000 Subject: [PATCH] - Adjust usage of gccN for Leap42 and SLE12 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpd?expand=0&rev=5 --- mpd.changes | 5 +++++ mpd.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/mpd.changes b/mpd.changes index 456f546..79ceb72 100644 --- a/mpd.changes +++ b/mpd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 31 10:42:14 UTC 2018 - olaf@aepfle.de + +- Adjust usage of gccN for Leap42 and SLE12 + ------------------------------------------------------------------- Tue Jan 2 09:23:24 UTC 2018 - aloisio@gmx.com diff --git a/mpd.spec b/mpd.spec index 8f57f9e..3f59cee 100644 --- a/mpd.spec +++ b/mpd.spec @@ -44,9 +44,15 @@ BuildRequires: libboost_headers-devel BuildRequires: gcc BuildRequires: gcc-c++ %else -# Leap 42.2+ / SLE12SP2Backports +%if 0%{?sle_version} == 120200 +# Leap 42.2 BuildRequires: gcc6 BuildRequires: gcc6-c++ +%else +# Leap 42.3+ / SLE12SP3Backports +BuildRequires: gcc7 +BuildRequires: gcc7-c++ +%endif %endif BuildRequires: libcue-devel BuildRequires: libmikmod-devel