opus/opus.spec
Takashi Iwai bcf8ef302b Accepting request 1080974 from home:iznogood:branches:multimedia:libs
- Update to version 1.4:
  * Improved tuning of the Opus in-band FEC (LBRR). See the
    https://gitlab.xiph.org/xiph/opus/-/issues/2360 for details
  * Added a OPUS_SET_INBAND_FEC(2) option that turns on FEC, but
    does not force SILK mode (FEC will be disabled in CELT mode)
  * Improved tuning and various fixes to DTX
  * Added Meson support, improved CMake support
- Change Source to new home on github.
- Use autosetup, make_build and ldconfig_scriptlets macros.
- Move AUTHORS and README docs to devel package.
- Drop patches fixed upstream:
  * opus-Fix-celt-decoder-assertion-when-using-OPUS_CUSTOM.patch
  * opus-Silk-CNG-adapts-faster.patch
  * opus-Silk-fix-arm-optimization.patch


NOTE: Did not change spec to use meson on purpose, since this is the first release with meson support, we can make that change on the next version upgrade, where I hope there is less risk of hidden bugs with the new buildsystem.

OBS-URL: https://build.opensuse.org/request/show/1080974
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/opus?expand=0&rev=45
2023-04-21 08:58:17 +00:00

89 lines
2.6 KiB
RPMSpec

#
# spec file for package opus
#
# Copyright (c) 2023 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.4
Release: 0
Summary: Audio Codec Library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://opus-codec.org/
Source: https://github.com/xiph/opus/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source99: baselibs.conf
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
%autosetup -p1
%build
%configure \
--disable-static \
--disable-silent-rules \
--disable-doc \
--enable-custom-modes
%make_build
%check
%make_build check
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%ldconfig_scriptlets -n libopus%{sover}
%files -n libopus%{sover}
%license COPYING
%{_libdir}/libopus.so.%{sover}*
%files -n libopus-devel
%doc AUTHORS README
%{_libdir}/libopus.so
%{_includedir}/opus
%{_libdir}/pkgconfig/opus.pc
%dir %{_datadir}/aclocal
%{_datadir}/aclocal/opus.m4
%changelog