Sync from SUSE:SLFO:Main dirac revision fef574851e7ecd4d256deb25fb860e79

This commit is contained in:
Adrian Schröter 2024-10-03 17:08:15 +02:00
parent adb553d113
commit 9459f33844
2 changed files with 24 additions and 4 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Feb 26 07:54:18 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %autosetup macro. Allows to eliminate the usage of deprecated
PatchN.
-------------------------------------------------------------------
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 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 Source1: baselibs.conf
Patch0: 0001-Fix-uninitialised-memory-read-that-causes-the-encode.patch Patch0: 0001-Fix-uninitialised-memory-read-that-causes-the-encode.patch
Patch1: %{name}-%{version}-gcc45.patch Patch1: %{name}-%{version}-gcc45.patch
BuildRequires: fdupes %if 0%{?suse_version} > 1315
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%else
BuildRequires: gcc7-c++
%endif
BuildRequires: fdupes
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(cppunit) BuildRequires: pkgconfig(cppunit)
@ -98,13 +102,18 @@ set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand. prediction structures, which must otherwise be set by hand.
%prep %prep
%setup -q %autosetup -p1
%patch0 -p1
%patch1 -p1
# Code is not mature enough for -Werror (unused results) # Code is not mature enough for -Werror (unused results)
sed -i 's/-Werror//' configure.ac sed -i 's/-Werror//' configure.ac
%build %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 ACLOCAL="aclocal -I m4" autoreconf -fvi
%configure \ %configure \
--disable-silent-rules \ --disable-silent-rules \