2012-05-15 12:42:12 +02:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
#
|
|
|
|
# spec file for package webrtc-audio-processing
|
|
|
|
#
|
2023-09-18 14:05:03 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-05-15 12:42:12 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-08-02 10:26:30 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-05-15 12:42:12 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-09-18 14:05:03 +02:00
|
|
|
%define pkg_soname 1-3
|
|
|
|
%define soname 3
|
2012-05-15 12:42:12 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
Name: webrtc-audio-processing
|
2023-09-18 14:05:03 +02:00
|
|
|
Version: 1.3
|
2012-05-15 12:42:12 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Real-Time Communication Library for Web Browsers
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Libraries
|
2020-08-21 15:46:29 +02:00
|
|
|
URL: https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
|
2023-09-18 14:05:03 +02:00
|
|
|
Source: webrtc-audio-processing-%{version}.tar.xz
|
2017-01-19 14:38:47 +01:00
|
|
|
Source1: baselibs.conf
|
2023-09-18 14:05:03 +02:00
|
|
|
# PATCH-FIX-UPSTREAM fix-build.patch alarrosa@suse.com -- Fix a number of "control reaches end of non-void function" errors
|
|
|
|
Patch0: fix-build.patch
|
Accepting request 404777 from home:oholecek:branches:multimedia:libs
- Remove webrtc-aarch64.patch, no longer needed
- Adapt the rest of webrtc- patches to new arch naming
- Remove unneeded explicit version dependency for automake
- Update to 0.3
* build: enforce linking with --no-undefined, add explicit -lpthread
* build: Make sure files with SSE2 code are compiled with -msse2
- Remove no-undefined.patch
- Remove webrtc-audio-processing-0.2-x86_msse2.patch
- Add no-undefined.patch patch
https://cgit.freedesktop.org/pulseaudio/webrtc-audio-processing/patch/?id=d58164e4d87854233564b59e76259b72e21507f6
- Add big_endian_support_2.patch https://bugs.freedesktop.org/show_bug.cgi?id=95738
- Adapt webrtc-audio-processing-0.2-x86_msse2.patch to new version
- Adapt big_endian_support.patch to new version
- Add webrtc-audio-processing-0.2-x86_msse2.patch patch fixing 386 build
https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-May/026294.html
- Add big_endian_support.patch
https://bugs.freedesktop.org/show_bug.cgi?id=95738
- New automake version dependency >= 1.5
- Update to 0.2:
Contains API breaking changes.
Upstream changes include:
* Rewritten AGC and voice activity detection
* Intelligibility enhancer
* Extended AEC filter
* Beamformer
* Transient suppressor
* ARM, NEON and MIPS optimisations (MIPS optimisations are not hooked up)
API changes:
* We no longer include a top-level audio_processing.h. The webrtc tree format
is used, so use webrtc/modules/audio_processing/include/audio_processing.h
* The top-level module_common_types.h has also been moved to
webrtc/modules/interface/module_common_types.h
* C++11 support is now required while compiling client code
* AudioProcessing::Create() does not take any arguments any more
* AudioProcessing::Destroy() is gone, use standard C++ "delete" instead
* Stream parameters are now configured via StreamConfig and ProcessingConfig
rather than set_sample_rate(), set_num_channels(), etc.
* AudioFrame field names have changed
* Use config API for newer audio processing options
* Use ProcessReverseStream() instead of AnalyzeReverseStream(), particularly
when using the intelligibility enhancer
* GainControl::set_analog_level_limits() is broken. The AGC implementation
hard codes 0-255 as the volume range
Other notes:
* The new audio processing parameters are not all tested, and a few are not
enabled upstream (in Chromium) either
* The rewritten AGC appears to be less sensitive, and it might make sense to
initialise the capture volume to something reasonable (33% or 50%, for
example) to make sure there is sufficient energy in the stream to trigger
the AGC mechanism
- Adapted all 3 arch patches
OBS-URL: https://build.opensuse.org/request/show/404777
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/webrtc-audio-processing?expand=0&rev=11
2016-06-25 18:50:49 +02:00
|
|
|
# PATCH-FIX-UPSTREAN big_endian_support.patch https://bugs.freedesktop.org/show_bug.cgi?id=95738
|
|
|
|
Patch1: big_endian_support.patch
|
|
|
|
# PATCH-FIX-UPSTREAN big_endian_support.patch https://bugs.freedesktop.org/show_bug.cgi?id=95738
|
|
|
|
Patch2: big_endian_support_2.patch
|
2023-09-18 14:05:03 +02:00
|
|
|
Patch3: fix-i586.patch
|
Accepting request 404777 from home:oholecek:branches:multimedia:libs
- Remove webrtc-aarch64.patch, no longer needed
- Adapt the rest of webrtc- patches to new arch naming
- Remove unneeded explicit version dependency for automake
- Update to 0.3
* build: enforce linking with --no-undefined, add explicit -lpthread
* build: Make sure files with SSE2 code are compiled with -msse2
- Remove no-undefined.patch
- Remove webrtc-audio-processing-0.2-x86_msse2.patch
- Add no-undefined.patch patch
https://cgit.freedesktop.org/pulseaudio/webrtc-audio-processing/patch/?id=d58164e4d87854233564b59e76259b72e21507f6
- Add big_endian_support_2.patch https://bugs.freedesktop.org/show_bug.cgi?id=95738
- Adapt webrtc-audio-processing-0.2-x86_msse2.patch to new version
- Adapt big_endian_support.patch to new version
- Add webrtc-audio-processing-0.2-x86_msse2.patch patch fixing 386 build
https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-May/026294.html
- Add big_endian_support.patch
https://bugs.freedesktop.org/show_bug.cgi?id=95738
- New automake version dependency >= 1.5
- Update to 0.2:
Contains API breaking changes.
Upstream changes include:
* Rewritten AGC and voice activity detection
* Intelligibility enhancer
* Extended AEC filter
* Beamformer
* Transient suppressor
* ARM, NEON and MIPS optimisations (MIPS optimisations are not hooked up)
API changes:
* We no longer include a top-level audio_processing.h. The webrtc tree format
is used, so use webrtc/modules/audio_processing/include/audio_processing.h
* The top-level module_common_types.h has also been moved to
webrtc/modules/interface/module_common_types.h
* C++11 support is now required while compiling client code
* AudioProcessing::Create() does not take any arguments any more
* AudioProcessing::Destroy() is gone, use standard C++ "delete" instead
* Stream parameters are now configured via StreamConfig and ProcessingConfig
rather than set_sample_rate(), set_num_channels(), etc.
* AudioFrame field names have changed
* Use config API for newer audio processing options
* Use ProcessReverseStream() instead of AnalyzeReverseStream(), particularly
when using the intelligibility enhancer
* GainControl::set_analog_level_limits() is broken. The AGC implementation
hard codes 0-255 as the volume range
Other notes:
* The new audio processing parameters are not all tested, and a few are not
enabled upstream (in Chromium) either
* The rewritten AGC appears to be less sensitive, and it might make sense to
initialise the capture volume to something reasonable (33% or 50%, for
example) to make sure there is sufficient energy in the stream to trigger
the AGC mechanism
- Adapted all 3 arch patches
OBS-URL: https://build.opensuse.org/request/show/404777
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/webrtc-audio-processing?expand=0&rev=11
2016-06-25 18:50:49 +02:00
|
|
|
# PATCH-FIX-OPENSUSE webrtc-(ppc64|s390x|aarch64).patch
|
|
|
|
Patch100: webrtc-ppc64.patch
|
|
|
|
Patch101: webrtc-s390x.patch
|
2023-09-20 11:12:33 +02:00
|
|
|
# PATCH-FIX-OPENSUSE reduce-meson-dep.patch
|
|
|
|
Patch102: reduce-meson-dep.patch
|
2023-09-18 14:05:03 +02:00
|
|
|
BuildRequires: cmake
|
2012-05-15 12:42:12 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: make
|
2023-09-20 11:12:33 +02:00
|
|
|
BuildRequires: meson >= 0.59.4
|
2012-05-15 12:42:12 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2023-09-18 14:05:03 +02:00
|
|
|
BuildRequires: cmake(absl)
|
2012-05-15 12:42:12 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
WebRTC is an open source project that enables web browsers with Real-Time
|
|
|
|
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
|
|
|
|
components have been optimized to best serve this purpose.
|
|
|
|
|
|
|
|
WebRTC implements the W3C's proposal for video conferencing on the web.
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%package -n libwebrtc-audio-processing-%{pkg_soname}
|
2012-05-15 12:42:12 +02:00
|
|
|
Summary: Real-Time Communication Library for Web Browsers
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%description -n libwebrtc-audio-processing-%{pkg_soname}
|
2012-05-15 12:42:12 +02:00
|
|
|
WebRTC is an open source project that enables web browsers with Real-Time
|
|
|
|
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
|
|
|
|
components have been optimized to best serve this purpose.
|
|
|
|
|
|
|
|
WebRTC implements the W3C's proposal for video conferencing on the web.
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%package -n libwebrtc-audio-processing-devel
|
2012-05-15 12:42:12 +02:00
|
|
|
Summary: Real-Time Communication Library for Web Browsers
|
|
|
|
Group: Development/Libraries/C and C++
|
2023-09-18 14:05:03 +02:00
|
|
|
Requires: libwebrtc_audio_processing%{pkg_soname} = %{version}
|
2012-05-15 12:42:12 +02:00
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%description -n libwebrtc-audio-processing-devel
|
2012-05-15 12:42:12 +02:00
|
|
|
WebRTC is an open source project that enables web browsers with Real-Time
|
|
|
|
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
|
|
|
|
components have been optimized to best serve this purpose.
|
|
|
|
|
|
|
|
WebRTC implements the W3C's proposal for video conferencing on the web.
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%package -n libwebrtc-audio-processing-devel-static
|
2012-05-15 12:42:12 +02:00
|
|
|
Summary: Real-Time Communication Library for Web Browsers
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libwebrtc_audio_processing-devel = %{version}
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%description -n libwebrtc-audio-processing-devel-static
|
2012-05-15 12:42:12 +02:00
|
|
|
WebRTC is an open source project that enables web browsers with Real-Time
|
|
|
|
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
|
|
|
|
components have been optimized to best serve this purpose.
|
|
|
|
|
|
|
|
WebRTC implements the W3C's proposal for video conferencing on the web.
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%package -n libwebrtc-audio-coding-%{pkg_soname}
|
2023-09-18 14:05:03 +02:00
|
|
|
Summary: Real-Time Communication Library for Web Browsers
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%description -n libwebrtc-audio-coding-%{pkg_soname}
|
2023-09-18 14:05:03 +02:00
|
|
|
WebRTC is an open source project that enables web browsers with Real-Time
|
|
|
|
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
|
|
|
|
components have been optimized to best serve this purpose.
|
|
|
|
|
|
|
|
WebRTC implements the W3C's proposal for video conferencing on the web.
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%package -n libwebrtc-audio-coding-devel
|
2023-09-18 14:05:03 +02:00
|
|
|
Summary: Real-Time Communication Library for Web Browsers
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libwebrtc_audio_coding%{pkg_soname} = %{version}
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%description -n libwebrtc-audio-coding-devel
|
2023-09-18 14:05:03 +02:00
|
|
|
WebRTC is an open source project that enables web browsers with Real-Time
|
|
|
|
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
|
|
|
|
components have been optimized to best serve this purpose.
|
|
|
|
|
|
|
|
WebRTC implements the W3C's proposal for video conferencing on the web.
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%package -n libwebrtc-audio-coding-devel-static
|
2023-09-18 14:05:03 +02:00
|
|
|
Summary: Real-Time Communication Library for Web Browsers
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libwebrtc_audio_coding-devel = %{version}
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%description -n libwebrtc-audio-coding-devel-static
|
2023-09-18 14:05:03 +02:00
|
|
|
WebRTC is an open source project that enables web browsers with Real-Time
|
|
|
|
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
|
|
|
|
components have been optimized to best serve this purpose.
|
|
|
|
|
|
|
|
WebRTC implements the W3C's proposal for video conferencing on the web.
|
|
|
|
|
2012-05-15 12:42:12 +02:00
|
|
|
%prep
|
2023-09-18 14:05:03 +02:00
|
|
|
%autosetup -p1 -N
|
Accepting request 404777 from home:oholecek:branches:multimedia:libs
- Remove webrtc-aarch64.patch, no longer needed
- Adapt the rest of webrtc- patches to new arch naming
- Remove unneeded explicit version dependency for automake
- Update to 0.3
* build: enforce linking with --no-undefined, add explicit -lpthread
* build: Make sure files with SSE2 code are compiled with -msse2
- Remove no-undefined.patch
- Remove webrtc-audio-processing-0.2-x86_msse2.patch
- Add no-undefined.patch patch
https://cgit.freedesktop.org/pulseaudio/webrtc-audio-processing/patch/?id=d58164e4d87854233564b59e76259b72e21507f6
- Add big_endian_support_2.patch https://bugs.freedesktop.org/show_bug.cgi?id=95738
- Adapt webrtc-audio-processing-0.2-x86_msse2.patch to new version
- Adapt big_endian_support.patch to new version
- Add webrtc-audio-processing-0.2-x86_msse2.patch patch fixing 386 build
https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-May/026294.html
- Add big_endian_support.patch
https://bugs.freedesktop.org/show_bug.cgi?id=95738
- New automake version dependency >= 1.5
- Update to 0.2:
Contains API breaking changes.
Upstream changes include:
* Rewritten AGC and voice activity detection
* Intelligibility enhancer
* Extended AEC filter
* Beamformer
* Transient suppressor
* ARM, NEON and MIPS optimisations (MIPS optimisations are not hooked up)
API changes:
* We no longer include a top-level audio_processing.h. The webrtc tree format
is used, so use webrtc/modules/audio_processing/include/audio_processing.h
* The top-level module_common_types.h has also been moved to
webrtc/modules/interface/module_common_types.h
* C++11 support is now required while compiling client code
* AudioProcessing::Create() does not take any arguments any more
* AudioProcessing::Destroy() is gone, use standard C++ "delete" instead
* Stream parameters are now configured via StreamConfig and ProcessingConfig
rather than set_sample_rate(), set_num_channels(), etc.
* AudioFrame field names have changed
* Use config API for newer audio processing options
* Use ProcessReverseStream() instead of AnalyzeReverseStream(), particularly
when using the intelligibility enhancer
* GainControl::set_analog_level_limits() is broken. The AGC implementation
hard codes 0-255 as the volume range
Other notes:
* The new audio processing parameters are not all tested, and a few are not
enabled upstream (in Chromium) either
* The rewritten AGC appears to be less sensitive, and it might make sense to
initialise the capture volume to something reasonable (33% or 50%, for
example) to make sure there is sufficient energy in the stream to trigger
the AGC mechanism
- Adapted all 3 arch patches
OBS-URL: https://build.opensuse.org/request/show/404777
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/webrtc-audio-processing?expand=0&rev=11
2016-06-25 18:50:49 +02:00
|
|
|
sed -i 's/\r$//' AUTHORS
|
2023-09-18 14:05:03 +02:00
|
|
|
%patch0 -p1
|
|
|
|
#%%patch1 -p1
|
|
|
|
#%%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch100 -p1
|
|
|
|
%patch101 -p1
|
2023-09-20 11:12:33 +02:00
|
|
|
%patch102 -p1
|
2012-05-15 12:42:12 +02:00
|
|
|
|
|
|
|
%build
|
2019-08-02 10:26:30 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2023-09-18 14:05:03 +02:00
|
|
|
%meson \
|
2023-09-20 11:12:33 +02:00
|
|
|
-Dc_std=gnu11 \
|
2023-09-18 14:05:03 +02:00
|
|
|
-Dcpp_std=gnu++17 \
|
|
|
|
-Ddefault_library=both \
|
|
|
|
-Dc_args="${CFLAGS} ${LDFLAGS}" \
|
|
|
|
-Dcpp_args="${CXXFLAGS} ${LDFLAGS}" \
|
|
|
|
%{nil}
|
|
|
|
%meson_build
|
2012-05-15 12:42:12 +02:00
|
|
|
|
|
|
|
%install
|
2023-09-18 14:05:03 +02:00
|
|
|
%meson_install
|
2012-05-15 12:42:12 +02:00
|
|
|
|
2020-08-21 15:46:29 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-05-15 12:42:12 +02:00
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%post -n libwebrtc-audio-processing-%{pkg_soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libwebrtc-audio-processing-%{pkg_soname} -p /sbin/ldconfig
|
|
|
|
%post -n libwebrtc-audio-coding-%{pkg_soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libwebrtc-audio-coding-%{pkg_soname} -p /sbin/ldconfig
|
2012-05-15 12:42:12 +02:00
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%files -n libwebrtc-audio-processing-%{pkg_soname}
|
2020-08-21 15:46:29 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS README.md UPDATING.md
|
2023-09-18 14:05:03 +02:00
|
|
|
%{_libdir}/libwebrtc-audio-processing-1.so.%{soname}*
|
2012-05-15 12:42:12 +02:00
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%files -n libwebrtc-audio-processing-devel
|
2023-09-18 14:05:03 +02:00
|
|
|
%{_includedir}/webrtc-audio-processing-1
|
|
|
|
%{_libdir}/libwebrtc-audio-processing-1.so
|
|
|
|
%{_libdir}/pkgconfig/webrtc-audio-processing-1.pc
|
2012-05-15 12:42:12 +02:00
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%files -n libwebrtc-audio-processing-devel-static
|
2023-09-18 14:05:03 +02:00
|
|
|
%{_libdir}/libwebrtc-audio-processing-1.a
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%files -n libwebrtc-audio-coding-%{pkg_soname}
|
2023-09-18 14:05:03 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS README.md UPDATING.md
|
|
|
|
%{_libdir}/libwebrtc-audio-coding-1.so.%{soname}*
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%files -n libwebrtc-audio-coding-devel
|
2023-09-18 14:05:03 +02:00
|
|
|
%{_libdir}/libwebrtc-audio-coding-1.so
|
|
|
|
%{_libdir}/pkgconfig/webrtc-audio-coding-1.pc
|
|
|
|
|
2023-09-20 11:12:33 +02:00
|
|
|
%files -n libwebrtc-audio-coding-devel-static
|
2023-09-18 14:05:03 +02:00
|
|
|
%{_libdir}/libwebrtc-audio-coding-1.a
|
2012-05-15 12:42:12 +02:00
|
|
|
|
|
|
|
%changelog
|