opus/opus.spec
Ismail Dönmez 0459bda34d Accepting request 148337 from home:Zaitor:branches:multimedia:libs:opus
Fix a minor security issue. This fix is in version 1.0.2, however since we are in freeze, I cherrypicked this fix from upstream git.

From commit https://git.xiph.org/?p=opus.git;a=commit;h=9345aaa5ca1c2fb7d62981b2a538e0ce20612c38

Fixes an out-of-bounds read issue with the padding handling code

This was reported by Juri Aedla and is limited to reading memory up
to about 60 kB beyond the compressed buffer. This can only be triggered
by a compressed packet more than about 16 MB long, so it's not a problem
for RTP. In theory, it *could* crash an Ogg decoder if the memory just after
the incoming packet is out-of-range.

OBS-URL: https://build.opensuse.org/request/show/148337
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/opus?expand=0&rev=5
2013-01-13 20:43:28 +00:00

113 lines
3.6 KiB
RPMSpec

#
# spec file for package opus
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: opus
Version: 1.0.1
Release: 0
%define soname 0
Summary: Opus Audio Codec Library
License: BSD-3-Clause
Group: System/Libraries
Source: http://downloads.xiph.org/releases/opus/opus-%{version}.tar.gz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM opus-fix-out-of-bounds-read-issue-with-the-padding-handling.patch zaitor@opensuse.org -- Fixes an out-of-bounds read issue with the padding handling code
Patch0: opus-fix-out-of-bounds-read-issue-with-the-padding-handling.patch
Url: http://opus-codec.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtool
BuildRequires: pkgconfig
%description
The Opus codec is designed for interactive speech and audio transmission over
the Internet. It is designed by the IETF Codec Working Group and incorporates
technology from Skype's SILK codec and Xiph.Org's CELT codec.
%package -n libopus%{soname}
Summary: Opus Audio Codec Library
Group: System/Libraries
%description -n libopus%{soname}
The Opus codec is designed for interactive speech and audio transmission over
the Internet. It is designed by the IETF Codec Working Group and incorporates
technology from Skype's SILK codec and Xiph.Org's CELT codec.
%package -n libopus-devel
Summary: Opus Audio Codec Library Development Environment
Group: Development/Libraries/C and C++
Requires: libopus%{soname} = %{version}
%description -n libopus-devel
The Opus codec is designed for interactive speech and audio transmission over
the Internet. It is designed by the IETF Codec Working Group and incorporates
technology from Skype's SILK codec and Xiph.Org's CELT codec.
%package -n libopus-devel-static
Summary: Opus Audio Codec Library Static Library
Group: Development/Libraries/C and C++
Requires: libopus-devel = %{version}
%description -n libopus-devel-static
The Opus codec is designed for interactive speech and audio transmission over
the Internet. It is designed by the IETF Codec Working Group and incorporates
technology from Skype's SILK codec and Xiph.Org's CELT codec.
%prep
%setup -q
%patch0 -p1
%build
%configure \
--disable-silent-rules \
--disable-doc \
--enable-custom-modes
%__make %{?_smp_mflags}
%install
%makeinstall
%__rm -f "%{buildroot}%{_libdir}"/*.la
%post -n libopus%{soname} -p /sbin/ldconfig
%postun -n libopus%{soname} -p /sbin/ldconfig
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -n libopus%{soname}
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_libdir}/libopus.so.%{soname}
%{_libdir}/libopus.so.%{soname}.*
%files -n libopus-devel
%defattr(-,root,root)
%{_libdir}/libopus.so
%{_includedir}/opus
%{_libdir}/pkgconfig/opus.pc
%{_datadir}/aclocal/opus.m4
%files -n libopus-devel-static
%defattr(-,root,root)
%{_libdir}/libopus.a
%changelog