File cross-m68k-amiga-binutils.spec of Package cross-m68k-amiga-binutils
#
# 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/
#
Name: cross-m68k-amiga-binutils
License: GPL
Group: unsorted
Autoreqprov: on
Version: 2.8.1
Release: 0
Summary: AmigaOS GNU cross-toolchain (binutils)
Source: binutils-2.8.1.tar.bz2
Patch: binutils.dif
BuildRequires: bison flex texinfo texlive libpng-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This GNU toolchain build targets AmigaOS 3.x (possibly 2.x) and up.
%prep
%setup -qTc -a 0
cd binutils*
%patch0
%{suse_update_config -f}
%define adir /usr/lib/cross-amiga
%define dadir $RPM_BUILD_ROOT%adir
%build
mkdir -p build-binutils/m68k-amigaos
export PREFIX=%adir
export TARGET=m68k-amigaos
cd build-binutils
CFLAGS="$RPM_OPT_FLAGS" ../binutils*/configure \
--target=$TARGET \
--prefix=$PREFIX \
--disable-nls --with-gnu-as --with-gnu-ld \
--with-headers=$PREFIX/m68k-amigaos/include
make %{?jobs:-j%jobs}
%install
cd build-binutils
install -d -m 755 %dadir
make install DESTDIR=$RPM_BUILD_ROOT prefix=%dadir
%files
%defattr(-,root,root)
%adir