[speexdsp] Fix build on aarch64 (disable NEON)

Peter Robinson pbrobinson at fedoraproject.org
Thu Jan 15 11:12:53 UTC 2015


commit c5f50ac1eadb8dd0864ad94e4db1ac6992eb67bc
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Thu Jan 15 11:13:06 2015 +0000

    Fix build on aarch64 (disable NEON)

 speexdsp.spec |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/speexdsp.spec b/speexdsp.spec
index d2aa5bf..90a1102 100644
--- a/speexdsp.spec
+++ b/speexdsp.spec
@@ -1,7 +1,7 @@
 Name:           speexdsp
 Version:        1.2
 %global rc_ver  rc3
-Release:        0.3.%{rc_ver}%{?dist}
+Release:        0.4.%{rc_ver}%{?dist}
 Summary:        A voice compression format (DSP)
 
 Group:          System Environment/Libraries
@@ -42,13 +42,20 @@ This is the DSP package, see the speex package for the codec part.
 
 
 %build
-%configure --disable-static
-make %{?_smp_mflags} V=1
+%configure \
+%ifarch aarch64
+	--disable-neon \
+%endif
+	--disable-static
 
+make %{?_smp_mflags} V=1
 
 %install
 make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
 
+# Remove libtool archives
+find %{buildroot} -type f -name "*.la" -delete
+
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
@@ -61,10 +68,11 @@ make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
 %{_includedir}/speex
 %{_libdir}/pkgconfig/speexdsp.pc
 %{_libdir}/libspeexdsp.so
-%exclude %{_libdir}/libspeexdsp.la
-
 
 %changelog
+* Thu Jan 15 2015 Peter Robinson <pbrobinson at fedoraproject.org> 1.2.0.4.rc3
+- Fix build on aarch64 (disable NEON)
+
 * Mon Jan 05 2015 David King <amigadave at amigadave.com> - 1.2.0.3.rc3
 - Update to 1.2rc3
 


More information about the scm-commits mailing list