124 lines
4.0 KiB
RPMSpec
124 lines
4.0 KiB
RPMSpec
|
|
Name: webrtc-audio-processing
|
|
Version: 0.2
|
|
Release: 2%{?dist}
|
|
Summary: Library for echo cancellation
|
|
|
|
License: BSD
|
|
URL: http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
|
|
Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz
|
|
Patch0: webrtc-fix-typedefs-on-other-arches.patch
|
|
Patch1: webrtc-audio-processing-0.2-no_undefined.patch
|
|
Patch2: webrtc-audio-processing-0.2-x86_msse2.patch
|
|
Patch3: webrtc-audio-processing-0.2-x86_sse2_runtime_detection.patch
|
|
|
|
BuildRequires: automake libtool
|
|
|
|
%description
|
|
%{name} is a library derived from Google WebRTC project that
|
|
provides echo cancellation functionality. This library is used by for example
|
|
PulseAudio to provide echo cancellation.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header
|
|
files for developing applications that use %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1 -b .typedef
|
|
%patch1 -p1 -b .no_undefined
|
|
%patch2 -p1 -b .x86_msse2
|
|
%ifarch %{ix86}
|
|
%patch3 -p1 -b .x86_sse2_runtime_detection
|
|
%endif
|
|
|
|
# for patch1/patch2
|
|
autoreconf -fi
|
|
|
|
|
|
%build
|
|
|
|
%ifarch %{arm}
|
|
# disable neon support
|
|
# can't unconditionally enable neon, and --enable-neon=runtime is broken (WebRtc_GetCPUFeaturesARM is unimplemented)
|
|
%global neon --enable-neon=no
|
|
## hack to ensure -mfpu=neon flag appears last when using --enable-neon=yes|runtime
|
|
#export CFLAGS="%{optflags} -mfpu=neon"
|
|
#export CXXFLAGS="%{optflags} -mfpu=neon"
|
|
%endif
|
|
|
|
%configure \
|
|
%{?neon} \
|
|
--disable-silent-rules \
|
|
--disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|
|
|
## unpackaged files
|
|
rm -fv %{buildroot}%{_libdir}/lib*.la
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc NEWS AUTHORS README.md
|
|
%license COPYING
|
|
%{_libdir}/libwebrtc_audio_processing.so.1*
|
|
|
|
%files devel
|
|
%{_libdir}/libwebrtc_audio_processing.so
|
|
%{_libdir}/pkgconfig/webrtc-audio-processing.pc
|
|
%{_includedir}/webrtc_audio_processing/
|
|
|
|
|
|
%changelog
|
|
* Mon May 16 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.2-2
|
|
- link w/ --no-undefined
|
|
- fix x86 sse2 runtime detection
|
|
|
|
* Thu May 12 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.2-1
|
|
- webrtc-audio-processing-0.2 (#1335536)
|
|
- %%files: track ABI/API closer
|
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.1-9
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Tue Jan 28 2014 Kyle McMartin <kyle@fedoraproject.org> - 0.1-6
|
|
- webrtc-fix-typedefs-on-other-arches.patch: fix ftbfs on non-x86/arm due to
|
|
a build #error in typedefs.h, however, the defines are not used anywhere in
|
|
the code. Fixes build on ppc{,64}, s390x, and aarch64.
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Thu Jul 11 2013 Debarshi Ray <rishi@fedoraproject.org> 0.1-4
|
|
- Rebuilt to fix broken binary possibly caused by broken toolchain
|
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Tue Oct 9 2012 Dan Horák <dan[at]danny.cz> 0.1-2
|
|
- set ExclusiveArch x86 and ARM for now
|
|
|
|
* Fri Oct 5 2012 Christian Schaller <christian.schaller@gmail.com> 0.1-1
|
|
- Initial Fedora spec.
|