Takashi Iwai
7f279db047
- Backport of an upstream fix for celt decoder: * opus-Fix-celt-decoder-assertion-when-using-OPUS_CUSTOM.patch: When using OPUS_CUSTOM, `CELTDecoder->end` can be larger than 21. Assert against 25 instead in OPUS_CUSTOM builds. This patch is intended to fix a crash in Jamulus, originally reported here: https://sourceforge.net/p/llcon/discussion/software/thread/7fdbc8cbb0/ OBS-URL: https://build.opensuse.org/request/show/794365 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/opus?expand=0&rev=43
99 lines
3.3 KiB
RPMSpec
99 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package opus
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 0
|
|
Name: opus
|
|
Version: 1.3.1
|
|
Release: 0
|
|
Summary: Audio Codec Library
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://opus-codec.org/
|
|
Source: https://archive.mozilla.org/pub/opus/%{name}-%{version}.tar.gz
|
|
Source99: baselibs.conf
|
|
# PATCH-FIX-UPSTREAM opus-Silk-CNG-adapts-faster.patch -- Silk CNG adapts faster to received packets with lower gains
|
|
Patch0: opus-Silk-CNG-adapts-faster.patch
|
|
# PATCH-FIX-UPSTREAM opus-Silk-fix-arm-optimization.patch -- Avoid processing LPC coeffs beyond the given order in NEON optimizations
|
|
Patch1: opus-Silk-fix-arm-optimization.patch
|
|
# PATCH-FIX-UPSTREAM opus-Fix-celt-decoder-assertion-when-using-OPUS_CUSTOM.patch -- Fix celt decoder assertion when using OPUS_CUSTOM
|
|
Patch2: opus-Fix-celt-decoder-assertion-when-using-OPUS_CUSTOM.patch
|
|
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%{sover}
|
|
Summary: Opus Audio Codec Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libopus%{sover}
|
|
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%{sover} = %{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.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static \
|
|
--disable-silent-rules \
|
|
--disable-doc \
|
|
--enable-custom-modes
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make %{?_smp_mflags} check
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n libopus%{sover} -p /sbin/ldconfig
|
|
%postun -n libopus%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libopus%{sover}
|
|
%license COPYING
|
|
%doc AUTHORS README
|
|
%{_libdir}/libopus.so.%{sover}*
|
|
|
|
%files -n libopus-devel
|
|
%{_libdir}/libopus.so
|
|
%{_includedir}/opus
|
|
%{_libdir}/pkgconfig/opus.pc
|
|
%dir %{_datadir}/aclocal
|
|
%{_datadir}/aclocal/opus.m4
|
|
|
|
%changelog
|