
%define nam	librep
%define ver	@version@
%define rel	1

Summary: embeddable LISP environment
Name: %{nam}
Version: %{ver}
Release: %{rel}
Copyright: GPL
Group: Development/Languages
Source: ftp://ftp.dcs.warwick.ac.uk/people/John.Harper/librep/librep-%{ver}.tar.gz
URL: http://www.dcs.warwick.ac.uk/~john/sw/librep.html
Packager: John Harper <john@dcs.warwick.ac.uk>
Buildroot: /var/tmp/%{nam}-root

%description
This is a lightweight LISP environment for UNIX. It contains a LISP
interpreter, byte-code compiler and virtual machine. Applications may
use the LISP interpreter as an extension language, or it may be used
for standalone scripts.

Originally inspired by Emacs Lisp, the language dialect combines many
of the elisp features while trying to remove some of the main
deficiencies, with features from Common Lisp.

%package devel
Summary: librep include files and link libraries
Group: Development/Languages
Requires: %{nam}

%description devel
Link libraries and C header files for librep development.

%prep
%setup

%build
./configure --with-readline --prefix %{_prefix} %{_host}
make CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
make install \
    prefix=$RPM_BUILD_ROOT%{_prefix} \
    aclocaldir=$RPM_BUILD_ROOT%{_prefix}/share/aclocal
gzip -9nf $RPM_BUILD_ROOT%{_prefix}/info/librep*

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc NEWS README THANKS etc/TODO
%{_prefix}/bin/rep
%{_prefix}/bin/rep-remote
%{_prefix}/lib/librep.so.*
%{_prefix}/share/rep/%{ver}/lisp/*.jl
%{_prefix}/share/rep/%{ver}/lisp/*.jlc
%{_prefix}/share/rep/%{ver}/DOC.*
%{_prefix}/libexec/rep/%{ver}/%{_host}/lib*.so*
%{_prefix}/libexec/rep/%{ver}/%{_host}/lib*.la
%{_prefix}/info/librep*

%files devel
%{_prefix}/bin/rep-config
%{_prefix}/bin/rep-xgettext
%{_prefix}/bin/repdoc
%{_prefix}/lib/librep.a
%{_prefix}/lib/librep.so
%{_prefix}/include/rep.h
%{_prefix}/include/rep_*.h
%{_prefix}/libexec/rep/%{_host}/libtool
%{_prefix}/libexec/rep/%{_host}/rules.mk
%{_prefix}/share/aclocal/rep.m4

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%changelog
* Wed Nov 10 1999 Michael K. Johnson <johnsonm@redhat.com>
- post{,un} use -p

* Mon Sep 13 1999 Aron Griffis <agriffis@bigfoot.com>
- 0.5 spec file update: added buildroot
