SLIB problems.

tjoen tjoen at dds.nl
Sat Mar 23 13:49:11 EDT 2013


john Culleton schreef op za 23-03-2013 om 13:34 [-0400]:
> Having trouble compiling on my Slackware 14 Linux system. It seems
> that there needs to be a library or directory called SLIB. I have tried
> downloading it and putting it in various locations.  No luck. 
> Anyone have a guide to where to put SLIB and what it is supposed
> to have in it? My system is 64 bit. 

This is my .spec file (unimportant lines snipped):
(forgot why I did it this way, possible the "make install"
didn't work as I wanted)
...
Version: 3b3
...
Source0: ftp://swiss.csail.mit.edu/pub/scm/slib-%{version}.zip
...

%prep
%setup0 -q -n %{name}
for i in *; do
  sed -s "s,/usr/local/lib,/usr/share,g" < ${i} > ${i}.orig
  sed -s "s,/usr/lib,/usr/share,g" < ${i}.orig > ${i}
  sed -s "s,/usr/local,/usr,g" < ${i} > ${i}.orig
  mv ${i}.orig ${i}
done

%build
makeinfo slib.texi --no-warn --no-split -o slib-3b3.info
if [ -f prevdocs/slib.info ];\
  then infobar prevdocs/slib.info slib-3b3.info \
	slib.info;\
  else cp slib-3b3.info slib.info;fi

%install
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
mkdir -p $RPM_BUILD_ROOT/usr/share/slib/
mkdir -p $RPM_BUILD_ROOT/usr/bin/
mkdir -p $RPM_BUILD_ROOT/usr/share/info/
echo '#! /bin/sh'			     > slib-script
echo SCHEME_LIBRARY_PATH=/usr/share/slib/      >> slib-script
echo S48_VICINITY=/usr/share/scheme48/		    >> slib-script
echo VERSION=3b3			    >> slib-script
echo export SCHEME_LIBRARY_PATH S48_VICINITY>> slib-script
cat slib.sh			>> slib-script
install slib-script $RPM_BUILD_ROOT/usr/bin/slib
rm slib-script
echo "(require 'macros-that-work)" > collect.sc
echo "(require 'pprint-file)" >> collect.sc
echo "(require 'yasos)" >> collect.sc
echo \
"(pprint-filter-file \"collect.scm\" macwork:expand \"collectx.scm\")" \
  >> collect.sc
echo "(slib:exit #t)" >> collect.sc
install -m 644 *.init *.use *.scm *.sh *.ps *.nsi configure *.xyz \
  *.txt *.dat \
  $RPM_BUILD_ROOT/usr/share/slib/
install -m 644 slib.info $RPM_BUILD_ROOT/usr/share/info/slib.info
install -m 644 slib.1 $RPM_BUILD_ROOT/usr/share/man/man1/

...

%post
/sbin/install-info /usr/share/info/slib.info.gz /usr/share/info/dir
cd /usr/share/slib/
if type scm; then scm -c "(require 'new-catalog)"; fi
if type guile; then guile -l guile.init -c\
  "(use-modules (ice-9 slib)) (require 'new-catalog)"; fi
if type umb-scheme; then\
  SCHEME_INIT=umbscheme.init;export SCHEME_INIT;\
  echo "(require 'new-catalog)" | umb-scheme; fi
if type mzscheme; then\
  SCHEME_LIBRARY_PATH=`pwd`/;export SCHEME_LIBRARY_PATH;\
  cp mkpltcat.scm `mzscheme -mf mzscheme.init -e
'(begin(display(implementation-vicinity))(exit))'`mkimpcat.scm;\
  mzscheme -g -f mzscheme.init -e "(require 'new-catalog)"</dev/null; fi

%files
%defattr(-, root, root)
/usr/bin/slib
/usr/share/slib
%doc /usr/share/info/slib.info.gz
%doc /usr/share/man/man1/slib.1.gz

%changelog
* Thu Dec 16 2010 tjoen
- 3b3





More information about the gnucash-user mailing list