Репозиторий Sisyphus
Последнее обновление: 10 декабря 2019 | Пакетов: 17494 | Посещений: 16052013
en ru br
Репозитории ALT

Группа :: Разработка/Lisp
Пакет: cmucl

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

#define pre_tag pre1

#define pre -%%pre_tag

Summary: CMU Common Lisp compiler
Name: cmucl
Version: 20b
Release: alt3
Packager: Ilya Mashkin <oddity at altlinux.ru>
License: BSD
Group: Development/Lisp
Url: http://www.cons.org/cmucl/
Source0: http://common-lisp.net/project/cmucl/downloads/release/%version%{?pre:/pre-release}/cmucl-src-%version%{?pre}.tar.bz2
#Source1: http://common-lisp.net/project/cmucl/downloads/release/%version%{?pre:/pre-release}/cmucl-src-%version%{?pre}.tar.bz2.asc

# bootstrap available for %%ix86 only: http://bugzilla.redhat.com/185085

ExclusiveArch: %ix86

Source10: http://common-lisp.net/project/cmucl/downloads/release/20b/cmucl-20b-x86-linux.tar.bz2
Source11: http://common-lisp.net/project/cmucl/downloads/release/20b/cmucl-20b-x86-linux.tar.bz2.asc

## ix86 section

%ifarch %ix86
%define cmucl_arch x86
#define bootstrap cmucl
%if "%{?bootstrap}" == "%nil"
%define bootstrap_src -a 10
BuildRequires: cmucl = 20b
%define bootfile -B bootstrap.lisp

## x86_64 section

#ifarch x86_64

## ppc

#ifarch ppc

BuildRequires: bc
BuildRequires: gettext
BuildRequires: sed
BuildRequires: time
BuildRequires: lesstif-devel gcc4.5

CMUCL is a free, high performance implementation of the Common Lisp
programming language which runs on most major Unix platforms. It
mainly conforms to the ANSI Common Lisp standard. CMUCL provides a
sophisticated native code compiler; a powerful foreign function
interface; an implementation of CLOS, the Common Lisp Object System,
which includes multimethods and a metaobject protocol; a source-level
debugger and code profiler; and an Emacs-like editor implemented in
Common Lisp. CMUCL is maintained by a team of volunteers collaborating
over the Internet, and is mostly in the public domain.

%package extras
Summary: Extra tools and libraries for CMU Common Lisp
Group: Development/Lisp
Requires: %name = %version-%release
%description extras

%setup -q -c %name-%version %{?bootstrap_src}

export CC=gcc-4.5 CXX=g++-4.5


%if 0%{?bootfile:1}
pushd src/bootfiles/19e
cat \
 boot-2008-04-1.lisp \
 boot-2008-06-1.lisp \
 boot-2008-12.lisp \
 boot-2009-01-1.lisp \
 boot-19f.lisp \
> bootstrap.lisp

%if 1
## Simple build method

./src/tools/build.sh \
 -b %_target_platform \
 %{?bootfile} \
 -C "linux_gencgc %cmucl_arch" \
 -f x87 \
 -v "%version ALT Linux release %release" \
 %{!?bootstrap:-o "bin/lisp -noinit -batch -fpu x87"}

./src/tools/build.sh \
 -b %_target_platform \
 %{?bootfile} \
 -C "linux_gencgc %cmucl_arch" \
 -f sse2 \
 -v "%version ALT Linux release %release" \
 %{!?bootstrap:-o "bin/lisp -noinit -batch -fpu sse2"}

# make binary dist archives

./src/tools/make-dist.sh %_target_platform-4 %version %cmucl_arch linux

## OLD complicated build method (but needed sometimes, e.g. cross-compiling)

# Create target buildroot

./src/tools/create-target.sh %_target_platform linux_gencgc %cmucl_arch
# Use binary-dist lisp to create initial kernel.core
./src/tools/build-world.sh %_target_platform %{!?bootstrap:bin/lisp}
# build native lisp binary
./src/tools/rebuild-lisp.sh %_target_platform
# Generate lisp.core
./src/tools/load-world.sh %_target_platform "%version ALT Linux release %release"
# rebuild kernel.core using native lisp
./src/tools/build-world.sh %_target_platform %_target_platform/lisp/lisp
# (Re)generate lisp.core
./src/tools/load-world.sh %_target_platform "%version ALT Linux release %release"
# Build auxilary stuff
./src/tools/build-utils.sh %_target_platform
# make binary dist archives
./src/tools/make-dist.sh %_target_platform %version %cmucl_arch linux


mkdir -p dist
pushd dist
# unarchive newly creating binary dist archives
tar xvjf ../cmucl-%version-%cmucl_arch-linux.tar.bz2
tar xvjf ../cmucl-%version-%cmucl_arch-linux.extra.tar.bz2

mkdir -p %buildroot%prefix/lib/cmucl/
cp -a bin %buildroot%prefix/lib/cmucl/
cp -a lib/cmucl %buildroot%prefix/lib/

mkdir -p %buildroot%_mandir/man1
install -p man/man1/* %buildroot%_mandir/man1/

## Setup app-wrapper

install -m755 -p -D %buildroot%prefix/lib/cmucl/sample-wrapper %buildroot%_bindir/cmucl
# Fixup paths in wrapper
sed -i -e "s|^CMUCLLIB=.*|CMUCLLIB=%prefix/lib/cmucl/lib|" %buildroot%_bindir/cmucl
sed -i -e "s|/<<your-cmucl-path>>|%prefix/lib/cmucl|"      %buildroot%_bindir/cmucl
ln -sf cmucl %buildroot%_bindir/cmulisp
# many apps (ie, maxima) expect to find the wrapper named 'lisp' too
ln -sf cmucl %buildroot%_bindir/lisp

## Unpackaged files

rm -f %buildroot%prefix/lib/cmucl/sample-wrapper

# lisp.core contains environment used to build, including %buildroot


%doc dist/doc/cmucl/README dist/doc/cmucl/release*.txt
%dir %prefix/lib/cmucl
%dir %prefix/lib/cmucl/lib
# %%lang'ize these?  -- Rex
%dir %prefix/lib/cmucl/lib/subsystems

%files extras


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin