2 |
%define _disable_ld_no_undefined 1 |
%define _disable_ld_no_undefined 1 |
3 |
|
|
4 |
# Majors |
# Majors |
5 |
%define major 1 |
%define major 0 |
6 |
|
|
7 |
# Library names |
# Library names |
8 |
%define libname %mklibname %{name} %{major} |
%define libname %mklibname %{name} %{major} |
10 |
|
|
11 |
Summary: WebRTC Audio Processing Library |
Summary: WebRTC Audio Processing Library |
12 |
Name: webrtc-audio-processing |
Name: webrtc-audio-processing |
13 |
Version: 0.3.1 |
Version: 1.0 |
14 |
Release: %mkrel 2 |
Release: %mkrel 1 |
15 |
Source0: https://freedesktop.org/software/pulseaudio/%{name}/%{name}-%{version}.tar.xz |
Source0: https://freedesktop.org/software/pulseaudio/%{name}/%{name}-%{version}.tar.gz |
|
Patch0: webrtc-fix-typedefs-on-other-arches.patch |
|
16 |
License: Distributable |
License: Distributable |
17 |
Group: System/Libraries |
Group: System/Libraries |
18 |
Url: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/ |
Url: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/ |
19 |
|
BuildRequires: meson |
20 |
|
BuildRequires: abseil-cpp-devel |
21 |
|
|
22 |
%description |
%description |
23 |
Packaging friendly copy of the AudioProcessing module from the WebRTC project. |
Packaging friendly copy of the AudioProcessing module from the WebRTC project. |
42 |
%prep |
%prep |
43 |
%setup -q |
%setup -q |
44 |
%autopatch -p1 |
%autopatch -p1 |
45 |
|
#this fixed in next release, remove after update to v. 1.1 |
46 |
|
sed -i 's!absl_flags_registry!absl_flags_reflection!g' meson.build |
47 |
|
|
48 |
%build |
%build |
49 |
%configure --disable-static \ |
%meson |
50 |
%ifarch armv7hl |
%meson_build |
|
--disable-neon \ |
|
|
%endif |
|
|
|
|
|
%make_build |
|
51 |
|
|
52 |
%install |
%install |
53 |
%make_install |
%meson_install |
54 |
|
|
55 |
find %{buildroot} -name '*.la' -delete |
find %{buildroot} -name '*.la' -delete |
56 |
|
|
57 |
%files -n %{libname} |
%files -n %{libname} |
58 |
%{_libdir}/libwebrtc_audio_processing.so.%{major} |
%{_libdir}/libwebrtc-audio-coding-1.so.%{major} |
59 |
%{_libdir}/libwebrtc_audio_processing.so.%{major}.* |
%{_libdir}/libwebrtc-audio-processing-1.so.%{major} |
60 |
|
|
61 |
%files -n %{libname_devel} |
%files -n %{libname_devel} |
62 |
%doc README* COPYING |
%doc README* COPYING |
63 |
%{_includedir}/webrtc_audio_processing/ |
%{_includedir}/webrtc-audio-processing-1/ |
64 |
%{_libdir}/libwebrtc_audio_processing.so |
%{_libdir}/libwebrtc-audio-coding-1.so |
65 |
%{_libdir}/pkgconfig/%{name}.pc |
%{_libdir}/libwebrtc-audio-processing-1.so |
66 |
|
%{_libdir}/pkgconfig/webrtc-*.pc |