2007-01-16 00:07:22 +01:00
|
|
|
#
|
2011-09-19 16:47:12 +02:00
|
|
|
# spec file for package clisp
|
2007-01-16 00:07:22 +01:00
|
|
|
#
|
2011-09-19 16:47:12 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-03-05 16:38:56 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:07:22 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: clisp
|
2011-12-02 09:08:39 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: dbus-1-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gdbm-devel
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: libglade2-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: postgresql-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: xorg-x11-devel
|
2007-01-16 00:07:22 +01:00
|
|
|
#
|
|
|
|
# If set to yes do not forget to add
|
|
|
|
# gcc-c++
|
|
|
|
# to BuildRequires
|
|
|
|
#
|
|
|
|
%define debug no
|
2011-12-02 09:08:39 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:07:22 +01:00
|
|
|
Group: Development/Languages/Other
|
2007-12-17 22:07:34 +01:00
|
|
|
PreReq: vim
|
2010-07-19 20:27:20 +02:00
|
|
|
Version: 2.49
|
2011-12-02 09:08:39 +01:00
|
|
|
Release: 0
|
2007-01-16 00:07:22 +01:00
|
|
|
Summary: A Common Lisp Interpreter
|
2007-12-17 22:07:34 +01:00
|
|
|
Url: http://clisp.cons.org
|
2010-07-19 20:27:20 +02:00
|
|
|
Source0: http://switch.dl.sourceforge.net/sourceforge/clisp/clisp-2.49.tar.bz2
|
2011-12-02 09:42:05 +01:00
|
|
|
# Original source at http://www.haible.de/bruno/gnu/ffcall-1.10.tar.gz
|
|
|
|
# adopted to work with clisp-2.43 and higher
|
|
|
|
Source1: ffcall-1.10+2.43.tar.bz2
|
2011-12-05 13:03:10 +01:00
|
|
|
Source2: ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-2.8.tar.bz2
|
2008-02-27 00:38:24 +01:00
|
|
|
Source3: clisp-rpmlintrc
|
2010-07-19 20:27:20 +02:00
|
|
|
Source4: README.SuSE
|
|
|
|
Patch0: clisp-2.49.dif
|
2008-02-27 00:38:24 +01:00
|
|
|
Patch1: clisp-2.44.1-map_private.patch
|
|
|
|
Patch2: clisp-2.44.1-map_variable.patch
|
2010-07-19 20:27:20 +02:00
|
|
|
Patch3: clisp-2.49-personality.patch
|
2008-02-27 00:38:24 +01:00
|
|
|
Patch4: clisp-2.44.1-ia64.dif
|
2007-01-16 00:07:22 +01:00
|
|
|
Patch7: clisp-2.39-ia64-wooh.dif
|
2007-01-24 16:18:32 +01:00
|
|
|
Patch8: clisp-2.39-clx.dif
|
2010-07-19 20:27:20 +02:00
|
|
|
Patch9: clisp-2.49-berkeley-db.dif
|
2008-02-27 00:38:24 +01:00
|
|
|
Patch10: ffcall-1.10+2.43.dif
|
2007-01-16 00:07:22 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-01-30 18:02:03 +01:00
|
|
|
%global vimdir %{_datadir}/vim/site/after/syntax
|
2008-02-27 00:38:24 +01:00
|
|
|
%global xarch ppc64 s390x armv4l
|
|
|
|
ExcludeArch: ppc64 s390x armv4l
|
2007-01-16 00:07:22 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Common Lisp is a high-level, all-purpose programming language. CLISP is
|
|
|
|
an implementation of Common Lisp that closely follows the book "Common
|
|
|
|
Lisp - The Language" by Guy L. Steele Jr. This package includes an
|
|
|
|
interactive programming environment with an interpreter, a compiler,
|
|
|
|
and a debugger. Start this environment with the command 'clisp'.
|
|
|
|
|
|
|
|
CLISP documentation is placed in the following directories:
|
|
|
|
|
|
|
|
/usr/share/doc/packages/clisp/
|
|
|
|
|
|
|
|
/usr/share/doc/packages/clisp/doc/
|
|
|
|
|
|
|
|
As well as the conventional CLISP, this package also includes CLX, an
|
|
|
|
extension of CLISP for the X Window System. The X Window System must be
|
|
|
|
installed before running the clx command. The description of this CLX
|
|
|
|
version (new-clx) is placed in
|
|
|
|
|
|
|
|
/usr/share/doc/packages/clisp/clx/
|
|
|
|
|
|
|
|
with the file README. The subdirectory
|
|
|
|
|
|
|
|
/usr/share/doc/packages/clisp/clx/demos/
|
|
|
|
|
|
|
|
contains two nice applications.
|
|
|
|
|
|
|
|
%prep
|
2008-02-27 00:38:24 +01:00
|
|
|
%setup -qT -b0 -a1 -a2
|
2007-12-17 22:07:34 +01:00
|
|
|
%patch1 -p0 -b .mappriv
|
|
|
|
%patch2 -p0 -b .mapvar
|
|
|
|
%patch3 -p0 -b .sel
|
|
|
|
%patch4 -p0 -b .ia64
|
|
|
|
%patch7 -p0 -b .wooh
|
|
|
|
%patch8 -p0 -b .clx
|
|
|
|
%patch9 -p0 -b .bdb
|
2008-02-27 00:38:24 +01:00
|
|
|
%patch10 -p0 -b .ffcall
|
2009-08-26 15:43:42 +02:00
|
|
|
%patch0
|
2007-01-16 00:07:22 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
#
|
|
|
|
# Overwrite stack size limit (hopefully a soft limit only)
|
|
|
|
#
|
|
|
|
ulimit -Ss unlimited || true
|
|
|
|
ulimit -Hs unlimited || true
|
|
|
|
unset LC_CTYPE
|
|
|
|
LANG=POSIX
|
|
|
|
LC_ALL=POSIX
|
|
|
|
export LANG LC_ALL
|
|
|
|
#
|
|
|
|
# Current system
|
|
|
|
#
|
|
|
|
SYSTEM=${RPM_ARCH}-suse-linux
|
|
|
|
#
|
|
|
|
# Update autoconf files
|
|
|
|
#
|
|
|
|
AUTODIR=$(find -name autoconf -and -type d 2> /dev/null)
|
|
|
|
%{?suse_update_config $AUTODIR}
|
|
|
|
export PATH="$PATH:."
|
|
|
|
#
|
|
|
|
# Set gcc command line but do not use CFLAGS
|
|
|
|
#
|
|
|
|
if test %debug = yes ; then
|
2007-12-18 18:28:13 +01:00
|
|
|
CC="g++"
|
2007-01-16 00:07:22 +01:00
|
|
|
else
|
2007-12-18 18:28:13 +01:00
|
|
|
CC="gcc"
|
2007-01-16 00:07:22 +01:00
|
|
|
fi
|
2007-12-18 18:28:13 +01:00
|
|
|
CC="${CC} -g ${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC -pipe"
|
|
|
|
case "$RPM_ARCH" in
|
|
|
|
i[0-9]86) CC="${CC} -falign-functions=4 -mieee-fp -ffloat-store" ;;
|
|
|
|
ppc) CC="${CC}" ;;
|
|
|
|
s390) CC="${CC}" ;;
|
|
|
|
x86_64) CC="${CC} -fno-gcse" ;;
|
|
|
|
sparc*) CC="${CC} -fno-gcse" ;;
|
|
|
|
ppc64) CC="${CC} -fno-gcse -mpowerpc64" ;;
|
|
|
|
s390x) CC="${CC} -fno-gcse" ;;
|
|
|
|
ia64) CC="${CC} -fno-gcse" ;;
|
|
|
|
axp|alpha) CC="${CC}" ;;
|
|
|
|
esac
|
2007-12-17 22:07:34 +01:00
|
|
|
noexec='-DLINUX_NOEXEC_HEAPCODES'
|
|
|
|
nommap='-DNO_MULTIMAP_SHM -DNO_MULTIMAP_FILE -DNO_SINGLEMAP -DNO_TRIVIALMAP'
|
2007-12-18 18:28:13 +01:00
|
|
|
safety='-DSAFETY=3 -O'
|
|
|
|
MYCFLAGS="${MYCFLAGS} -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
MYCFLAGS="${MYCFLAGS} -D_GNU_SOURCE -Wno-unused -Wno-uninitialized"
|
2007-01-16 00:07:22 +01:00
|
|
|
case "$RPM_ARCH" in
|
2007-12-18 18:28:13 +01:00
|
|
|
i[0-9]86) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
2007-12-17 22:07:34 +01:00
|
|
|
ppc) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
|
|
|
s390) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
|
|
|
x86_64) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
|
|
|
sparc*) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
2007-12-18 18:28:13 +01:00
|
|
|
ppc64) MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD" ;;
|
|
|
|
s390x) MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD" ;;
|
2007-12-17 22:07:34 +01:00
|
|
|
ia64) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
|
|
|
axp|alpha) MYCFLAGS="${MYCFLAGS} ${nommap}" ;;
|
2007-01-16 00:07:22 +01:00
|
|
|
esac
|
|
|
|
export CC
|
|
|
|
export MYCFLAGS
|
2007-12-17 22:07:34 +01:00
|
|
|
unset cfi386 noexec nommap safety
|
2007-01-16 00:07:22 +01:00
|
|
|
#
|
|
|
|
# Environment for the case of missing terminal
|
|
|
|
#
|
|
|
|
rm -rf /tmp/clispIO
|
|
|
|
mknod /tmp/clispIO p
|
|
|
|
cat /tmp/clispIO &
|
|
|
|
exec 0< /dev/null
|
|
|
|
exec 1> /tmp/clispIO 2>&1
|
|
|
|
#
|
|
|
|
# Build the current system
|
|
|
|
#
|
|
|
|
if test %debug = yes ; then
|
|
|
|
DEBUG=--with-debug
|
2007-12-17 22:07:34 +01:00
|
|
|
MYCFLAGS="${MYCFLAGS} -g3 -DDEBUG_GCSAFETY"
|
2007-01-16 00:07:22 +01:00
|
|
|
else
|
|
|
|
DEBUG=""
|
2007-12-17 22:07:34 +01:00
|
|
|
MYCFLAGS="${MYCFLAGS}"
|
2007-01-16 00:07:22 +01:00
|
|
|
fi
|
|
|
|
#
|
|
|
|
# May interfere with configure
|
|
|
|
#
|
|
|
|
unset CFLAGS
|
|
|
|
#
|
2008-02-27 00:38:24 +01:00
|
|
|
# The libsigsegv
|
|
|
|
#
|
|
|
|
SEGV=${PWD}/libsigsegv
|
|
|
|
pushd libsigsegv-*/
|
2010-07-15 15:25:41 +02:00
|
|
|
autoreconf
|
2008-02-27 00:38:24 +01:00
|
|
|
./configure --build ${SYSTEM} ${DEBUG}\
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir}
|
|
|
|
make
|
|
|
|
make check
|
|
|
|
make DESTDIR=${SEGV} install
|
|
|
|
popd
|
|
|
|
SEGV=${SEGV}/usr
|
|
|
|
#
|
|
|
|
# The libffcall
|
|
|
|
#
|
|
|
|
%ifnarch %xarch
|
|
|
|
FFCALL=${PWD}/ffcall
|
|
|
|
pushd ffcall-*
|
|
|
|
./configure --build ${SYSTEM} ${DEBUG}\
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir}
|
|
|
|
make -C avcall
|
|
|
|
make -C callback
|
|
|
|
make -C avcall check
|
|
|
|
make -C callback check
|
|
|
|
make DESTDIR=${FFCALL} install
|
|
|
|
popd
|
|
|
|
FFCALL=${FFCALL}/usr
|
|
|
|
%endif
|
|
|
|
#
|
2010-07-19 20:27:20 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
find -name configure | xargs -r \
|
|
|
|
sed -ri "/ac_precious_vars='build_alias\$/ {N; s/build_alias\\n//; }"
|
|
|
|
#
|
2007-01-16 00:07:22 +01:00
|
|
|
# The modules i18n, syscalls, regexp
|
|
|
|
# are part of the base clisp system.
|
|
|
|
#
|
|
|
|
./configure --build ${SYSTEM} ${DEBUG} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--exec-prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
2007-12-17 22:07:34 +01:00
|
|
|
--vimdir=%{vimdir} \
|
2007-01-16 00:07:22 +01:00
|
|
|
--fsstnd=suse \
|
|
|
|
--with-readline \
|
2008-02-27 00:38:24 +01:00
|
|
|
--with-libsigsegv-prefix=${SEGV}\
|
|
|
|
%ifnarch %xarch
|
|
|
|
--with-libffcall-prefix=${FFCALL}\
|
|
|
|
%else
|
|
|
|
--without-ffcall \
|
|
|
|
%endif
|
2007-01-16 00:07:22 +01:00
|
|
|
--with-dynamic-modules \
|
|
|
|
--with-gettext \
|
2010-07-19 20:27:20 +02:00
|
|
|
--with-module=dbus \
|
2007-01-16 00:07:22 +01:00
|
|
|
--with-module=queens \
|
2010-07-19 20:27:20 +02:00
|
|
|
--with-module=gdbm \
|
|
|
|
--with-module=gtk2 \
|
2007-01-16 00:07:22 +01:00
|
|
|
--with-module=pcre \
|
|
|
|
--with-module=rawsock \
|
|
|
|
--with-module=zlib \
|
|
|
|
--with-module=wildcard \
|
|
|
|
--with-module=bindings/glibc \
|
|
|
|
--with-module=clx/new-clx \
|
2007-01-24 16:18:32 +01:00
|
|
|
--with-module=berkeley-db \
|
2007-01-16 00:07:22 +01:00
|
|
|
--with-module=postgresql
|
2010-07-19 20:27:20 +02:00
|
|
|
pushd src/
|
|
|
|
make
|
|
|
|
make check
|
|
|
|
popd
|
2007-01-16 00:07:22 +01:00
|
|
|
#
|
|
|
|
# Remove pipe
|
|
|
|
#
|
|
|
|
rm -f /tmp/clispIO
|
|
|
|
#
|
|
|
|
# Check for errors
|
|
|
|
#
|
2010-07-19 20:27:20 +02:00
|
|
|
test -z "$(ls tests/*.erg 2>/dev/null)"
|
2007-01-16 00:07:22 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
#
|
|
|
|
# Current system
|
|
|
|
#
|
|
|
|
SYSTEM=${RPM_ARCH}-suse-linux
|
|
|
|
LSPDOC=%{_docdir}/clisp
|
|
|
|
DOCDOC=${LSPDOC}/doc
|
|
|
|
CLXDOC=${LSPDOC}/clx
|
2007-12-17 22:07:34 +01:00
|
|
|
LSPLIB=%{_libdir}/clisp-%{version}
|
2007-01-16 00:07:22 +01:00
|
|
|
CLXLIB=${LSPLIB}/full
|
|
|
|
#
|
|
|
|
# Install the current system
|
|
|
|
#
|
2010-07-19 20:27:20 +02:00
|
|
|
pushd src/
|
|
|
|
make install prefix=%{_prefix} \
|
2007-01-16 00:07:22 +01:00
|
|
|
exec_prefix=%{_prefix} \
|
|
|
|
mandir=%{_mandir} \
|
|
|
|
libdir=%{_libdir} \
|
2007-12-17 22:07:34 +01:00
|
|
|
DESTDIR=%{buildroot} \
|
2007-01-16 00:07:22 +01:00
|
|
|
INSTALL_DATA='install -cm 0444'
|
2010-07-19 20:27:20 +02:00
|
|
|
popd
|
2007-01-16 00:07:22 +01:00
|
|
|
#
|
|
|
|
# The CLX interface
|
|
|
|
#
|
2007-12-17 22:07:34 +01:00
|
|
|
install -d %{buildroot}${CLXDOC}
|
|
|
|
install -d %{buildroot}${CLXLIB}
|
2010-07-19 20:27:20 +02:00
|
|
|
pushd modules/clx/new-clx/
|
|
|
|
install -c -m 0444 README %{buildroot}${CLXDOC}/
|
|
|
|
install -c -m 0444 %{S:4} %{buildroot}${CLXDOC}/
|
|
|
|
tar cf - demos/ | (cd %{buildroot}${CLXDOC}/ ; tar xf - )
|
2007-01-16 00:07:22 +01:00
|
|
|
popd
|
2010-07-19 20:27:20 +02:00
|
|
|
pushd modules/clx/
|
|
|
|
tar xfz clx-manual.tar.gz -C %{buildroot}${CLXDOC}
|
2007-01-16 00:07:22 +01:00
|
|
|
popd
|
2010-07-19 20:27:20 +02:00
|
|
|
chmod u+xrw,a+rx %{buildroot}%{_bindir}/clisp
|
|
|
|
chmod u+xrw,a+rx %{buildroot}%{_bindir}/clisp-link
|
2008-02-27 00:38:24 +01:00
|
|
|
chmod -R g+r,o+r %{buildroot}${LSPDOC}/
|
|
|
|
chmod a-x %{buildroot}${CLXDOC}/clx-manual/html/doc-index.cgi
|
2007-12-17 22:07:34 +01:00
|
|
|
find %{buildroot}${LSPDOC} -type d | xargs chmod 755
|
|
|
|
rm -f %{buildroot}${CLXDOC}/*,v
|
|
|
|
rm -f %{buildroot}${CLXDOC}/.\#*
|
|
|
|
rm -f %{buildroot}${CLXDOC}/demos/*,v
|
|
|
|
rm -f %{buildroot}${CLXDOC}/demos/.\#*
|
|
|
|
rm -f %{buildroot}${CLXDOC}/demos/*.orig
|
|
|
|
find %{buildroot}${LSPLIB}/ -name '*.dvi' | xargs -r rm -f
|
|
|
|
find %{buildroot}${LSPLIB}/ -name '*.run' | xargs -r chmod 0755
|
2011-09-19 16:47:12 +02:00
|
|
|
%fdupes %{buildroot}${LSPLIB}/
|
2007-01-16 00:07:22 +01:00
|
|
|
%find_lang clisp
|
|
|
|
%find_lang clisplow clisp.lang
|
|
|
|
|
|
|
|
%files -f clisp.lang
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc %{_docdir}/clisp/
|
2007-12-17 22:07:34 +01:00
|
|
|
%{_bindir}/clisp
|
2010-07-19 20:27:20 +02:00
|
|
|
%{_bindir}/clisp-link
|
2007-12-17 22:07:34 +01:00
|
|
|
%{_libdir}/clisp-%{version}/
|
2010-07-19 20:27:20 +02:00
|
|
|
%{_datadir}/aclocal/clisp.m4
|
2007-12-17 22:07:34 +01:00
|
|
|
%{_datadir}/emacs/site-lisp/clhs.el
|
|
|
|
%{_datadir}/emacs/site-lisp/clisp-coding.el
|
|
|
|
%{_datadir}/emacs/site-lisp/clisp-ffi.el
|
|
|
|
%{_datadir}/emacs/site-lisp/clisp-indent.el
|
|
|
|
%{_datadir}/emacs/site-lisp/clisp-indent.lisp
|
2008-01-30 18:02:03 +01:00
|
|
|
# Do not touch this but wait on check in of new vim!!!
|
|
|
|
%{vimdir}/lisp.vim
|
2007-01-16 00:07:22 +01:00
|
|
|
%doc %{_mandir}/man1/clisp.1.gz
|
2010-07-19 20:27:20 +02:00
|
|
|
%doc %{_mandir}/man1/clisp-link.1.gz
|
2007-01-16 00:07:22 +01:00
|
|
|
|
2007-04-23 23:13:53 +02:00
|
|
|
%changelog
|