Summary(pt_BR.UTF-8): Implementação do Common Lisp (ANSI CL)
Name: clisp
Version: 2.49
-Release: 4
+Release: 5
License: GPL
Group: Development/Languages
Source0: http://download.sourceforge.net/clisp/%{name}-%{version}.tar.bz2
Patch2: %{name}-glibc.patch
# https://sourceforge.net/p/clisp/bugs/688/attachment/patch-modules_readline_readline.lisp
Patch3: %{name}-readline.patch
+Patch4: x32.patch
URL: http://clisp.cons.org/
BuildRequires: ffcall-devel
BuildRequires: gettext-tools
%patch1 -p1
%patch2 -p1
%patch3 -p0
+%patch4 -p1
# changing default -O to optflags causes memory fault on amd64
# - so something is broken... code or compiler
%ifarch sparc sparcv9 sparc64
CFLAGS="%{rpmcflags} -DSAFETY=3" \
%else
+%ifarch %{ix86} x32
+CFLAGS="%{rpmcflags} -falign-functions=4" \
+%else
CFLAGS="%{rpmcflags}" \
%endif
+%endif
./configure \
+ --host=%{_target_platform} \
--prefix=%{_prefix}
cd src
--- /dev/null
+--- clisp-2.49/src/lispbibl.d~ 2016-10-23 08:56:52.000000000 +0200
++++ clisp-2.49/src/lispbibl.d 2016-10-23 09:00:09.471732823 +0200
+@@ -203,8 +203,13 @@
+ #ifdef __ia64__
+ #define IA64
+ #endif
+- #if defined(__x86_64__) || defined(__amd64__)
+- #define AMD64
++ #if defined(__x86_64__) || defined(__amd64__)
++ #if defined(__ILP32__)
++ #define I80386
++ #define NO_ARI_ASM
++ #else
++ #define AMD64
++ #endif
+ #endif
+ #ifdef __s390__
+ #define S390