- Use gcc7 in SLE_12

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/dirac?expand=0&rev=37
This commit is contained in:
Olaf Hering 2019-03-08 17:32:01 +00:00 committed by Git OBS Bridge
parent e4dc32892a
commit 291fd8a4dc
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 8 17:31:33 UTC 2019 - olaf@aepfle.de
- Use gcc7 in SLE_12
-------------------------------------------------------------------
Tue Jul 4 10:27:05 UTC 2017 - tchvatal@suse.com

View File

@ -27,8 +27,12 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.
Source1: baselibs.conf
Patch0: 0001-Fix-uninitialised-memory-read-that-causes-the-encode.patch
Patch1: %{name}-%{version}-gcc45.patch
BuildRequires: fdupes
%if 0%{?suse_version} > 1315
BuildRequires: gcc-c++
%else
BuildRequires: gcc7-c++
%endif
BuildRequires: fdupes
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cppunit)
@ -105,6 +109,12 @@ prediction structures, which must otherwise be set by hand.
sed -i 's/-Werror//' configure.ac
%build
test -x "$(type -p gcc)" && export CC=$_
test -x "$(type -p g++)" && export CXX=$_
test -x "$(type -p gcc-7)" && export CC=$_
test -x "$(type -p g++-7)" && export CXX=$_
test -x "$(type -p gcc-8)" && export CC=$_
test -x "$(type -p g++-8)" && export CXX=$_
ACLOCAL="aclocal -I m4" autoreconf -fvi
%configure \
--disable-silent-rules \