1c18fd0
Summary:      platform independent library for scheme
1c18fd0
Name:         slib
a57256d
Version:      3a3
a57256d
Release:      1
1c18fd0
License:      SLIB
1c18fd0
Group:        Development/Languages
1c18fd0
BuildArch:    noarch
1c18fd0
Source0:      ftp://swissnet.ai.mit.edu/pub/scm/slib%{version}.zip
1c18fd0
Source1:      slibcat
1c18fd0
URL:          http://swissnet.ai.mit.edu/~jaffer/SLIB.html
1c18fd0
BuildRoot:    %{_tmppath}/%{name}-%{version}-root
a57256d
Requires(post): /sbin/install-info
a57256d
Requires(postun): /sbin/install-info
1c18fd0
1c18fd0
%description
1c18fd0
"SLIB" is a portable library for the programming language Scheme.
1c18fd0
It provides a platform independent framework for using "packages" of
1c18fd0
Scheme procedures and syntax.  As distributed, SLIB contains useful
1c18fd0
packages for all Scheme implementations.  Its catalog can be
a57256d
transparently extended to accommodate packages specific to a site,
1c18fd0
implementation, user, or directory.
1c18fd0
1c18fd0
%prep
1c18fd0
%setup -q -n %{name}
f3ef732
for i in *; do
869c7fa
  sed -e "s,/usr/local/lib,%{_datadir},g" \
869c7fa
      -e "s,/usr/lib,%{_datadir},g" \
869c7fa
      -e "s,/usr/local,/usr,g" < "${i}" > "${i}.tmp"
869c7fa
  mv "${i}.tmp" "${i}"
f3ef732
done
1c18fd0
1c18fd0
%build
1c18fd0
gzip -9nf slib.info
1c18fd0
1c18fd0
%install
1c18fd0
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/slib
6454fbd
cp *.scm *.init *.xyz *.txt ${RPM_BUILD_ROOT}%{_datadir}/slib
1c18fd0
mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
a57256d
sed 's|_slibdir_|%{_datadir}/slib|' < %{SOURCE1} \
a57256d
    > ${RPM_BUILD_ROOT}%{_datadir}/slib/slibcat
1c18fd0
install -m644 slib.info.gz ${RPM_BUILD_ROOT}%{_infodir}
1c18fd0
1c18fd0
%clean
1c18fd0
rm -rf ${RPM_BUILD_ROOT}
1c18fd0
a57256d
%post
a57256d
/sbin/install-info %{_infodir}/slib.info.gz %{_infodir}/dir
a57256d
a57256d
%preun
a57256d
if [ "$1" = 0 ]; then
a57256d
    /sbin/install-info --delete %{_infodir}/slib.info.gz %{_infodir}/dir
a57256d
fi
a57256d
1c18fd0
%files
1c18fd0
%defattr(-,root,root)
1c18fd0
%dir %{_datadir}/slib
a57256d
%doc ANNOUNCE README COPYING FAQ ChangeLog
1c18fd0
%{_datadir}/slib/*
a57256d
%{_infodir}/slib.info.gz
1c18fd0
1c18fd0
%changelog
a57256d
* Tue May 09 2006 Miroslav Lichvar <mlichvar@redhat.com> 3a3-1
a57256d
- update to slib3a3
a57256d
- install info, remove html
a57256d
- fix typo in description (#189650)
a57256d
869c7fa
* Mon Feb 27 2006 Miroslav Lichvar <mlichvar@redhat.com> 3a1-6
869c7fa
- spec cleanup
869c7fa
fd7ac32
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
fd7ac32
- rebuilt
fd7ac32
4df2211
* Thu Sep  8 2005 Jindrich Novy <jnovy@redhat.com> 3a1-5
6454fbd
- regenerate slibcat to remove all links to umb-scheme
6454fbd
  to make gnucash work with slib
6454fbd
- don't ship slib.spec from the upstream tarball
6454fbd
- replace bogus links to /usr/lib
6454fbd
- don't ship unneeded files in slib directory
6454fbd
- add slib html documentation
6454fbd
4df2211
* Thu Sep 08 2005 Florian La Roche <laroche@redhat.com> 3a1-4
Florian La Roche 5cfd049
- no need to provide slib for this package
Florian La Roche 5cfd049
f3ef732
* Tue Sep  6 2005 Jindrich Novy <jnovy@redhat.com> 3a1-3
f3ef732
- use _datadir instead of /usr/local/lib and don't use
f3ef732
  /usr/local prefix (#167490)
f3ef732
98e7c81
* Wed Dec  8 2004 Jindrich Novy <jnovy@redhat.com> 3a1-2
98e7c81
- remove symlinks creation for guile, it's done by guile itself
98e7c81
98e7c81
* Wed Oct  6 2004 Jindrich Novy <jnovy@redhat.com> 3a1-1
1c18fd0
- new package
1c18fd0
- original spec file from R. J. Meier and Radey Shouman