"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scm.spec" between
scm-5f2.zip and scm-5f3.zip

About: SCM is a Scheme Language Interpreter.

scm.spec  (scm-5f2):scm.spec  (scm-5f3)
%define name scm %define name scm
%define version 5f2 %define version 5f3
%define release 1 %define release 1
%define implpath %{prefix}/lib/scm %define implpath %{prefix}/lib/scm
%define slibpath %{prefix}/lib/slib %define slibpath %{prefix}/lib/slib
%define dumparch setarch %{_target_cpu} %define dumparch setarch %{_target_cpu}
# rpm seems to require all on one line, bleah. # rpm seems to require all on one line, bleah.
%define features cautious bignums arrays inexact dump dynamic-linking macro engi neering-notation %define features cautious bignums arrays inexact dynamic-linking macro engineeri ng-notation
Name: %{name} Name: %{name}
Release: %{release} Release: %{release}
Version: %{version} Version: %{version}
Packager: Aubrey Jaffer <agj @ alum.mit.edu> Packager: Aubrey Jaffer <agj @ alum.mit.edu>
License: GPL License: GPL
Vendor: Aubrey Jaffer <agj @ alum.mit.edu> Vendor: Aubrey Jaffer <agj @ alum.mit.edu>
Group: Development/Languages Group: Development/Languages
Provides: scm Provides: scm
skipping to change at line 36 skipping to change at line 36
%description %description
Scm conforms to Revised^5 Report on the Algorithmic Language Scheme and Scm conforms to Revised^5 Report on the Algorithmic Language Scheme and
the IEEE P1178 specification. Scm provides a machine independent the IEEE P1178 specification. Scm provides a machine independent
platform for JACAL, a symbolic algebra system. platform for JACAL, a symbolic algebra system.
This distribution requires libdl.so from the glibc-devel package and the This distribution requires libdl.so from the glibc-devel package and the
slib Scheme library package. If your machine lacks XFree86 or readline, slib Scheme library package. If your machine lacks XFree86 or readline,
install with --nodeps. install with --nodeps.
# %define __os_install_post /usr/lib/rpm/brp-compress # % define __os_install_post /usr/lib/rpm/brp-compress
%prep %prep
rm -rf /var/tmp/%{name}-%{version} rm -rf /var/tmp/%{name}-%{version}
%setup -n scm -c -T %setup -n scm -c -T
cd .. cd ..
unzip $RPM_SOURCE_DIR/scm-%{version}.zip unzip $RPM_SOURCE_DIR/scm-%{version}.zip
%build %build
# SLIB is required to build SCM. # SLIB is required to build SCM.
if [ -n "$SCHEME_LIBRARY_PATH" ]; then if [ -n "$SCHEME_LIBRARY_PATH" ]; then
skipping to change at line 58 skipping to change at line 58
elif [ -d %{slibpath} ]; then elif [ -d %{slibpath} ]; then
export SCHEME_LIBRARY_PATH=%{slibpath}/ export SCHEME_LIBRARY_PATH=%{slibpath}/
elif [ -d %{prefix}/share/slib ]; then elif [ -d %{prefix}/share/slib ]; then
export SCHEME_LIBRARY_PATH=%{prefix}/share/slib/ export SCHEME_LIBRARY_PATH=%{prefix}/share/slib/
fi fi
make scmlit make scmlit
make clean make clean
export PATH=.:$PATH # to get scmlit in the path. export PATH=.:$PATH # to get scmlit in the path.
# Build the executable. # Build the executable.
./build -h system -o udscm5 --compiler-options="-O2" -l debug -s %{implpath} -F ./build -h system -o scm --compiler-options="-O2" -l debug -s %{implpath} -F %{f
%{features} eatures}
echo "(quit)" | ./udscm5 -no-init-file -r5 -o scm # echo "(quit)" | ./udscm5 -no-init-file -r5 -o scm
# make check # make check
# Build dlls # Build dlls
# ./build -h system -t dll -F curses --compiler-options="-O2"
# ./build -h system -t dll -F edit-line --compiler-options="-O2"
make x.so make x.so
./build -h system -t dll -F curses --compiler-options="-O2"
./build -h system -t dll -F edit-line --compiler-options="-O2"
./build -h system -t dll -c differ.c --compiler-options="-O2" ./build -h system -t dll -c differ.c --compiler-options="-O2"
./build -h system -t dll -c sc2.c --compiler-options="-O2" ./build -h system -t dll -c sc2.c --compiler-options="-O2"
./build -h system -t dll -c rgx.c --compiler-options="-O2" ./build -h system -t dll -c rgx.c --compiler-options="-O2"
./build -h system -t dll -c record.c --compiler-options="-O2" ./build -h system -t dll -c record.c --compiler-options="-O2"
./build -h system -t dll -c gsubr.c --compiler-options="-O2" ./build -h system -t dll -c gsubr.c --compiler-options="-O2"
./build -h system -t dll -c ioext.c --compiler-options="-O2" ./build -h system -t dll -c ioext.c --compiler-options="-O2"
./build -h system -t dll -c posix.c --compiler-options="-O2" ./build -h system -t dll -c posix.c --compiler-options="-O2"
./build -h system -t dll -c unix.c --compiler-options="-O2" ./build -h system -t dll -c unix.c --compiler-options="-O2"
./build -h system -t dll -c socket.c --compiler-options="-O2" ./build -h system -t dll -c socket.c --compiler-options="-O2"
./build -h system -t dll -c ramap.c --compiler-options="-O2" ./build -h system -t dll -c ramap.c --compiler-options="-O2"
skipping to change at line 92 skipping to change at line 92
%install %install
mkdir -p ${RPM_BUILD_ROOT}%{prefix}/bin mkdir -p ${RPM_BUILD_ROOT}%{prefix}/bin
mkdir -p ${RPM_BUILD_ROOT}%{prefix}/lib/scm mkdir -p ${RPM_BUILD_ROOT}%{prefix}/lib/scm
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
make prefix=${RPM_BUILD_ROOT}%{prefix}/ \ make prefix=${RPM_BUILD_ROOT}%{prefix}/ \
mandir=${RPM_BUILD_ROOT}%{_mandir}/ \ mandir=${RPM_BUILD_ROOT}%{_mandir}/ \
infodir=${RPM_BUILD_ROOT}%{_infodir}/ \ infodir=${RPM_BUILD_ROOT}%{_infodir}/ \
install install
rm -f ${RPM_BUILD_ROOT}%{prefix}/bin/scm rm -f ${RPM_BUILD_ROOT}%{prefix}/bin/scm
cp udscm5 ${RPM_BUILD_ROOT}%{prefix}/bin/ cp scm ${RPM_BUILD_ROOT}%{prefix}/bin/
# Assume SLIB is in %{prefix}/lib/slib, as installed by the slib rpm. # Assume SLIB is in %{prefix}/lib/slib, as installed by the slib rpm.
cat > ${RPM_BUILD_ROOT}%{prefix}/lib/scm/require.scm <<EOF cat > ${RPM_BUILD_ROOT}%{prefix}/lib/scm/require.scm <<EOF
(set! library-vicinity (lambda () "%{prefix}/lib/slib/")) (set! library-vicinity (lambda () "%{prefix}/lib/slib/"))
EOF EOF
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
# echo "(quit)" | % {dumparch} % {prefix}/bin/udscm5 -no-init-file -r5 -o % {pre fix}/bin/scm
%post %post
echo "(quit)" | %{dumparch} %{prefix}/bin/udscm5 -no-init-file -r5 -o %{prefix}/ ln -s %{prefix}/bin/scm %{prefix}/local/bin/
bin/scm
ln -s %{prefix}/bin/scm %{prefix}/local/bin/scm
ln -s %{prefix}/lib/scm %{prefix}/local/lib/ ln -s %{prefix}/lib/scm %{prefix}/local/lib/
%{prefix}/bin/scm -br new-catalog %{prefix}/bin/scm -br new-catalog
%verifyscript %verifyscript
cp -f %{prefix}/lib/scm/r4rstest.scm /tmp/ cp -f %{prefix}/lib/scm/r4rstest.scm /tmp/
(cd /tmp (cd /tmp
%{prefix}/bin/scm -fr4rstest.scm -e'(test-sc4)(test-cont)(test-delay)(gc)') %{prefix}/bin/scm -fr4rstest.scm -e'(test-sc4)(test-cont)(test-delay)(gc)')
%preun %preun
rm -f %{prefix}/lib/scm/slibcat %{prefix}/lib/scm/implcat rm -f %{prefix}/lib/scm/slibcat %{prefix}/lib/scm/implcat
skipping to change at line 128 skipping to change at line 128
fi fi
if [ -L %{prefix}/local/lib/scm ] && \ if [ -L %{prefix}/local/lib/scm ] && \
ls -l %{prefix}/local/lib/scm | grep -q "> %{prefix}/lib/scm"; then ls -l %{prefix}/local/lib/scm | grep -q "> %{prefix}/lib/scm"; then
rm -f %{prefix}/local/lib/scm rm -f %{prefix}/local/lib/scm
fi fi
rm -f %{prefix}/bin/scm rm -f %{prefix}/bin/scm
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%{prefix}/bin/scmlit %{prefix}/bin/scmlit
%{prefix}/bin/udscm5 %{prefix}/bin/scm
%dir %{prefix}/lib/scm %dir %{prefix}/lib/scm
# No wildcards here because we need to segregate files by package. # No wildcards here because we need to segregate files by package.
%{prefix}/lib/scm/crs.so # % {prefix}/lib/scm/crs.so
%{prefix}/lib/scm/gsubr.so %{prefix}/lib/scm/gsubr.so
%{prefix}/lib/scm/posix.so %{prefix}/lib/scm/posix.so
%{prefix}/lib/scm/record.so %{prefix}/lib/scm/record.so
%{prefix}/lib/scm/sc2.so %{prefix}/lib/scm/sc2.so
%{prefix}/lib/scm/unix.so %{prefix}/lib/scm/unix.so
%{prefix}/lib/scm/ioext.so %{prefix}/lib/scm/ioext.so
%{prefix}/lib/scm/ramap.so %{prefix}/lib/scm/ramap.so
%{prefix}/lib/scm/socket.so %{prefix}/lib/scm/socket.so
%{prefix}/lib/scm/rgx.so %{prefix}/lib/scm/rgx.so
%{prefix}/lib/scm/Init%{version}.scm %{prefix}/lib/scm/Init%{version}.scm
%{prefix}/lib/scm/require.scm %{prefix}/lib/scm/require.scm
%{prefix}/lib/scm/Iedline.scm
%{prefix}/lib/scm/Macexp.scm %{prefix}/lib/scm/Macexp.scm
%{prefix}/lib/scm/Macro.scm %{prefix}/lib/scm/Macro.scm
%{prefix}/lib/scm/Tscript.scm %{prefix}/lib/scm/Tscript.scm
%{prefix}/lib/scm/Transcen.scm %{prefix}/lib/scm/Transcen.scm
%{prefix}/lib/scm/mkimpcat.scm %{prefix}/lib/scm/mkimpcat.scm
%{prefix}/lib/scm/Link.scm %{prefix}/lib/scm/Link.scm
%{prefix}/lib/scm/compile.scm %{prefix}/lib/scm/compile.scm
%{prefix}/lib/scm/hobbit.scm %{prefix}/lib/scm/hobbit.scm
%{prefix}/lib/scm/scmhob.scm %{prefix}/lib/scm/scmhob.scm
%{prefix}/lib/scm/scmhob.h %{prefix}/lib/scm/scmhob.h
%{prefix}/lib/scm/patchlvl.h %{prefix}/lib/scm/patchlvl.h
%{prefix}/lib/scm/build.scm %{prefix}/lib/scm/build.scm
%{prefix}/lib/scm/build %{prefix}/lib/scm/build
%{prefix}/lib/scm/Iedline.scm
%{prefix}/lib/scm/edline.so
%{prefix}/lib/scm/Idiffer.scm %{prefix}/lib/scm/Idiffer.scm
%{prefix}/lib/scm/differ.so %{prefix}/lib/scm/differ.so
%{prefix}/lib/scm/x.so %{prefix}/lib/scm/x.so
%{prefix}/lib/scm/xevent.scm %{prefix}/lib/scm/xevent.scm
%{prefix}/lib/scm/xatoms.scm %{prefix}/lib/scm/xatoms.scm
%{prefix}/lib/scm/x11.scm %{prefix}/lib/scm/x11.scm
%{prefix}/lib/scm/keysymdef.scm %{prefix}/lib/scm/keysymdef.scm
%{prefix}/lib/scm/r4rstest.scm %{prefix}/lib/scm/r4rstest.scm
%{prefix}/lib/scm/byte.so %{prefix}/lib/scm/byte.so
# %{prefix}/lib/scm/wbscm.so
# %{prefix}/lib/scm/wbtab.scm
# %{prefix}/lib/scm/rwb-isam.scm
%{prefix}/lib/scm/COPYING %{prefix}/lib/scm/COPYING
%{prefix}/lib/scm/COPYING.LESSER %{prefix}/lib/scm/COPYING.LESSER
%{_infodir}/Xlibscm.info.gz %{_infodir}/Xlibscm.info.gz
%{_infodir}/hobbit.info.gz %{_infodir}/hobbit.info.gz
%{_infodir}/scm.info.gz %{_infodir}/scm.info.gz
%{_infodir}/dir %{_infodir}/dir
%{_mandir}/man1/scm.1.gz %{_mandir}/man1/scm.1.gz
%{prefix}/lib/libscm.a %{prefix}/lib/libscm.a
%{prefix}/include/scm.h %{prefix}/include/scm.h
 End of changes. 14 change blocks. 
19 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)