Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37832632
en ru br
ALT Linux repos
S:0.92.3-alt5
5.0: 0.17.3-alt2
4.1: 0.16.2-alt2.1
4.0: 0.16.2-alt2.1
3.0: 0.16.2-alt2

Group :: Development/Other
RPM: librep

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# vim: set ft=spec: -*- rpm-spec -*-

%define platform %(%_datadir/automake/config.sub %_target_platform | sed -e 's,-%_vendor,,')

Name: librep
Version: 0.17.3
Release: alt2

Summary: An embeddable LISP environment
License: GPL
Group: Development/Other
Url: http://librep.sourceforge.net/

Packager: Sir Raorn <raorn at altlinux.ru>

Provides: %_datadir/rep/%version/lisp
Provides: %_datadir/rep/site-lisp
Provides: %_libexecdir/rep/%version/%platform
Provides: %_libexecdir/rep/%platform

Source: %name-%version.tar
Patch: %name-%version-%release.patch

# Automatically added by buildreq on Fri Dec 26 2008

BuildRequires: libffi-devel libgdbm-devel libgmp-devel libncurses-devel libreadline-devel

%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 devel
Summary: librep include files and link libraries
Group: Development/Other
Requires: %name = %version-%release

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

%prep
%setup -q
%patch -p1
cp -pfv %_datadir/automake/config.{guess,sub} .

%build
%autoreconf
%configure --with-readline --with-ffi --with-extra-cflags=-fstrength-reduce
# Fix platform name
sed -ie 's,^host_type=.*$,host_type=%platform,g' librep.pc
%make_build host_type=%platform

%install
%make_build install host_type=%platform DESTDIR=%buildroot
mkdir -p %buildroot%_datadir/rep/site-lisp

mkdir -p %buildroot%_rpmlibdir
cat <<EOF >%buildroot%_rpmlibdir/librep-files.req.list
# librep dirlist for %_rpmlibdir/files.req
%_datadir/rep/%version/lisp librep
%_datadir/rep/site-lisp librep
%_libexecdir/rep/%version/%platform librep
%_libexecdir/rep/%platform librep
EOF

%post
%install_info librep.info

%preun
%uninstall_info librep.info

%files
%doc AUTHORS BUGS README THANKS TODO TREE
%_bindir/rep
%_bindir/rep-remote
%_libdir/librep.so.*
%dir %_datadir/rep
%dir %_datadir/rep/%version
%dir %_datadir/rep/%version/lisp
%dir %_datadir/rep/site-lisp
%_datadir/rep/%version/lisp/*
%dir %_libexecdir/rep
%dir %_libexecdir/rep/%version
%dir %_libexecdir/rep/%version/%platform
%dir %_libexecdir/rep/%platform
%_libexecdir/rep/%version/%platform/*
%_rpmlibdir/librep-files.req.list
%_infodir/librep*

%files devel
%doc ChangeLog HACKING doc/*
%_bindir/rep-config
%_bindir/rep-xgettext
%_bindir/repdoc
%_libdir/librep.so
%_includedir/*
%_pkgconfigdir/*
%_libexecdir/rep/%platform/*

%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