--- /dev/null
+Summary: Cross PPC GNU binary utility development utilities - binutils
+Summary(es): Utilitarios para desarrollo de binarios de la GNU - PPC binutils
+Summary(fr): Utilitaires de développement binaire de GNU - PPC binutils
+Summary(pl): Skro¶ne narzêdzia programistyczne GNU dla PPC - binutils
+Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU - PPC binutils
+Summary(tr): GNU geliþtirme araçlarý - PPC binutils
+Name: crossppc-binutils
+Version: 2.15.90.0.3
+Release: 1
+License: GPL
+Group: Development/Tools
+Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
+# Source0-md5: 1c1af0064ebd3d7bd99905874656a21e
+URL: http://sources.redhat.com/binutils/
+BuildRequires: bash
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: perl-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define target ppc-pld-linux
+%define arch %{_prefix}/%{target}
+
+%description
+Binutils is a collection of binary utilities, including:
+- ar - create, modify and extract from archives,
+- nm - lists symbols from object files,
+- objcopy - copy and translate object files,
+- objdump - display information from object files,
+- ranlib - generate an index for the contents of an archive,
+- size - list the section sizes of an object or archive file,
+- strings - list printable strings from files,
+- strip - discard symbols,
+- c++filt - a filter for demangling encoded C++ symbols,
+- addr2line - convert addresses to file and line,
+- nlmconv - convert object code into an NLM.
+
+This package contains the cross version for PPC.
+
+%description -l pl
+Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
+programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
+(linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
+programów i bibliotek.
+
+Ten pakiet zawiera wersjê skro¶n± generuj±c± kod dla PPC.
+
+%prep
+%setup -q -n binutils-%{version}
+
+%build
+# ldscripts won't be generated properly if SHELL is not bash...
+CFLAGS="%{rpmcflags}" \
+LDFLAGS="%{rpmldflags}" \
+CONFIG_SHELL="/bin/bash" \
+./configure \
+ --disable-shared \
+ --prefix=%{_prefix} \
+ --infodir=%{_infodir} \
+ --mandir=%{_mandir} \
+ --target=%{target}
+
+%{__make} all \
+ tooldir=%{_prefix} \
+ EXEEXT=""
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_prefix}
+
+%{__make} install \
+ prefix=$RPM_BUILD_ROOT%{_prefix} \
+ mandir=$RPM_BUILD_ROOT%{_mandir} \
+ infodir=$RPM_BUILD_ROOT%{_infodir}
+
+# remove these man pages unless we cross-build for win*/netware platforms.
+# however, this should be done in Makefiles.
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/%{target}-*
+%dir %{arch}/bin
+%attr(755,root,root) %{arch}/bin/*
+%dir %{arch}/lib
+%dir %{arch}/lib/*
+%{arch}/lib/ldscripts/*
+%{_mandir}/man?/%{target}-*