File gbdk.spec of Package gbdk
#
# spec file for package spec (Version 2.0)
#
# Copyright (c) 2003 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: gbdk
License: COPYRIGHT
Group: unsorted
Autoreqprov: on
Version: 2.96a
Release: 0
Summary: Game Boy Development Kit (C and assembler)
Source: %name-%version.tar.gz
Patch: gbdk.dif
BuildRequires: gcc-c++ bison maccer doxygen
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: maccer
%description
ANSI C and assembler software development kit targeting Z80-based Game Boys.
%prep
%setup -n %name
%patch
%build
make %{?jobs:-j%jobs} TARGETDIR=/usr/lib/gbdk
cd gbdk-lib/include
mkdir ../doc
doxygen libc.dox
%install
make install TARGETDIR=$RPM_BUILD_ROOT/usr/lib/gbdk
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
for i in as-gbz80 as-z80 lcc link-gbz80 link-z80 sdcc sdcpp
do
ln -s ../lib/gbdk/bin/$i $RPM_BUILD_ROOT/usr/bin/$i
done
install -d -m 755 $RPM_BUILD_ROOT%_docdir/%name
mv $RPM_BUILD_ROOT/usr/lib/gbdk/examples $RPM_BUILD_ROOT%_docdir/%name/
cp -a gbdk-lib/doc/libc/html $RPM_BUILD_ROOT%_docdir/%name/
cp -p gbdk-support/README $RPM_BUILD_ROOT%_docdir/%name/
%files
%defattr(-,root,root)
%doc %_docdir/%name
/usr/lib/gbdk
/usr/bin/*