revert to guile1 for gnucash to work [release 3b4-3mamba;Wed Oct 30 2013]

This commit is contained in:
Silvan Calarco 2024-01-05 17:52:38 +01:00
parent 86289ec281
commit 2e4a3f8d5c
3 changed files with 153 additions and 0 deletions

View File

@ -1,2 +1,7 @@
# slib # slib
"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.

11
slib-3b4-texinfo-5.patch Normal file
View File

@ -0,0 +1,11 @@
--- slib.cvs/Makefile 2013-05-09 03:20:10.000000000 +0200
+++ slib/Makefile 2013-06-14 14:47:20.378770336 +0200
@@ -183,7 +183,7 @@
$(MAKEINFO) --html --no-split --no-warn --force $<
slib-$(VERSION).info: slib.texi version.txi $(txifiles) $(texifiles)
- $(MAKEINFO) $< --no-warn --no-split -o slib-$(VERSION).info
+ $(MAKEINFO) --force $< --no-warn --no-split -o slib-$(VERSION).info
slib.info: slib-$(VERSION).info
if [ -f $(prevdocsdir)slib.info ];\
then infobar $(prevdocsdir)slib.info slib-$(VERSION).info \

137
slib.spec Normal file
View File

@ -0,0 +1,137 @@
Name: slib
Version: 3b4
Release: 3mamba
Summary: platform independent library for scheme
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 3b4-3mamba
- revert to guile1 for gnucash to work
* Wed Jun 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3b4-2mamba
- add symlink in guile site directory
- run guile use-modules to create slibcat catalog
* Fri Jun 14 2013 Automatic Build System <autodist@mambasoft.it> 3b4-1mamba
- automatic version update by autodist
* Wed Feb 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3b3-2mamba
- post script: fix path to cd into
* Sat Aug 04 2012 Automatic Build System <autodist@mambasoft.it> 3b3-1mamba
- automatic version update by autodist
* Thu Sep 16 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <ercole69@gmail.com> 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 <silvan.calarco@mambasoft.it> 3a4-2mamba
- pre-require umb-scheme needed for making catalog
* Tue Nov 06 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 3a4-1mamba
- update to 3a4
* Tue Jun 07 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 3a1-2qilnx
- rebuild and moved from devel-contrib repository to devel repository
* Tue Oct 26 2004 <> %{version}-%{release}
- First Build