summaryrefslogtreecommitdiffstats
path: root/slib.spec
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <tb@debian.org>2005-11-02 14:55:21 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:32 -0800
commit34c54a22ff7818bb8b38ef4d9c87dbbcb221ba73 (patch)
tree1189d06a81277bcf8539b0260a69a19f6038effb /slib.spec
parent611b3db17894e5fdc0db3d49eaf6743d27b44233 (diff)
parent5145dd3aa0c02c9fc496d1432fc4410674206e1d (diff)
downloadslib-34c54a22ff7818bb8b38ef4d9c87dbbcb221ba73.tar.gz
slib-34c54a22ff7818bb8b38ef4d9c87dbbcb221ba73.zip
Import Debian changes 3a2-1debian/3a2-1
slib (3a2-1) unstable; urgency=low * New upstream release. * Acknowledge NMU. (Closes: #281809) * Makefile: Don't hack Makefile; use rules instead. * debian/rules: Set on make invocations: prefix, htmldir, TEXI2HTML. * debian/rules (clean): Clean more stuff here. * Makefile: Comment out old rule for $(htmldir)slib_toc.html. Instead, specify directly that the texi2html invocation produces that file. * debian/rules (binary-indep): Find web files in slib subdir. * debian/control (Build-Depends-Indep): Go back to using scm.
Diffstat (limited to 'slib.spec')
-rw-r--r--slib.spec58
1 files changed, 35 insertions, 23 deletions
diff --git a/slib.spec b/slib.spec
index 4ed4bcd..857e25c 100644
--- a/slib.spec
+++ b/slib.spec
@@ -1,11 +1,11 @@
%define name slib
-%define version 3a1
+%define version 3a2
%define release 1
Name: %{name}
Release: %{release}
Version: %{version}
-Packager: Radey Shouman <shouman@ne.mediaone.net>
+Packager: Aubrey Jaffer <agj@alum.mit.edu>
Copyright: distributable, see individual files for copyright
Vendor: Aubrey Jaffer <agj @ alum.mit.edu>
@@ -14,10 +14,10 @@ Provides: slib
BuildArch: noarch
Summary: platform independent library for scheme
-Source: ftp://swissnet.ai.mit.edu/pub/scm/slib%{version}.zip
-URL: http://swissnet.ai.mit.edu/~jaffer/SLIB.html
+Source: ftp://swiss.csail.mit.edu/pub/scm/slib%{version}.zip
+URL: http://swiss.csail.mit.edu/~jaffer/SLIB.html
BuildRoot: %{_tmppath}/%{name}%{version}
-Prefix: /usr/share
+Prefix: /usr
%description
"SLIB" is a portable library for the programming language Scheme.
@@ -32,19 +32,27 @@ implementation, user, or directory.
%prep
%setup -n slib -c -T
cd ..
-unzip $RPM_SOURCE_DIR/slib%{version}.zip
+unzip ${RPM_SOURCE_DIR}/slib%{version}.zip
%build
gzip -f slib.info
%install
-mkdir -p ${RPM_BUILD_ROOT}%{prefix}/slib
-cp -r . ${RPM_BUILD_ROOT}%{prefix}/slib
+mkdir -p ${RPM_BUILD_ROOT}%{prefix}/lib/slib
+mkdir -p ${RPM_BUILD_ROOT}%{prefix}/bin
+cp -r *.scm *.init *.xyz saturate.txt resenecolours.txt grapheps.ps Makefile ${RPM_BUILD_ROOT}%{prefix}/lib/slib
mkdir -p ${RPM_BUILD_ROOT}/usr/info
cp slib.info.gz ${RPM_BUILD_ROOT}/usr/info
+echo '#! /bin/sh' > ${RPM_BUILD_ROOT}%{prefix}/bin/slib
+echo SCHEME_LIBRARY_PATH=%{prefix}/lib/slib/ >> ${RPM_BUILD_ROOT}%{prefix}/bin/slib
+echo export SCHEME_LIBRARY_PATH >> ${RPM_BUILD_ROOT}%{prefix}/bin/slib
+echo VERSION=%{version} >> ${RPM_BUILD_ROOT}%{prefix}/bin/slib
+echo "S48_VICINITY=\"%{prefix}/lib/scheme48\";export S48_VICINITY" >> ${RPM_BUILD_ROOT}%{prefix}/bin/slib
+cat slib.sh >> ${RPM_BUILD_ROOT}%{prefix}/bin/slib
+chmod +x ${RPM_BUILD_ROOT}%{prefix}/bin/slib
%clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf ${RPM_BUILD_ROOT}
%post
/sbin/install-info /usr/info/slib.info.gz /usr/info/dir
@@ -52,36 +60,40 @@ rm -rf $RPM_BUILD_ROOT
# 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 %{prefix}/slib /usr/share/guile/slib
+ ln -s %{prefix}/lib/slib /usr/share/guile/slib
fi
# Rebuild catalogs for as many implementations as possible.
export PATH=$PATH:/usr/local/bin
echo PATH=${PATH}
-cd %{prefix}/slib/
+cd %{prefix}/lib/slib/
make catalogs
-# Make color-name databases.
-make clrnamdb
%preun
-cd %{prefix}/slib/
-rm -f clrnamdb.scm srcdir.mk slib.image
+cd %{prefix}/lib/slib/
+rm -f srcdir.mk slib.image
%files
%defattr(-, root, root)
-%dir %{prefix}/slib
-%{prefix}/slib/*.scm
-%{prefix}/slib/*.init
-%{prefix}/slib/cie1931.xyz
-%{prefix}/slib/cie1964.xyz
-%{prefix}/slib/saturate.txt
-%{prefix}/slib/resenecolours.txt
+%{prefix}/bin/slib
+%dir %{prefix}/lib/slib
+%{prefix}/lib/slib/*.scm
+%{prefix}/lib/slib/*.init
+%{prefix}/lib/slib/cie1931.xyz
+%{prefix}/lib/slib/cie1964.xyz
+%{prefix}/lib/slib/saturate.txt
+%{prefix}/lib/slib/resenecolours.txt
+%{prefix}/lib/slib/grapheps.ps
/usr/info/slib.info.gz
# The Makefile is included as it is useful for building documentation.
-%{prefix}/slib/Makefile
+%{prefix}/lib/slib/Makefile
%doc ANNOUNCE README COPYING FAQ ChangeLog
%changelog
+* Sat Jun 18 2004 Aubrey Jaffer <agj@alum.mit.edu>
+- Fixed for RPMbuild version 4.3.1
+- Make slib executable.
+
* Wed Mar 14 2001 Radey Shouman <shouman@ne.mediaone.net>
- Adapted from the spec file of R. J. Meier.