--- /dev/null
+#
+# The source must be in a tgz with the
+# name %{target}-%{version}-binutils.tgz.
+# When unfolded, the top-level directory
+# must be %{target}-%{version}.
+#
+#
+# 03/14/2005 xscale
+# target: xscale-elf
+# version: 3.4.3
+# release: 1
+#
+
+%define target xscale-elf
+%define version 3.4.3
+%define release 1
+%define name %{target}-gcc
+%define theprefix /usr
+%define source %{name}-%{version}.tgz
+
+Summary: gcc compiled for the %{target} platform
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Packager: kwright, TinyOS Group, UC Berkeley
+License: GNU GPL
+Group: Development/Tools
+URL: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-3.4.3/gcc-3.4.3.tar.bz2
+Source0: %{name}-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-root
+
+%description
+gcc compiled for the %{target} platform. The tarfile was renamed
+to %{target}-gcc* to reflect the purpose.
+
+%prep
+%setup -q
+
+%build
+./configure --target=%{target} --enable-languages=c --disable-nls --prefix=/usr
+make
+
+%install
+rm -rf %{buildroot}%{theprefix}
+make prefix=%{buildroot}%{theprefix} install
+cd %{buildroot}%{theprefix}
+rm lib/libiberty.a
+
+%clean
+rm -rf $RPM_BUILD_DIR/%{name}-%{version}
+rm -rf $RPM_SOURCE_DIR/%{name}-%{version}
+
+%files
+%defattr(-,root,root,-)
+%{theprefix}
+%doc
+
+%changelog
+* Mon Mar 14 2005 root <kwright@cs.berkeley.edu> 3.4.3
+- Initial build for multi-platform, multi-target
+
+