diff --git a/SOURCES/webrtc-fix-typedefs-on-other-arches.patch b/SOURCES/webrtc-fix-typedefs-on-other-arches.patch new file mode 100644 index 0000000..9dc54c2 --- /dev/null +++ b/SOURCES/webrtc-fix-typedefs-on-other-arches.patch @@ -0,0 +1,24 @@ +diff -Nur webrtc-audio-processing-0.1/src/typedefs.h webrtc-audio-processing-0.1.new/src/typedefs.h +--- webrtc-audio-processing-0.1/src/typedefs.h 2011-10-21 00:29:33.000000000 -0400 ++++ webrtc-audio-processing-0.1.new/src/typedefs.h 2014-01-28 18:42:57.816865572 -0500 +@@ -77,7 +77,19 @@ + #define WEBRTC_ARCH_32_BITS + #define WEBRTC_ARCH_LITTLE_ENDIAN + #else +-#error Please add support for your architecture in typedefs.h ++/* instead of failing, use typical unix defines... */ ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ++#define WEBRTC_ARCH_LITTLE_ENDIAN ++#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ++#define WEBRTC_ARCH_BIG_ENDIAN ++#else ++#error __BYTE_ORDER__ isn't defined! ++#endif ++#if defined(__LP64__) ++#define WEBRTC_ARCH_64_BITS ++#else ++#define WEBRTC_ARCH_32_BITS ++#endif + #endif + + #if defined(__SSE2__) || defined(_MSC_VER) diff --git a/SPECS/webrtc-audio-processing.spec b/SPECS/webrtc-audio-processing.spec index 5cf35bd..848ce78 100644 --- a/SPECS/webrtc-audio-processing.spec +++ b/SPECS/webrtc-audio-processing.spec @@ -1,14 +1,12 @@ - Name: webrtc-audio-processing Version: 0.1 -Release: 3%{?dist} +Release: 5%{?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 - -ExclusiveArch: %{ix86} x86_64 %{arm} +Patch0: webrtc-fix-typedefs-on-other-arches.patch %description %{name} is a library derived from Google WebRTC project that @@ -26,6 +24,7 @@ files for developing applications that use %{name}. %prep %setup -q +%patch0 -p1 -b .typedef %build %configure \ @@ -58,6 +57,13 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %changelog +* Wed Feb 26 2014 Debarshi Ray - 0.1-5 +- Fix FTBFS on non-x86/arm + Resolves: #1068823 + +* Fri Dec 27 2013 Daniel Mach - 0.1-4 +- Mass rebuild 2013-12-27 + * Fri Feb 15 2013 Fedora Release Engineering - 0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild