Репозиторий Sisyphus
Последнее обновление: 24 октября 2014 | Пакетов: 15793 | Посещений: 5883416
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
%else
BuildRequires: cmucl = 20b
%define bootfile -B bootstrap.lisp
%endif
%endif

## x86_64 section

#ifarch x86_64
#endif

## ppc

#ifarch ppc
#endif

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

%description
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
%summary.

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

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

CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS

%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
popd
%endif

%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

%else
## 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
%endif

%install


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/
popd

## 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

QA_SKIP_BUILD_ROOT=1; export QA_SKIP_BUILD_ROOT

%files
%doc dist/doc/cmucl/README dist/doc/cmucl/release*.txt
%_bindir/cmucl
%_bindir/cmulisp
%_bindir/lisp
%dir %prefix/lib/cmucl
%prefix/lib/cmucl/internals.inc
%prefix/lib/cmucl/bin/
%dir %prefix/lib/cmucl/lib
%prefix/lib/cmucl/lib/lisp-x87.core
%prefix/lib/cmucl/lib/lisp-sse2.core
%prefix/lib/cmucl/lib/load-foreign.csh
# %%lang'ize these?  -- Rex
%prefix/lib/cmucl/lib/locale/
%prefix/lib/cmucl/lib/config
%prefix/lib/cmucl/lib/config.lisp
%prefix/lib/cmucl/lib/contrib/
%prefix/lib/cmucl/lib/ext-formats/
%prefix/lib/cmucl/lib/generic-site.lisp
%prefix/lib/cmucl/lib/linker.sh
%prefix/lib/cmucl/lib/lisp.a
%dir %prefix/lib/cmucl/lib/subsystems
%prefix/lib/cmucl/lib/subsystems/gray-*-library.*
%prefix/lib/cmucl/lib/subsystems/iodefs-library.*
%prefix/lib/cmucl/lib/subsystems/simple-*-library.*
%prefix/lib/cmucl/lisp.nm
%prefix/lib/cmucl/lisp.map
%prefix/lib/cmucl/internals.h
%_mandir/man1/*

%files extras
%prefix/lib/cmucl/lib/subsystems/clx-library.*
%prefix/lib/cmucl/lib/subsystems/hemlock-library.*
%prefix/lib/cmucl/lib/subsystems/clm-library.*
%prefix/lib/cmucl/lib/XKeysymDB
%prefix/lib/cmucl/lib/hemlock11.cursor
%prefix/lib/cmucl/lib/hemlock11.mask
%prefix/lib/cmucl/lib/spell-dictionary.bin
%prefix/lib/cmucl/lib/mh-scan
#prefix/lib/cmucl/lib/motifd

%changelog

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

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