diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:31 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:31 -0800 |
commit | 5145dd3aa0c02c9fc496d1432fc4410674206e1d (patch) | |
tree | 540afc30c51da085f5bd8ec3f4c89f6496e7900d /slib.spec | |
parent | 8466d8cfa486fb30d1755c4261b781135083787b (diff) | |
download | slib-5145dd3aa0c02c9fc496d1432fc4410674206e1d.tar.gz slib-5145dd3aa0c02c9fc496d1432fc4410674206e1d.zip |
Import Upstream version 3a2upstream/3a2
Diffstat (limited to 'slib.spec')
-rw-r--r-- | slib.spec | 58 |
1 files changed, 35 insertions, 23 deletions
@@ -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. |