Hello community, here is the log from the commit of package CharLS for openSUSE:Factory checked in at 2017-07-21 22:50:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/CharLS (Old) and /work/SRC/openSUSE:Factory/.CharLS.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "CharLS" Fri Jul 21 22:50:30 2017 rev:10 rq:511701 version:2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/CharLS/CharLS.changes 2017-07-11 08:28:18.602588899 +0200 +++ /work/SRC/openSUSE:Factory/.CharLS.new/CharLS.changes 2017-07-21 22:50:31.327224625 +0200 @@ -1,0 +2,5 @@ +Thu Jul 13 18:26:54 UTC 2017 - olaf@aepfle.de + +- Build with gcc6, fix build failure for Leap + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ CharLS.spec ++++++ --- /var/tmp/diff_new_pack.DtFVLu/_old 2017-07-21 22:50:32.039124203 +0200 +++ /var/tmp/diff_new_pack.DtFVLu/_new 2017-07-21 22:50:32.043123639 +0200 @@ -27,7 +27,13 @@ Url: https://github.com/team-charls/charls/ Source0: https://github.com/team-charls/charls/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake -BuildRequires: gcc-c++ >= 5.0 +%if 0%{?suse_version} > 1320 +BuildRequires: gcc-c++ +%else +# Leap 42.2+ / SLE12SP2Backports +BuildRequires: gcc6-c++ +#!Buildignore: libgcc_s1 +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -60,6 +66,12 @@ sed -i 's/\r$//' License.txt %build +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 %cmake \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=ON