Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37561067
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.92.3
Release: alt2.git20120908.1

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

Provides: %_datadir/rep/%version/lisp
Provides: %_datadir/rep/site-lisp
Provides: %_libdir/rep/%version/%platform
Provides: %_libdir/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
# explicitly added texinfo for info files
BuildRequires: texinfo

%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
%add_optflags -fgnu89-inline
%autoreconf
%configure \
--disable-static \
--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
find %buildroot%_libdir/rep -type f -name '*.la' -delete

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

%files
%doc ChangeLog COPYING MAINTAINERS README TODO
%_bindir/rep
%_bindir/rep-remote
%_libdir/librep.so.*
%dir %_datadir/rep
%dir %_datadir/rep/lisp
%dir %_datadir/rep/site-lisp
%_datadir/rep/lisp/*
%dir %_libdir/rep
%_libdir/rep/rep
%_libdir/rep/*.so
%_libdir/rep/emulate-gnu-tar
%_libdir/rep/doc-strings
%_rpmlibdir/librep-files.req.list
%_man1dir/rep.1*
%_man1dir/rep-remote.1*
%_infodir/librep*
%_emacslispdir/rep-debugger.el

%files devel
%doc doc/*
%_bindir/rep-xgettext
%_bindir/repdoc
%_libdir/librep.so
%_includedir/*
%_pkgconfigdir/*
%_libdir/rep/install-aliases
%_libdir/rep/libtool
%_libdir/rep/rules.mk
%_man1dir/rep-xgettext.1*
%_man1dir/repdoc.1*

%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