File scsh.spec of Package scsh

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

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

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


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


%build
%autoreconf
%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


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


%check
make test


%files
%doc README* doc/*
%_bindir/*
%_libdir/*
%_datadir/%name


%changelog
openSUSE Build Service is sponsored by