Name: slib Version: 3b4 Release: 3mamba Summary: platform independent library for scheme Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://people.csail.mit.edu/jaffer/SLIB.html Source: http://groups.csail.mit.edu/mac/ftpdir/scm/slib-%{version}.zip Patch0: slib-3b4-texinfo-5.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: umb-scheme ## AUTOBUILDREQ-END Requires(post): umb-scheme Requires(post): %{__install_info} Requires(post): libguile1 %description "SLIB" is a portable library for the programming language Scheme. It provides a platform independent framework for using "packages" of Scheme procedures and syntax. As distributed, SLIB contains useful packages for all Scheme implementations. Its catalog can be transparently extended to accomodate packages specific to a site, implementation, user, or directory. %prep %setup -q -n %{name} %patch0 -p1 touch collectx.scm #sed -i "s|/usr/lib/slib|%{_datadir}/slib|" * #sed -i "s|/usr/lib/umb-scheme|%{_datadir}/umb-scheme|" * %build ./configure \ --prefix=%{_prefix} \ --libdir=%{_datadir} \ --mandir=%{_mandir} %make #gzip -9nf slib.info %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall INSTALL_INFO=/sbin/install-info # Guile specific mkdir -p %{buildroot}%{_datadir}/guile/site ln -s %{_datadir}/slib %{buildroot}%{_datadir}/guile/site/slib #mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/slib #mkdir -p ${RPM_BUILD_ROOT}%{_bindir} #cp *.scm *.init *.xyz *.txt grapheps.ps Makefile ${RPM_BUILD_ROOT}%{_datadir}/slib #mkdir -p ${RPM_BUILD_ROOT}%{_infodir} #install -m644 slib.info.gz ${RPM_BUILD_ROOT}%{_infodir} #make prefix=${RPM_BUILD_ROOT}%{_prefix}/ \ # man1dir=${RPM_BUILD_ROOT}%{_mandir}/man1/ \ # infodir=${RPM_BUILD_ROOT}%{_infodir}/ \ # pinstall #echo '#! /bin/sh' > ${RPM_BUILD_ROOT}%{_bindir}/slib #echo SCHEME_LIBRARY_PATH=%{_datadir}/slib/ >> ${RPM_BUILD_ROOT}%{_bindir}/slib #echo export SCHEME_LIBRARY_PATH >> ${RPM_BUILD_ROOT}%{_bindir}/slib #echo VERSION=%{version} >> ${RPM_BUILD_ROOT}%{_bindir}/slib #echo "S48_VICINITY=\"%{_datadir}/scheme48\";export S48_VICINITY" >> ${RPM_BUILD_ROOT}%{_bindir}/slib #cat slib.sh >> ${RPM_BUILD_ROOT}%{_bindir}/slib #chmod +x ${RPM_BUILD_ROOT}%{_bindir}/slib #echo "srcdir = %{_datadir}/slib/" > %{buildroot}%{_datadir}/slib/srcdir.mk %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post if [ $1 -ge 1 ]; then # Rebuild catalogs for as many implementations as possible. # FIXME: make catalogs has errors; making it silent %install_info %{name}.info # creates /usr/share/guile/site/2.0/slibcat mkdir -p %{_datadir}/guile/1.8 guile1 -c "(use-modules (ice-9 slib)) (require 'new-catalog)" &>/dev/null || true fi exit 0 %preun %install_info %{name}.info exit 0 %files %defattr(-, root, root) %{_bindir}/slib %dir %{_datadir}/slib %{_datadir}/slib/* %{_datadir}/guile/site/slib %{_infodir}/slib.info.gz %{_mandir}/man1/slib.1.gz %doc COPYING #%doc ANNOUNCE README FAQ ChangeLog %changelog * Wed Oct 30 2013 Silvan Calarco 3b4-3mamba - revert to guile1 for gnucash to work * Wed Jun 19 2013 Silvan Calarco 3b4-2mamba - add symlink in guile site directory - run guile use-modules to create slibcat catalog * Fri Jun 14 2013 Automatic Build System 3b4-1mamba - automatic version update by autodist * Wed Feb 06 2013 Silvan Calarco 3b3-2mamba - post script: fix path to cd into * Sat Aug 04 2012 Automatic Build System 3b3-1mamba - automatic version update by autodist * Thu Sep 16 2010 Silvan Calarco 3b2-2mamba - fixed prefix variable in make install - fixed installation of info files as reported by autospec - fixed installation patch for man pages * Wed Aug 13 2009 Ercole 'ercolinux' Carpanetto 3b2-1mamba - update to 3b2 - added a simlink to /usr/share/slib/mklibcat.scm as mklibcat to avoid a bug in gnucash * Mon Dec 03 2007 Silvan Calarco 3a4-2mamba - pre-require umb-scheme needed for making catalog * Tue Nov 06 2007 Silvan Calarco 3a4-1mamba - update to 3a4 * Tue Jun 07 2005 Alessandro Ramazzina 3a1-2qilnx - rebuild and moved from devel-contrib repository to devel repository * Tue Oct 26 2004 <> %{version}-%{release} - First Build