# AudioProcessing module from the WebRTC[1] project. The ideal case is that we
# make no changes to the code to make tracking upstream code easy.
# [1] http://code.google.com/p/webrtc/
+#
+# Conditional build:
+%bcond_without neon # without ARM NEON instructions
+
+%ifnarch armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl aarch64
+%undefine with_neon
+%endif
+
Summary: WebRTC Audio Processing library
Summary(pl.UTF-8): Biblioteka WebRTC Audio Processing
Name: webrtc-audio-processing
-Version: 0.1
+Version: 0.3.1
Release: 1
License: BSD
Group: Libraries
-Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz
-# Source0-md5: da25bb27812c8404060d4cc0dc712f04
-Patch0: link.patch
-URL: http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
+Source0: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz
+# Source0-md5: 6e10724ca34bcbc715a4c208273acb0c
+URL: https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
BuildRequires: autoconf >= 2.50
-BuildRequires: automake
-BuildRequires: libstdc++-devel
+BuildRequires: automake >= 1:1.11
+BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: libtool
BuildRequires: tar >= 1:1.22
BuildRequires: xz
%prep
%setup -q
-%patch0 -p1
%build
%{__libtoolize}
%{__autoconf}
%{__automake}
%configure \
+ %{!?with_neon:--disable-neon} \
--disable-silent-rules
%{__make}
%files
%defattr(644,root,root,755)
-%doc AUTHORS COPYING NEWS PATENTS README
+%doc AUTHORS COPYING NEWS README.md webrtc/PATENTS
%attr(755,root,root) %{_libdir}/libwebrtc_audio_processing.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libwebrtc_audio_processing.so.0
+%attr(755,root,root) %ghost %{_libdir}/libwebrtc_audio_processing.so.1
%files devel
%defattr(644,root,root,755)