File z88dk.spec of Package z88dk
# Copyright (c) 2007 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: z88dk
License: Clarified Artistic
Group: unsorted
Autoreqprov: on
Version: 1.7
Release: 0
Summary: Z80 processor assembler and SmallC+ cross compiler
Source: %name-src-%version.tgz
Patch: z88dk.dif
#BuildRequires:
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
z88dk is a SmallC+ and Z80 assemler cross compiler supplied with an
assembler/linker and a set of libraries implementing the C standard library
for a number of different z80 based machines. The name z88dk originates from
the time when the project was founded and supported only the Cambridge z88
portable.
Supported machines: Cambridge Computers z88, Sinclair ZX Spectrum, Sinclair
ZX81, CP/M based machines, Amstrad NC100, VZ200/300, Sharp MZ series, TI
calculators (TI82, TI83, TI83+, TI85, TI86), ABC80, Jupiter Ace, Xircom REX
6000, Peters Sprinter, Sam Coupe, MSX1, Spectravideo, Mattel Aquarius,
Peters Sprinter, and C128 (in z80 mode) machines.
Features:
* Small C+ based compiler with structs, floats and other ANSI extensions
* Module assembler/linker which only includes required library routines
* Peephole optimizer with rulesets that reduce the size of generated code
by ~30% and improve speed
* Easily retargetted C library including stdio routines
* Retargettable VT100 terminal
* Support for over a 25 z80 based machines
%prep
%setup -n %name
%patch
for i in `grep -rl usr/local .`
do
sed 's,usr/local,usr,g' <$i >$i.new && mv $i.new $i
done
%build
rmdir bin
export PATH=`pwd`/bin:$PATH
. build.sh
%install
sh config.sh /usr/lib/z88dk/ zx
make install prefix=$RPM_BUILD_ROOT/usr
%files
%defattr(-,root,root)
%doc README.1st LICENSE EXTENSIONS doc/* examples
/usr/bin/*
/usr/lib/z88dk