aboutsummaryrefslogtreecommitdiffstats
path: root/slib.spec
diff options
context:
space:
mode:
Diffstat (limited to 'slib.spec')
-rw-r--r--slib.spec77
1 files changed, 40 insertions, 37 deletions
diff --git a/slib.spec b/slib.spec
index 558596a..8526d9d 100644
--- a/slib.spec
+++ b/slib.spec
@@ -1,6 +1,8 @@
+%define slibdir %{_prefix}/lib/slib
+
Summary: platform independent library for scheme
Name: slib
-Version: 3b1
+Version: 3b5
Release: 1
Group: Development/Languages
BuildArch: noarch
@@ -10,8 +12,8 @@ License: distributable, see individual files for copyright
Vendor: Aubrey Jaffer <agj @ alum.mit.edu>
Provides: slib
-Source: ftp://swiss.csail.mit.edu/pub/scm/slib-%{version}.zip
-URL: http://swiss.csail.mit.edu/~jaffer/SLIB.html
+Source: http://groups.csail.mit.edu/mac/ftpdir/scm/slib-%{version}.zip
+URL: http://people.csail.mit.edu/jaffer/SLIB.html
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@@ -23,78 +25,79 @@ transparently extended to accomodate packages specific to a site,
implementation, user, or directory.
%prep
-%setup -q -n %{name}
-for i in *; do
- cp -f ${i} ${i}.orig
- sed -s "s,/usr/local/lib,%{_datadir},g" < ${i} > ${i}.orig
- sed -s "s,/usr/lib,%{_datadir},g" < ${i}.orig > ${i}
- sed -s "s,/usr/local,/usr,g" < ${i}.orig > ${i}
- rm -f ${i}.orig
-done
+%setup -n slib -c -T
+cd ..
+unzip ${RPM_SOURCE_DIR}/slib-%{version}.zip
+# cd slib
+# ./configure --prefix=${RPM_BUILD_ROOT}%{_prefix}/ \
+# --mandir=${RPM_BUILD_ROOT}%{_mandir}/ \
+# --infodir=${RPM_BUILD_ROOT}%{_infodir}/
%build
-gzip -9nf slib.info
%install
-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}/ \
+# mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
+# mkdir -p ${RPM_BUILD_ROOT}%{slibdir}
+# cp *.scm *.init *.xyz *.txt grapheps.ps Makefile ${RPM_BUILD_ROOT}%{slibdir}
+make prefix=${RPM_BUILD_ROOT}%{_prefix}/ \
mandir=${RPM_BUILD_ROOT}%{_mandir}/ \
infodir=${RPM_BUILD_ROOT}%{_infodir}/ \
- pinstall
+ install
echo '#! /bin/sh' > ${RPM_BUILD_ROOT}%{_bindir}/slib
-echo SCHEME_LIBRARY_PATH=%{_datadir}/slib/ >> ${RPM_BUILD_ROOT}%{_bindir}/slib
+echo SCHEME_LIBRARY_PATH=%{slibdir}/ >> ${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
+echo "S48_VICINITY=\"%{slibdir}/scheme48\";export S48_VICINITY" >> ${RPM_BUILD_ROOT}%{_bindir}/slib
cat slib.sh >> ${RPM_BUILD_ROOT}%{_bindir}/slib
chmod +x ${RPM_BUILD_ROOT}%{_bindir}/slib
%clean
rm -rf ${RPM_BUILD_ROOT}
%post
-# /sbin/install-info ${RPM_BUILD_ROOT}%{_infodir}/slib.info.gz %{_infodir}/dir
+# /sbin/ginstall-info ${RPM_BUILD_ROOT}%{_infodir}/slib.info.gz %{_infodir}/dir
# This symlink is made as in the spec file of Robert J. Meier.
if [ -L /usr/share/guile/slib ]; then
rm /usr/share/guile/slib
- ln -s %{_datadir}/slib /usr/share/guile/slib
+ ln -s %{slibdir} /usr/share/guile/slib
fi
# Rebuild catalogs for as many implementations as possible.
export PATH=$PATH:/usr/local/bin
echo PATH=${PATH}
-cd %{_datadir}/slib/
+cd %{slibdir}/
make catalogs
# %postun
# if [ $1 = 0 ]; then
-# /sbin/install-info --delete %{_infodir}/slib.info.gz %{_infodir}/dir
+# /sbin/ginstall-info --delete %{_infodir}/slib.info.gz %{_infodir}/dir
# fi
%preun
-cd %{_datadir}/slib/
+cd %{slibdir}/
rm -f slib.image
%files
%defattr(-, root, root)
%{_bindir}/slib
-%dir %{_datadir}/slib
-%{_datadir}/slib/*.scm
-%{_datadir}/slib/*.init
-%{_datadir}/slib/cie1931.xyz
-%{_datadir}/slib/cie1964.xyz
-%{_datadir}/slib/nbs-iscc.txt
-%{_datadir}/slib/saturate.txt
-%{_datadir}/slib/resenecolours.txt
-%{_datadir}/slib/grapheps.ps
-%{_datadir}/slib/Makefile
+%dir %{slibdir}
+%{slibdir}/*.scm
+%{slibdir}/*.sh
+%{slibdir}/*.init
+%{slibdir}/cie*.xyz
+%{slibdir}/cie*.dat
+%{slibdir}/nbs-iscc.txt
+%{slibdir}/saturate.txt
+%{slibdir}/resenecolours.txt
+%{slibdir}/grapheps.ps
+%{slibdir}/Makefile
+%{slibdir}/configure
+%{slibdir}/guile.use
+%{slibdir}/slib.*
%{_infodir}/slib.info.gz
-# %{_mandir}/man1/slib.1.gz
+%{_infodir}/dir
+%{_mandir}/man1/slib.1.gz
%doc ANNOUNCE README COPYING FAQ ChangeLog
%changelog