File librep.spec of Package librep
# spec file for package librep (version 0.17)
#
# Copyright (c) 2007 JP Rosevear <jpr@novell.com>
# Copyright (c) 20007 John Harper <john@dcs.warwick.ac.uk>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# please send bugfixes or comments to gnome-maintainers@suse.de
#
# norootforbuild
# Version is not allow to have a '-' so use macros to expand everything correctly
%define nominalversion 0.17
%define datestamp 20071102
BuildRequires: gmp-devel gdbm-devel readline-devel texinfo
Name: librep
Version: %{nominalversion}cvs%{datestamp}
Release: 1
Summary: An embeddable LISP environment
License: GPL
Group: Development/Languages
Source: http://download.sourceforge.net/librep/librep-%{nominalversion}-%{datestamp}.tar.bz2
URL: http://librep.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: /sbin/install-info
Requires: gdbm >= 1.8
%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 and Scheme.
%package -n librep9
Summary: librep include files and link libraries
Group: Development/Languages
Requires: %{name} >= %{version}
%description -n librep9
Link libraries and C header files for librep development.
%package devel
Summary: librep include files and link libraries
Group: Development/Languages
Requires: %{name} = %{version} librep9 = %{version}
%description devel
Link libraries and C header files for librep development.
%prep
%setup -n %{name}-%{nominalversion}-%{datestamp}
%build
LC_ALL=""
LINGUAS=""
LANG=""
export LC_ALL LINGUAS LANG
%configure --with-readline --with-extra-cflags=-fstrength-reduce
%__make host_type=%{_target_platform}
%install
%makeinstall \
host_type=%{_target_platform} \
aclocaldir=%{_datadir}/aclocal \
infodir=%{_infodir}
gzip -9nf $RPM_BUILD_ROOT%{_infodir}/librep*
%post
/sbin/ldconfig
/sbin/install-info %{_infodir}/librep.info.gz %{_infodir}/dir
%preun
if [ "$1" = 0 ]; then
/sbin/install-info --delete %{_infodir}/librep.info.gz %{_infodir}/dir
fi
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc NEWS README THANKS TODO BUGS
%{_bindir}/rep
%{_bindir}/rep-remote
%{_datadir}/rep/%{nominalversion}
%{_libexecdir}/rep/%{nominalversion}/%{_target_platform}
%{_infodir}/librep*
%{_datadir}/emacs/site-lisp/rep-*
%files -n librep9
%defattr(-,root,root)
%{_libdir}/librep.so.9*
%files devel
%defattr(-,root,root)
%{_bindir}/rep-config
%{_bindir}/rep-xgettext
%{_bindir}/repdoc
%{_libdir}/librep.so
%{_libdir}/librep.la
%{_includedir}/rep.h
%{_includedir}/rep_*.h
%{_libexecdir}/rep/%{_target_platform}/libtool
%{_libexecdir}/rep/%{_target_platform}/rules.mk
%{_libexecdir}/rep/%{_target_platform}/install-aliases
%{_libexecdir}/rep/%{_target_platform}/rep_config.h
%{_datadir}/aclocal/rep.m4
%changelog