commit 89396169d6f78ec473453eb4ddd2354f76c0fb2a
Author: Jakub Bogusz <[email protected]>
Date:   Sun Dec 18 18:19:39 2016 +0100

    - updated to 1.2.0 final release
    - added ac patch (fix autoconf misuse leading to disabling binaries when 
some --disable option is passed)

 speex-ac.patch | 11 +++++++++++
 speex.spec     | 26 ++++++++++++++++----------
 2 files changed, 27 insertions(+), 10 deletions(-)
---
diff --git a/speex.spec b/speex.spec
index c0dd750..8a0baa3 100644
--- a/speex.spec
+++ b/speex.spec
@@ -1,23 +1,26 @@
 #
 # Conditional build:
 %bcond_with    bootstrap       # bootstrap from <= 1.2-rc1 (with speexdsp in 
base)
+%bcond_with    sse             # SSE support (no runtime detection)
 %bcond_without static_libs     # don't build static library
 
+%ifarch pentium3 pentium4 %{x8664}
+%define        with_sse        1
+%endif
 Summary:       An open-source, patent-free speech codec
 Summary(pl.UTF-8):     Otwarty kodek mowy, wolny od patentów
 Name:          speex
-Version:       1.2
-%define        subver  rc2
-%define        rel     2
-Release:       %{subver}.%{rel}
+Version:       1.2.0
+Release:       1
 Epoch:         1
 License:       BSD
 Group:         Libraries
-Source0:       
http://downloads.xiph.org/releases/speex/%{name}-%{version}%{subver}.tar.gz
-# Source0-md5: 6ae7db3bab01e1d4b86bacfa8ca33e81
+Source0:       
http://downloads.xiph.org/releases/speex/%{name}-%{version}.tar.gz
+# Source0-md5: 8ab7bb2589110dfaf0ed7fa7757dc49c
+Patch0:                %{name}-ac.patch
 URL:           http://www.speex.org/
 BuildRequires: autoconf >= 2.50
-BuildRequires: automake
+BuildRequires: automake >= 1:1.8
 BuildRequires: libogg-devel
 BuildRequires: libtool
 BuildRequires: pkgconfig
@@ -86,15 +89,18 @@ plik WAV lub raw) oraz speexenc (kodujący plik z formatu 
WAV lub raw
 przy użyciu kodeka Speex).
 
 %prep
-%setup -q -n %{name}-%{version}%{subver}
+%setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
-       --with-ogg-libraries=%{_libdir} \
+       %{?with_sse:--enable-sse} \
+       --disable-silent-rules \
        %{!?with_static_libs:--disable-static}
 %{__make}
 
diff --git a/speex-ac.patch b/speex-ac.patch
new file mode 100644
index 0000000..09386f3
--- /dev/null
+++ b/speex-ac.patch
@@ -0,0 +1,11 @@
+--- speex-1.2.0/configure.ac.orig      2016-12-08 00:20:14.000000000 +0100
++++ speex-1.2.0/configure.ac   2016-12-18 18:08:22.364596212 +0100
+@@ -167,7 +167,7 @@
+ fi])
+ 
+ AC_ARG_ENABLE(binaries, [  --disable-binaries   Do not build the encoder and 
decoder programs, only the library])
+-if test "$enableval" != no; then
++if test "$enable_binaries" != no; then
+   PKG_CHECK_MODULES([OGG], [ogg],
+     AM_CONDITIONAL([BUILD_BINARIES], true),
+     AM_CONDITIONAL([BUILD_BINARIES], false))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/speex.git/commitdiff/89396169d6f78ec473453eb4ddd2354f76c0fb2a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to