[packages/spandsp] - added x32.patch
witekfl
witekfl at pld-linux.org
Wed Apr 1 17:26:53 CEST 2015
commit ce02257ca6495f4a478f08567b4d2b7e3c716af3
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Wed Apr 1 15:26:29 2015 +0000
- added x32.patch
spandsp.spec | 12 ++++++++++--
x32.patch | 13 +++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/spandsp.spec b/spandsp.spec
index b8eba41..c9a012f 100644
--- a/spandsp.spec
+++ b/spandsp.spec
@@ -16,7 +16,7 @@
%endif
%define subver pre20
-%define rel 2
+%define rel 3
Summary: DSP functions for telephony
Summary(pl.UTF-8): Funkcje DSP dla telefonii
Name: spandsp
@@ -27,7 +27,9 @@ License: LGPL v2.1
Group: Libraries
Source0: http://www.soft-switch.org/downloads/spandsp/%{name}-%{version}%{subver}.tgz
# Source0-md5: 9bdf1d027f1b5dc5e622d707fa1634cb
+Patch0: x32.patch
URL: http://www.soft-switch.org/
+BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook-dtd43-xml
BuildRequires: docbook-style-xsl
@@ -38,6 +40,7 @@ BuildRequires: fltk-devel
BuildRequires: libpcap-devel
BuildRequires: libsndfile-devel
BuildRequires: libtiff-devel
+BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: libxslt-progs
BuildRequires: pkgconfig
@@ -80,9 +83,14 @@ Statyczna biblioteka spandsp.
%prep
%setup -q
+%patch0 -p1
%build
-install /usr/share/automake/config.* config
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
--disable-tests \
%{?with_mmx:--enable-mmx} \
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..7bd4d8b
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,13 @@
+--- spandsp-0.0.6/configure.ac.orig 2015-04-01 15:18:28.000000000 +0000
++++ spandsp-0.0.6/configure.ac 2015-04-01 15:18:54.000000000 +0000
+@@ -258,8 +258,8 @@ then
+ case "${host}" in
+ x86_64-*)
+ # X86_64 Linux machines may have both 64 bit and 32 bit libraries. We need to choose the right set
+- AX_CHECK_REAL_FILE([${prefix}/lib64], libdir='$(exec_prefix)/lib64')
+- AX_CHECK_REAL_FILE([/usr/X11R6/lib64], [TESTLIBS="$TESTLIBS -L/usr/X11R6/lib64"], AC_CHECK_FILE([/usr/X11R6/lib], [TESTLIBS="$TESTLIBS -L/usr/X11R6/lib"]))
++ #AX_CHECK_REAL_FILE([${prefix}/lib64], libdir='$(exec_prefix)/lib64')
++ #AX_CHECK_REAL_FILE([/usr/X11R6/lib64], [TESTLIBS="$TESTLIBS -L/usr/X11R6/lib64"], AC_CHECK_FILE([/usr/X11R6/lib], [TESTLIBS="$TESTLIBS -L/usr/X11R6/lib"]))
+ # The very oldest AMD 64 bit chips support SSE2, SSE and MMX
+ enable_sse2="yes"
+ ;;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/spandsp.git/commitdiff/ce02257ca6495f4a478f08567b4d2b7e3c716af3
More information about the pld-cvs-commit
mailing list