File dice.spec of Package dice
#
# 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: dice
License: COPYRIGHT
Group: unsorted
Autoreqprov: on
Version: 3.15
Release: 0
Summary: AmigaOS 1.x cross-toolchain
Source: %name-rel-%version.tgz
Source1: os-include.lha
Patch: dice.patch
BuildRequires: lha
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Requires: dice-libs
%description
m68k cross-toolchain creating binaries suitable
for AmigaOS 1.x.
Set your PATH to include /usr/lib/dice/bin and compile
with "dcc -1.3 <source file>".
%prep
%setup -n %name-rel-%version
lha x %SOURCE1
%patch -p1
%build
cd suplib
make
make install
cd ../src
make
make install
cd ..
cp -a os-include/* include
%install
%define dicedir /usr/lib/dice
%define idicedir $RPM_BUILD_ROOT%dicedir
mkdir -p %idicedir/config
cp -a config/dice.errors %idicedir/config/
cp -a include %idicedir/
mkdir %idicedir/bin
cp -a ubin/* %idicedir/bin/
%files
%defattr(-,root,root)
%dicedir