Hello community, here is the log from the commit of package audacity for openSUSE:Factory checked in at 2017-07-06 00:04:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/audacity (Old) and /work/SRC/openSUSE:Factory/.audacity.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "audacity" Thu Jul 6 00:04:16 2017 rev:73 rq:508223 version:2.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/audacity/audacity.changes 2017-03-31 15:07:25.117934030 +0200 +++ /work/SRC/openSUSE:Factory/.audacity.new/audacity.changes 2017-07-06 00:04:22.430063424 +0200 @@ -1,0 +2,5 @@ +Tue Jun 6 17:34:10 UTC 2017 - [email protected] + +- Adjust usage of gccN-c++ for Leap42 and SLE12 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ audacity.spec ++++++ --- /var/tmp/diff_new_pack.Kkhm3P/_old 2017-07-06 00:04:24.509770436 +0200 +++ /var/tmp/diff_new_pack.Kkhm3P/_new 2017-07-06 00:04:24.513769873 +0200 @@ -44,12 +44,17 @@ BuildRequires: desktop-file-utils #Audacity only builds with gcc >= 4.9 # WARNING: Anything built against wxWidgets with gcc >= 5 needs widgets built with relax-abi.diff -%if 0%{?suse_version} < 1330 -BuildRequires: cpp5 -BuildRequires: gcc5 +%if 0%{?suse_version} > 1320 +BuildRequires: gcc-c++ +%else +# Bomi requires C++14 support. +%if 0%{?sle_version} == 120100 +# Leap 42.1 BuildRequires: gcc5-c++ %else -BuildRequires: gcc-c++ +# Leap 42.2+ / SLE12SP2Backports +BuildRequires: gcc6-c++ +%endif %endif BuildRequires: hicolor-icon-theme BuildRequires: wxWidgets-3_0-nostl-devel @@ -119,11 +124,12 @@ %endif %build -%if 0%{?suse_version} < 1330 -export CC=gcc-5 -export CPP=cpp-5 -export CXX=g++-5 -%endif +test -x "$(type -p gcc-5)" && export CC=gcc-5 +test -x "$(type -p g++-5)" && export CXX=g++-5 +test -x "$(type -p gcc-6)" && export CC=gcc-6 +test -x "$(type -p g++-6)" && export CXX=g++-6 +test -x "$(type -p gcc-7)" && export CC=gcc-7 +test -x "$(type -p g++-7)" && export CXX=g++-7 export CFLAGS="%{optflags} -fno-strict-aliasing" export CXXFLAGS="$CFLAGS -std=gnu++11" aclocal -I m4
