File scheme48.spec of Package scheme48

Name: scheme48
Version: 1.9.2
Release: 3
License: BSD-3-Clause
Summary: An implementation of Scheme written by Richard Kelsey and Jonathan Rees
Url: http://www.s48.org
Group: Development/Languages/Scheme
Source: %url/%version/%name-%version.tgz
Source9: %name-rpmlintrc
Patch1: no-env-trampoline.diff
Patch2: debian-user-name.diff
Patch3: man-properly-escape-minuses.diff
Patch4: security-tmpfile.patch

BuildRequires: fdupes

%description
Scheme 48 is an implementation of Scheme written by Richard Kelsey and Jonathan
Rees. It is based on a byte-code interpreter and is designed to be used as a
testbed for experiments in implementation techniques and as an expository tool.


%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1


%build
%add_optflags -Wall -Wno-return-type
%configure --docdir=%_docdir/%name
%make_build LIB=%_libdir/%name SHARE=%_datadir/%name


%install
%make_install LIB=%_libdir/%name SHARE=%_datadir/%name
ln -s %name %buildroot%_bindir/s48
ln -s %name.1 %buildroot%_mandir/man1/s48.1
install -m 0644 README %buildroot%_datadir/%name/

%fdupes %buildroot%_bindir


%files
%doc %_docdir/%name
%_bindir/*
%_includedir/*
%_libdir/*
%_mandir/man1/*
%_datadir/%name
openSUSE Build Service is sponsored by