Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37568109
en ru br
ALT Linux repos
S:4.9.4-alt3
5.0: 4.2.9-alt1
4.1: 4.2.5-alt1
4.0: 4.0-alt0.20.2
3.0: 4.0-alt0.14.1

Group :: Development/Other
RPM: gambit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: gambit
Version: 4.2.9
Release: alt1

Summary: Gambit-C Scheme programming system
License: Apache-2.0
Group: Development/Other
URL: http://www.iro.umontreal.ca/~gambit/

Packager: Alexey Voinov <voins at altlinux.ru>

Source: %name-%version.tar
Source1: gambc.README.ALT
Source2: gambit.alternatives

Patch: %name-%version-alt-so.patch

# Automatically added by buildreq on Wed Oct 08 2008

BuildRequires: emacs-leim emacs-nox libX11-locales libncurses-devel

BuildPreReq: alternatives

%description
Gambit-C includes a Scheme interpreter and a Scheme compiler which can be used
to build standalone executables. Because the compiler generates portable C
code it is fairly easy to port to any platform with a decent C compiler.

The Gambit-C system conforms to the R4RS and IEEE Scheme standards.  The full
numeric tower is implemented, including: infinite precision integers (bignums),
rationals, inexact reals (floating point numbers), and complex numbers.

%package -n emacs-gambit
Summary: Emacs mode for Gambit-C
Group: Editors
Requires: gambit emacs-common

%description -n emacs-gambit
Emacs mode for running Gambit-C




%prep
%setup -q
%patch -p1
touch -r gsi/_gsi.scm gsi/main.scm

cp %SOURCE1 ./README.ALT

%build
./configure                       \
--prefix=%_libdir/%name   \
--enable-single-host --enable-shared
%make_build
emacs -q -no-site-file -batch -eval "(byte-compile-file \"misc/gambit.el\")"

%install
make install \
    prefix=$RPM_BUILD_ROOT%_libdir/%name \
    bindir=$RPM_BUILD_ROOT%_bindir \
    includedir=$RPM_BUILD_ROOT%_includedir \
    emacsdir=$RPM_BUILD_ROOT%_datadir/emacs/site-lisp \
    infodir=$RPM_BUILD_ROOT%_infodir

mv $RPM_BUILD_ROOT%_bindir/gsc $RPM_BUILD_ROOT%_bindir/gambsc
rm -rf $RPM_BUILD_ROOT%_bindir/gsc-script
ln -s gambsc $RPM_BUILD_ROOT%_bindir/gsc-script
rm -rf $RPM_BUILD_ROOT%_libdir/%name/current/doc
mkdir $RPM_BUILD_ROOT%_libdir/%name/current/bin
ln -s ../../../../bin/gsc-cc-o.bat $RPM_BUILD_ROOT%_libdir/%name/current/bin/
mv $RPM_BUILD_ROOT%_libdir/%name/current/lib/lib*.so $RPM_BUILD_ROOT%_libdir

for f in $RPM_BUILD_ROOT%_bindir/scheme-*; do
   mv $f $f-%name
done
rm examples/*/makefile*
install -m644 misc/*.el* %buildroot%_emacslispdir/

install -d $RPM_BUILD_ROOT%_altdir
install -m644 %SOURCE2 $RPM_BUILD_ROOT%_altdir/%name

%post
%install_info gambit-c.info
%register_alternatives %name
%post_ldconfig

%postun -p %postun_ldconfig

%preun
%uninstall_info gambit-c.info
%unregister_alternatives %name

%files
%doc doc/gambit-c.pdf doc/gambit-c.txt doc/gambit-c.html
%doc examples/* README.ALT
%_altdir/*
%_bindir/*
%_infodir/*.info*
%_includedir/*
%_libdir/*

%files -n emacs-gambit
%_emacslispdir/*


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin