1998-04-30 07:04:33 -04:00
|
|
|
%define release 1
|
|
|
|
Summary: Scheme Interpreter with access to the Tk toolkit
|
|
|
|
Name: STk
|
|
|
|
Version: @VERSION@
|
|
|
|
Release: %{release}
|
|
|
|
Copyright: distributable
|
|
|
|
Source: STk-@VERSION@.tar.gz
|
|
|
|
Group: Development/Languages
|
|
|
|
Packager: Erick Gallesio <eg@unice.fr>
|
1999-09-05 07:16:41 -04:00
|
|
|
BuildRoot: /tmp/STk
|
1998-04-30 07:04:33 -04:00
|
|
|
|
|
|
|
%package devel
|
1999-09-05 07:16:41 -04:00
|
|
|
Summary: Header files and libraries for STk
|
1998-04-30 07:04:33 -04:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: STk = @VERSION@
|
|
|
|
|
|
|
|
%description
|
|
|
|
STk is a R4RS Scheme interpreter which can access the Tk graphical
|
|
|
|
package. Concretely it can be seen as the John Ousterhout's Tk
|
|
|
|
package where the Tcl language has been replaced by Scheme.
|
|
|
|
|
|
|
|
STk also provides an efficient object oriented system called STklos.
|
|
|
|
STklos is an extensive OO system with multiple inheritance, generic
|
|
|
|
functions, multi-methods and a Meta Object Protocol).
|
|
|
|
|
1999-02-02 06:13:40 -05:00
|
|
|
This package integrates the 8.0.3 version of the Tk toolkit.
|
1998-04-30 07:04:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the files necessary for extending, in C, the
|
|
|
|
STk interpeter. If you don't need to write some C code for extending
|
|
|
|
the interpreter, you don't need to install this package.
|
|
|
|
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
%ifarch i386
|
|
|
|
%define machine Linux-2.X-ix86
|
|
|
|
%else
|
|
|
|
%ifarch ppc
|
|
|
|
%define machine Linux-2.X-ppc
|
|
|
|
%else
|
|
|
|
%define machine @MACHINE@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
1998-04-30 07:04:33 -04:00
|
|
|
|
|
|
|
%prep
|
1999-09-05 07:16:41 -04:00
|
|
|
|
1998-04-30 07:04:33 -04:00
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS=-O2 sh configure --prefix=@prefix@
|
|
|
|
make
|
|
|
|
|
1999-09-05 07:16:41 -04:00
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}
|
|
|
|
|
|
|
|
make install root=%{buildroot}
|
|
|
|
make install.libs root=%{buildroot}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
|
1998-04-30 07:04:33 -04:00
|
|
|
|
|
|
|
%post
|
|
|
|
if [ -d @prefix@/lib/stk/site-scheme ]
|
|
|
|
then
|
|
|
|
mkdir -p @prefix@/lib/stk/site-scheme
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
rm -f @prefix@/lib/stk/man
|
|
|
|
rmdir @prefix@/lib/stk/site-scheme || true
|
|
|
|
rmdir @prefix@/lib/stk || true
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
rm -f @prefix@/lib/stk/include
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README INSTALL CHANGES ChangeLog
|
|
|
|
@prefix@/lib/stk/@VERSION@/Demos
|
|
|
|
@prefix@/lib/stk/@VERSION@/Help
|
|
|
|
@prefix@/lib/stk/@VERSION@/Images
|
1998-09-30 07:11:02 -04:00
|
|
|
@prefix@/lib/stk/@VERSION@/%{machine}/stk
|
|
|
|
@prefix@/lib/stk/@VERSION@/%{machine}/snow
|
|
|
|
@prefix@/lib/stk/@VERSION@/%{machine}/*.so
|
|
|
|
|
|
|
|
|
1998-04-30 07:04:33 -04:00
|
|
|
@prefix@/lib/stk/@VERSION@/STk
|
|
|
|
@prefix@/lib/stk/@VERSION@/include
|
|
|
|
@prefix@/lib/stk/@VERSION@/man
|
|
|
|
@prefix@/bin/stk-@VERSION@
|
|
|
|
@prefix@/bin/snow-@VERSION@
|
|
|
|
@prefix@/bin/stk
|
|
|
|
@prefix@/bin/snow
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
1998-09-30 07:11:02 -04:00
|
|
|
@prefix@/lib/stk/@VERSION@/%{machine}/Config
|
|
|
|
@prefix@/lib/stk/@VERSION@/%{machine}/Libs
|