File scsh.spec of Package scsh

Name: scsh
Version: 0.7
Release: 3
Summary: Unix shell embedded within Scheme
License: BSD
Group: System/Shells
Source: %name.tar.gz
Source1: rx.tar.gz
Requires: scheme48 >= 1.9.2

BuildRequires: autoconf automake
BuildRequires: scheme48 >= 1.9.2
BuildRequires: scsh

Scsh is an open-source Unix shell embedded within Scheme, running on all major
Unix platforms including AIX, Cygwin, Linux, FreeBSD, GNU Hurd, HP-UX, Irix,
Mac OS X, Solaris, and some others.
Scsh is a variant of Scheme 48 (an R5RS compliant new-tech Scheme system) Scsh is
designed for writing real-life standalone Unix programs and shell scripts. Scsh
spans a wide range of application, from "script" applications usually handled
with perl or sh, to more standard systems applications usually written in C.
Scsh has two main components: a process notation for running programs and setting
up pipelines and redirections, and a complete syscall library for low-level
access to the operating system, i.e. to POSIX, the least common denominator of
more or less all Unices, plus widely supported extensions such as symbolic links
and BSD sockets. Moreover, scsh provides an awk facility for pattern-directed
computation over streams of records, a rich facility for matching
regular-expression patterns in strings, event-based interrupt handling,
user-level threads, a futuristic module system, and an interactive environment.
Scsh comes with extensive documentation describing these and other features.

%setup -q -n %name -a1
type scsh >/dev/null 2>&1 || sed -i '/^install-scsh-image:/,/^$/s/\$(LIB)/$(DESTDIR)&/'

%configure --with-scheme48=%_libdir/scheme48
%make_build SCHEME48VM=%_libdir/scheme48/scheme48vm LIB=%_libdir/%name SHARE=%_datadir/%name
install -p -m 0644 rx/README ./README.rx

%make_install SCHEME48VM=%_libdir/scheme48/scheme48vm LIB=%_libdir/%name SHARE=%_datadir/%name

make test

%doc README* doc/*

openSUSE Build Service is sponsored by