diff --git a/movit.spec b/movit.spec index c7aa1fd..0d6201f 100644 --- a/movit.spec +++ b/movit.spec @@ -26,12 +26,11 @@ Group: Development/Libraries/C and C++ Url: https://movit.sesse.net Source0: https://movit.sesse.net/movit-%{version}.tar.gz Source1: COPYING -%if 0%{?suse_version} > 1320 -BuildRequires: gcc-c++ -%endif %if 0%{?suse_version} == 1315 -# Leap 42.2+ / SLE12SP2Backports +# Leap 42.2+ / SLE12SP2Backports, C++14 needed BuildRequires: gcc6-c++ +%else +BuildRequires: gcc-c++ %endif BuildRequires: make BuildRequires: pkg-config @@ -92,8 +91,6 @@ cp -av %{SOURCE1} . %build 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 %configure --disable-static --datarootdir=%{_datadir}/libmovit%{_sonum} make %{?_smp_mflags} TESTS=