<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-05-24)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>Rename amd64 into x86_64.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/Makefile.am.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>contrib/crossrpms/netbsd5.0.2/Makefile.am</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/contrib/crossrpms/netbsd5.0.2/Makefile.am:1.2 rtems/contrib/crossrpms/netbsd5.0.2/Makefile.am:1.3
--- rtems/contrib/crossrpms/netbsd5.0.2/Makefile.am:1.2 Mon Apr 19 09:03:35 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/Makefile.am     Mon May 24 02:19:34 2010
</font><font color='#997700'>@@ -1,4 +1,4 @@
</font> # $Id$
 
<font color='#880000'>-SUBDIRS = i386 amd64
</font><font color='#000088'>+SUBDIRS = i386 x86_64
</font> 
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>Remove (Renamed into x86_64.)
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.1</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/Makefile.am?rev=1.5&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.5</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/amd64-pc-netbsdelf5.0.2-binutils.spec?rev=1.1&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.1</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/amd64-pc-netbsdelf5.0.2-binutils.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/amd64-pc-netbsdelf5.0.2-gcc.spec?rev=1.5&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.5</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/amd64-pc-netbsdelf5.0.2-gcc.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/amd64-pc-netbsdelf5.0.2-libs.spec?rev=1.2&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.2</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/amd64-pc-netbsdelf5.0.2-libs.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/binutils-sources.add?rev=1.1&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.1</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/binutils-sources.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/gcc-sources.add?rev=1.1&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.1</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/gcc-sources.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/libs.add?rev=1.2&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.2</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/libs.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/amd64/target-libs.add?rev=1.1&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.1</font></td><td width='100%'><font color="#880000">contrib/crossrpms/netbsd5.0.2/amd64/target-libs.add</font></td></tr>
</table>
<p> </p>
<a name='cs3'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>New.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-binutils.spec?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-binutils.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-gcc.spec?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-gcc.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-libs.spec?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-libs.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/binutils-sources.add?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/binutils-sources.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/gcc-sources.add?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/gcc-sources.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/libs.add?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/libs.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/x86_64/target-libs.add?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/freebsd8.0/x86_64/target-libs.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-binutils.spec?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-binutils.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-gcc.spec?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-gcc.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-libs.spec?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-libs.spec</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/binutils-sources.add?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/binutils-sources.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/gcc-sources.add?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/gcc-sources.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/libs.add?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/libs.add</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/x86_64/target-libs.add?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">contrib/crossrpms/netbsd5.0.2/x86_64/target-libs.add</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/.cvsignore:1.1
--- /dev/null   Mon May 24 03:14:34 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/.cvsignore        Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,4 @@
</font><font color='#000088'>+Makefile
+Makefile.in
+rtems*.spec
+*.spec.in
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/Makefile.am:1.1
--- /dev/null   Mon May 24 03:14:34 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/Makefile.am       Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,23 @@
</font><font color='#000088'>+# $Id$
+
+TARGET = amd64-pc-freebsd8.0
+
+include $(top_srcdir)/mkspec.am
+
+FREEBSD_VERS = 8.0
+FREEBSD_RPMREL = 0.20100524.1
+EXTRA_DIST += libs.add
+EXTRA_DIST += target-libs.add
+include ../libs.am
+
+BINUTILS_VERS = 2.20.1
+BINUTILS_PKGVERS = $(BINUTILS_VERS)
+BINUTILS_RPMREL = 0.20100524.0
+include ../binutils.am
+BINUTILS_OPTS +=
+
+GCC_VERS = 4.5.0
+GCC_PKGVERS = $(GCC_VERS)
+GCC_RPMREL = 0.20100524.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx,fortran,objc
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-binutils.spec:1.1
--- /dev/null   Mon May 24 03:14:34 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-binutils.spec Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,170 @@
</font><font color='#000088'>+#
+# Please send bugfixes or comments to
+#<span style="background-color: #FF0000"> </span>        http://www.rtems.org/bugzilla
+#
+
+
+%ifos cygwin cygwin32 mingw mingw32
+%define _exeext .exe
+%define debug_package           %{nil}
+%define _libdir                 %{_exec_prefix}/lib
+%else
+%define _exeext %{nil}
+%endif
+
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%endif
+
+%ifos mingw mingw32
+%if %{defined _mingw32_cflags}
+%define optflags %{_mingw32_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%endif
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix %{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
+%define binutils_pkgvers 2.20.1
+%define binutils_version 2.20.1
+%define binutils_rpmvers %{expand:%(echo "2.20.1" | tr - _ )}
+
+Name:          amd64-pc-freebsd8.0-binutils
+Summary:       Binutils for target amd64-pc-freebsd8.0
+Group:         Development/Tools
+Version:       %{binutils_rpmvers}
+Release:       0.20100524.0%{?dist}
+License:       GPL/LGPL
+URL:<span style="background-color: #FF0000"> </span>             http://sources.redhat.com/binutils
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: %{_host_rpmprefix}gcc
+
+%if "%{binutils_version}" >= "2.18"
+# Bug in bfd: Doesn't build without texinfo installed
+BuildRequires: texinfo >= 4.2
+%else
+%endif
+BuildRequires: flex
+BuildRequires: bison
+
+Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
+
+%description
+Cross binutils for target amd64-pc-freebsd8.0
+%prep
+%setup -q -c -T -n %{name}-%{version}
+
+%setup -q -D -T -n %{name}-%{version} -a0
+cd binutils-%{binutils_pkgvers}
+%{?PATCH0:%patch0 -p1}
+cd ..
+
+%build
+  mkdir -p build
+  cd build
+%if "%{_build}" != "%{_host}"
+  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
+  CFLAGS="$RPM_OPT_FLAGS" \
+  ../binutils-%{binutils_pkgvers}/configure \
+    --build=%_build --host=%_host \
+    --target=amd64-pc-freebsd8.0 \
+    --verbose --disable-nls \
+    --without-included-gettext \
+    --disable-win32-registry \
+    --disable-werror \
+    --with-sysroot=%{_prefix}/amd64-pc-freebsd8.0/sys-root \
+    --prefix=%{_prefix} --bindir=%{_bindir} \
+    --exec-prefix=%{_exec_prefix} \
+    --includedir=%{_includedir} --libdir=%{_libdir} \
+    --mandir=%{_mandir} --infodir=%{_infodir}
+
+  make %{?_smp_mflags} all
+  cd ..
+
+%install
+  rm -rf $RPM_BUILD_ROOT
+
+  cd build
+  make DESTDIR=$RPM_BUILD_ROOT install
+
+
+# Conflict with a native binutils' infos
+  rm -rf $RPM_BUILD_ROOT%{_infodir}
+
+# We don't ship host files
+  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
+
+# manpages without corresponding tools
+  if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/amd64-pc-freebsd8.0-dlltool%{_exeext}; then<span style="background-color: #FF0000"> </span>
+    rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/amd64-pc-freebsd8.0-dlltool*
+  fi
+  if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/amd64-pc-freebsd8.0-nlmconv%{_exeext}; then<span style="background-color: #FF0000"> </span>
+    rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/amd64-pc-freebsd8.0-nlmconv*
+  fi
+  if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/amd64-pc-freebsd8.0-windres%{_exeext}; then<span style="background-color: #FF0000"> </span>
+    rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/amd64-pc-freebsd8.0-windres*
+  fi
+  if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/amd64-pc-freebsd8.0-windmc%{_exeext}; then<span style="background-color: #FF0000"> </span>
+    rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/amd64-pc-freebsd8.0-windmc*
+  fi
+
+  cd ..
+
+# Extract %%__os_install_post into os_install_post~
+cat << \EOF > os_install_post~
+%__os_install_post
+EOF
+
+# Generate customized brp-*scripts
+cat os_install_post~ | while read a x y; do
+case $a in
+# Prevent brp-strip* from trying to handle foreign binaries
+*/brp-strip*)
+  b=$(basename $a)
+  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
+< os_install_post~ > os_install_post<span style="background-color: #FF0000"> </span>
+%define __os_install_post . ./os_install_post
+
+%clean
+  rm -rf $RPM_BUILD_ROOT
+
+# ==============================================================
+# amd64-pc-freebsd8.0-binutils
+# ==============================================================
+# %package -n amd64-pc-freebsd8.0-binutils
+# Summary:      rtems binutils for amd64-pc-freebsd8.0
+# Group: Development/Tools
+# %if %build_infos
+# Requires: binutils-common
+# %endif
+
+%description -n amd64-pc-freebsd8.0-binutils
+GNU binutils targetting amd64-pc-freebsd8.0.
+
+%files -n amd64-pc-freebsd8.0-binutils
+%defattr(-,root,root)
+
+%{_mandir}/man1/amd64-pc-freebsd8.0-*.1*
+
+%{_bindir}/amd64-pc-freebsd8.0-*
+
+%dir %{_exec_prefix}/amd64-pc-freebsd8.0
+%dir %{_exec_prefix}/amd64-pc-freebsd8.0/bin
+%{_exec_prefix}/amd64-pc-freebsd8.0/bin/*
+
+%dir %{_exec_prefix}/amd64-pc-freebsd8.0/lib
+%{_exec_prefix}/amd64-pc-freebsd8.0/lib/ldscripts
+
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-gcc.spec:1.1
--- /dev/null   Mon May 24 03:14:34 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-gcc.spec      Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,773 @@
</font><font color='#000088'>+#
+# Please send bugfixes or comments to
+#<span style="background-color: #FF0000"> </span>        http://www.rtems.org/bugzilla
+#
+
+
+%ifos cygwin cygwin32 mingw mingw32
+%define _exeext .exe
+%define debug_package           %{nil}
+%define _libdir                 %{_exec_prefix}/lib
+%else
+%define _exeext %{nil}
+%endif
+
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%endif
+
+%ifos mingw mingw32
+%if %{defined _mingw32_cflags}
+%define optflags %{_mingw32_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%endif
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix %{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
+
+%define gcc_pkgvers 4.5.0
+%define gcc_version 4.5.0
+%define gcc_rpmvers %{expand:%(echo "4.5.0" | tr - _ )}
+
+
+Name:<span style="background-color: #FF0000">         </span>    amd64-pc-freebsd8.0-gcc
+Summary:<span style="background-color: #FF0000">      </span>    amd64-pc-freebsd8.0 gcc
+
+Group: <span style="background-color: #FF0000">      </span>     Development/Tools
+Version:        %{gcc_rpmvers}
+Release:<span style="background-color: #FF0000">      </span>    0.20100524.0%{?dist}
+License:<span style="background-color: #FF0000">      </span>    GPL
+URL:           http://gcc.gnu.org
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%define _use_internal_dependency_generator 0
+
+BuildRequires:  %{_host_rpmprefix}gcc
+
+# FIXME: Disable lto for now, to avoid dependencies on libelf
+%bcond_with lto
+
+# FIXME: Disable python gdb scripts
+# ATM, no idea how to package them
+%bcond_with pygdb
+
+# FIXME: Disable GCC-plugin
+# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
+%bcond_with plugin
+
+# versions of libraries, we conditionally bundle if necessary
+%global mpc_version    0.8.1
+%global mpfr_version   2.4.2
+%global gmp_version    4.3.2
+%global libelf_version  0.8.13
+
+# versions of libraries these distros are known to ship
+%if 0%{?fc13}
+%global mpc_provided 0.8.1
+%global mpfr_provided 2.4.2
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?fc12}
+%global mpc_provided 0.8
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?fc11}
+%global mpc_provided %{nil}
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.2.4
+%endif
+
+%if 0%{?el6}
+%global mpc_provided %{nil}
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?el5}
+%global mpc_provided %{nil}
+%global mpfr_provided %{nil}
+%global gmp_provided 4.1.4
+%endif
+
+%if 0%{?suse11_0}
+%global mpc_provided %{nil}
+%global mpfr_provided 2.3.1
+%global gmp_provided 4.2.2
+%endif
+
+%if 0%{?suse11_1}
+%global mpc_provided %{nil}
+%global mpfr_provided 2.3.2
+%global gmp_provided 4.2.3
+%endif
+
+%if 0%{?suse11_2}
+%global mpc_provided 0.7
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?cygwin}
+%global mpc_provided 0.8
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?mingw32}
+%global mpc_provided 0.8.1
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.2
+%endif
+
+%if "%{gcc_version}" >= "4.2.0"
+%define gmp_required           4.1
+%define mpfr_required          2.2.1
+%endif
+
+%if "%{gcc_version}" >= "4.3.0"
+%define gmp_required           4.1
+%define mpfr_required          2.3.1
+%endif
+
+%if "%{gcc_version}" >= "4.3.3"
+%define cloog_required<span style="background-color: #FF0000"> </span>           0.15
+%endif
+
+%if "%{gcc_version}" >= "4.4.0"
+%define mpfr_required          2.3.2
+%endif
+
+%if "%{gcc_version}" >= "4.5.0"
+%define mpc_required<span style="background-color: #FF0000"> </span>             0.8
+%if %{with lto}
+%define libelf_required<span style="background-color: #FF0000"> </span>  0.8.12
+%endif
+%endif
+
+%if %{defined mpc_required}
+%if "%{mpc_provided}" >= "%{mpc_required}"
+%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
+%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}mpc-devel >= %{mpc_required}
+%endif
+%else
+%define _build_mpc 1
+%define gmp_required<span style="background-color: #FF0000"> </span>             4.2
+%endif
+%endif
+
+%if %{defined gmp_required}
+%if "%{gmp_provided}" >= "%{gmp_required}"
+BuildRequires: gmp-devel >= %{gmp_required}
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{gmp_required}
+%endif
+%else
+%define _build_gmp 1
+%endif
+%endif
+
+%if %{defined libelf_required}
+%if "%{libelf_provided}" >= "%{libelf_required}"
+BuildRequires: libelf-devel >= %{libelf_required}
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}libelf-devel >= %{libelf_required}
+%endif
+%else
+%define _build_libelf 1
+%endif
+%endif
+
+
+%if %{defined cloog_required}
+%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
+%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
+%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
+%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
+%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
+%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
+%endif
+
+
+%if %{defined mpfr_required}
+%if "%{mpfr_provided}" >= "%{mpfr_required}"
+BuildRequires: mpfr-devel >= %{mpfr_required}
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
+%endif
+%else
+%define _build_mpfr 1
+%endif
+%endif
+
+%if "%{_build}" != "%{_host}"
+BuildRequires:  amd64-pc-freebsd8.0-gcc = %{gcc_rpmvers}
+%endif
+
+%if "%{gcc_version}" >= "4.2.0"
+BuildRequires: flex bison
+%endif
+
+
+BuildRequires: texinfo >= 4.2
+BuildRequires: amd64-pc-freebsd8.0-binutils
+BuildRequires: amd64-pc-freebsd8.0-sys-root
+
+Requires:      amd64-pc-freebsd8.0-binutils
+Requires:      amd64-pc-freebsd8.0-sys-root
+Requires:      amd64-pc-freebsd8.0-gcc-libgcc = %{gcc_rpmvers}-%{release}
+
+%if "%{gcc_version}" >= "4.5.0"
+BuildRequires:  zlib-devel
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}zlib-devel
+%endif
+%else
+%endif
+
+%global _gcclibdir %{_prefix}/lib
+
+Source0:<span style="background-color: #FF0000"> </span> ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%{?_without_sources:NoSource:  0}
+
+Source1:<span style="background-color: #FF0000"> </span> ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_without_sources:NoSource:  1}
+
+Source2:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
+%{?_without_sources:NoSource:  2}
+
+Source5:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
+%{?_without_sources:NoSource:  5}
+
+%if 0%{?_build_mpfr}
+Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
+%endif
+
+%if 0%{?_build_mpc}
+Source61:    http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
+%endif
+
+%if 0%{?_build_gmp}
+Source62:    ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
+%endif
+
+%if 0%{?_build_libelf}
+Source63:    http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
+%endif
+
+%description
+Cross gcc for amd64-pc-freebsd8.0.
+
+%prep
+%setup -c -T -n %{name}-%{version}
+
+%setup -q -T -D -n %{name}-%{version} -a0
+cd gcc-%{gcc_pkgvers}
+%{?PATCH0:%patch0 -p1}
+cd ..
+
+%setup -q -T -D -n %{name}-%{version} -a1
+cd gcc-%{gcc_pkgvers}
+%{?PATCH1:%patch1 -p1}
+cd ..
+
+%setup -q -T -D -n %{name}-%{version} -a2
+%{?PATCH2:%patch2 -p0}
+
+
+
+%setup -q -T -D -n %{name}-%{version} -a5
+%{?PATCH5:%patch5 -p0}
+
+
+%if 0%{?_build_mpfr}
+%setup -q -T -D -n %{name}-%{version} -a60
+%{?PATCH60:%patch60 -p1}
+  # Build mpfr one-tree style
+  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
+%endif
+
+%if 0%{?_build_mpc}
+%setup -q -T -D -n %{name}-%{version} -a61
+%{?PATCH61:%patch61 -p1}
+  # Build mpc one-tree style
+  ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
+%endif
+
+%if 0%{?_build_gmp}
+%setup -q -T -D -n %{name}-%{version} -a62
+%{?PATCH62:%patch62 -p1}
+  # Build gmp one-tree style
+  ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
+%endif
+
+%if 0%{?_build_libelf}
+%setup -q -T -D -n %{name}-%{version} -a63
+%{?PATCH63:%patch63 -p1}
+  # Build libelf one-tree style
+  ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
+%endif
+
+
+  # Fix timestamps
+  cd gcc-%{gcc_pkgvers}
+  contrib/gcc_update --touch
+  cd ..
+%build
+  mkdir -p build
+
+  cd build
+
+  languages="c"
+  languages="$languages,c++"
+  languages="$languages,fortran"
+  languages="$languages,objc"
+%if "%{_build}" != "%{_host}"
+  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
+%else
+# gcc is not ready to be compiled with -std=gnu99
+  CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
+%endif
+  ../gcc-%{gcc_pkgvers}/configure \
+    --prefix=%{_prefix} \
+    --bindir=%{_bindir} \
+    --exec_prefix=%{_exec_prefix} \
+    --includedir=%{_includedir} \
+    --libdir=%{_gcclibdir} \
+    --libexecdir=%{_libexecdir} \
+    --mandir=%{_mandir} \
+    --infodir=%{_infodir} \
+    --datadir=%{_datadir} \
+    --build=%_build --host=%_host \
+    --target=amd64-pc-freebsd8.0 \
+    --disable-libstdcxx-pch \
+    --with-gnu-as --with-gnu-ld --verbose \
+    --with-system-zlib \
+    --disable-nls --without-included-gettext \
+    --disable-win32-registry \
+    --enable-version-specific-runtime-libs \
+    --enable-threads \
+    --with-sysroot=%{_exec_prefix}/amd64-pc-freebsd8.0/sys-root \
+    %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
+    %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+    --enable-languages="$languages" $optargs
+
+%if "%_host" != "%_build"
+  # Bug in gcc-3.2.1:
+  # Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
+  mkdir -p gcc/include
+  cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
+%endif
+
+  make %{?_smp_mflags} all
+  cd ..
+
+%install
+  rm -rf $RPM_BUILD_ROOT
+
+  cd build
+
+  make DESTDIR=$RPM_BUILD_ROOT install
+  cd ..
+
+
+%if "%{gcc_version}" <= "4.1.2"
+# Misplaced header file
+  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
+    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
+      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/include/
+  fi
+%endif
+
+  # host library
+%if "%{gcc_version}" >= "4.2.0"
+  # libiberty doesn't honor --libdir, but always installs to a<span style="background-color: #FF0000"> </span>
+  # magically guessed _libdir
+  rm -f  ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
+%else
+  # libiberty installs to --libdir=...
+  rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
+%endif
+
+  # We use the version from binutils
+  rm -f $RPM_BUILD_ROOT%{_bindir}/amd64-pc-freebsd8.0-c++filt%{_exeext}
+
+
+# Conflict with a native GCC's infos
+  rm -rf $RPM_BUILD_ROOT%{_infodir}
+
+# Conflict with a native GCC's man pages
+  rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
+
+  # Bug in gcc-3.4.0pre
+  rm -f $RPM_BUILD_ROOT%{_bindir}/amd64-pc-freebsd8.0-amd64-pc-freebsd8.0-gcjh%{_exeext}
+
+  # Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
+  # the fixinclude-install-tools
+  rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/install-tools
+  rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/install-tools
+
+  # Bug in gcc > 4.1.0: Installs an unused, empty directory
+  if test -d ${RPM_BUILD_ROOT}%{_prefix}/amd64-pc-freebsd8.0/include/bits; then
+    rmdir ${RPM_BUILD_ROOT}%{_prefix}/amd64-pc-freebsd8.0/include/bits
+  fi
+
+  # gcc >= 4.5.0: installs weird libstdc++ python bindings.
+%if ! %{with pygdb}
+  if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
+    rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
+  fi
+%endif
+
+  # Collect multilib subdirectories
+  multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
+
+
+  rm -f dirs ;
+  echo "%defattr(-,root,root,-)" >> dirs
+  TGTDIR="%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}"
+  for i in $multilibs; do
+    case $i in
+    \.) ;; # ignore, handled elsewhere
+    *)  echo "%dir ${TGTDIR}/$i" >> dirs
+      ;;
+    esac
+  done
+
+  # Collect files to go into different packages
+  cp dirs build/files.gcc
+  cp dirs build/files.gfortran
+  cp dirs build/files.objc
+  cp dirs build/files.gcj
+  cp dirs build/files.g++
+
+  TGTDIR="%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}"
+  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
+  for i in $f; do
+    case $i in
+    *lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
+    *f771) ;;
+    *f951) ;;
+    *cc1) ;;
+    *cc1obj) ;;
+    *cc1plus) ;; # ignore: explicitly put into rpm elsewhere
+    *collect2) ;;
+    *libobjc*) echo "$i" >> build/files.objc ;;
+    *include/objc*) ;;
+    *include/g++*);;
+    *include/c++*);;
+    *include-fixed/*);;
+    *finclude/*);;
+    *adainclude*);;
+    *adalib*);;
+    *gnat1);;
+    *jc1) ;;
+    *jvgenmain) ;;
+    */libgfortran*.*) echo "$i" >> build/files.gfortran ;;
+    %{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
+    %{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
+    */libstdc++.*) echo "$i" >> build/files.g++ ;;
+    */libsupc++.*) echo "$i" >> build/files.g++ ;;
+    *) echo "$i" >> build/files.gcc ;;
+    esac
+  done
+
+  TGTDIR="%{_exec_prefix}/amd64-pc-freebsd8.0/lib"
+  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
+  for i in $f; do
+    case $i in
+    *lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
+    *libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
+# all other files belong to newlib
+    *) echo "$i" >> build/files.newlib ;;<span style="background-color: #FF0000"> </span>
+    esac
+  done
+# Extract %%__os_install_post into os_install_post~
+cat << \EOF > os_install_post~
+%__os_install_post
+EOF
+
+# Generate customized brp-*scripts
+cat os_install_post~ | while read a x y; do
+case $a in
+# Prevent brp-strip* from trying to handle foreign binaries
+*/brp-strip*)
+  b=$(basename $a)
+  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
+< os_install_post~ > os_install_post<span style="background-color: #FF0000"> </span>
+%define __os_install_post . ./os_install_post
+
+
+cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
+#!/bin/sh
+grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-freebsd8.0/(lib|include|sys-root)' \
+  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/'} | %__find_provides
+EOF
+chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
+%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
+
+cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+#!/bin/sh
+grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-freebsd8.0/(lib|include|sys-root)' \
+  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/'} | %__find_requires
+EOF
+chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+  b=$(basename $a)
+  sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post<span style="background-color: #FF0000"> </span>
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
+%clean
+  rm -rf $RPM_BUILD_ROOT
+
+# ==============================================================
+# amd64-pc-freebsd8.0-gcc
+# ==============================================================
+# %package -n amd64-pc-freebsd8.0-gcc
+# Summary:        GNU cc compiler for amd64-pc-freebsd8.0
+# Group:          Development/Tools
+# Version:        %{gcc_rpmvers}
+# Requires:       amd64-pc-freebsd8.0-binutils
+# License:     GPL
+
+# %if %build_infos
+# Requires:      gcc-common
+# %endif
+
+%description -n amd64-pc-freebsd8.0-gcc
+GNU cc compiler for amd64-pc-freebsd8.0.
+
+# ==============================================================
+# amd64-pc-freebsd8.0-gcc-libgcc
+# ==============================================================
+%package -n amd64-pc-freebsd8.0-gcc-libgcc
+Summary:        libgcc for amd64-pc-freebsd8.0-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+%{?_with_noarch_subpackages:BuildArch: noarch}
+License:       GPL
+
+%description -n amd64-pc-freebsd8.0-gcc-libgcc
+libgcc amd64-pc-freebsd8.0-gcc.
+
+
+%files -n amd64-pc-freebsd8.0-gcc
+%defattr(-,root,root)
+
+%{_mandir}/man1/amd64-pc-freebsd8.0-gcc.1*
+%{_mandir}/man1/amd64-pc-freebsd8.0-cpp.1*
+%{_mandir}/man1/amd64-pc-freebsd8.0-gcov.1*
+
+%{_bindir}/amd64-pc-freebsd8.0-cpp%{_exeext}
+%{_bindir}/amd64-pc-freebsd8.0-gcc%{_exeext}
+%{_bindir}/amd64-pc-freebsd8.0-gcc-%{gcc_version}%{_exeext}
+%{_bindir}/amd64-pc-freebsd8.0-gcov%{_exeext}
+%{_bindir}/amd64-pc-freebsd8.0-gccbug
+
+%dir %{_libexecdir}/gcc
+%dir %{_libexecdir}/gcc/amd64-pc-freebsd8.0
+%dir %{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}
+%{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/cc1%{_exeext}
+%{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/collect2%{_exeext}
+%if "%{gcc_version}" >= "4.5.0"
+%{?with_lto:%{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/lto%{_exeext}}
+%{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/lto-wrapper%{_exeext}
+%endif
+
+%files -n amd64-pc-freebsd8.0-gcc-libgcc -f build/files.gcc
+%defattr(-,root,root)
+%dir %{_gcclibdir}/gcc
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/include
+
+%if "%{gcc_version}" > "4.0.3"
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/include/ssp
+%endif
+
+%if "%{gcc_version}" >= "4.3.0"
+%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/include-fixed
+%endif
+
+# ==============================================================
+# amd64-pc-freebsd8.0-gcc-c++
+# ==============================================================
+%package -n amd64-pc-freebsd8.0-gcc-c++
+Summary:       GCC c++ compiler for amd64-pc-freebsd8.0
+Group:         Development/Tools
+Version:        %{gcc_rpmvers}
+License:       GPL
+Requires:       amd64-pc-freebsd8.0-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
+
+%if "%{_build}" != "%{_host}"
+BuildRequires:  amd64-pc-freebsd8.0-gcc-c++ = %{gcc_rpmvers}
+%endif
+
+Requires:       amd64-pc-freebsd8.0-gcc = %{gcc_rpmvers}-%{release}
+
+%description -n amd64-pc-freebsd8.0-gcc-c++
+GCC c++ compiler for amd64-pc-freebsd8.0.
+
+
+%package -n amd64-pc-freebsd8.0-gcc-libstdc++
+Summary:       libstdc++ for amd64-pc-freebsd8.0
+Group:         Development/Tools
+Version:        %{gcc_rpmvers}
+%{?_with_noarch_subpackages:BuildArch: noarch}
+License:       GPL
+
+%description -n amd64-pc-freebsd8.0-gcc-libstdc++
+%{summary}
+
+
+%files -n amd64-pc-freebsd8.0-gcc-c++
+%defattr(-,root,root)
+
+%{_mandir}/man1/amd64-pc-freebsd8.0-g++.1*
+
+%{_bindir}/amd64-pc-freebsd8.0-c++%{_exeext}
+%{_bindir}/amd64-pc-freebsd8.0-g++%{_exeext}
+
+%dir %{_libexecdir}/gcc
+%dir %{_libexecdir}/gcc/amd64-pc-freebsd8.0
+%dir %{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}
+%{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/cc1plus%{_exeext}
+
+
+%files -n amd64-pc-freebsd8.0-gcc-libstdc++ -f build/files.g++
+%defattr(-,root,root)
+%dir %{_gcclibdir}/gcc
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/include
+%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/include/c++
+
+# ==============================================================
+# amd64-pc-freebsd8.0-gcc-gfortran
+# ==============================================================
+%package -n amd64-pc-freebsd8.0-gcc-gfortran
+Summary:       Fortran 95 support for amd64-pc-freebsd8.0-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+License:       GPL
+
+Requires:       amd64-pc-freebsd8.0-gcc = %{gcc_rpmvers}-%{release}
+Requires:       amd64-pc-freebsd8.0-gcc-libgfortran = %{gcc_rpmvers}-%{release}
+
+%description -n amd64-pc-freebsd8.0-gcc-gfortran
+GCC fortran compiler for amd64-pc-freebsd8.0.
+
+%files -n amd64-pc-freebsd8.0-gcc-gfortran
+%defattr(-,root,root)
+%{_bindir}/amd64-pc-freebsd8.0-gfortran%{_exeext}
+
+%{_mandir}/man1/amd64-pc-freebsd8.0-gfortran.1*
+
+%dir %{_libexecdir}/gcc
+%dir %{_libexecdir}/gcc/amd64-pc-freebsd8.0
+%dir %{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}
+%{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/f951%{_exeext}
+
+# ==============================================================
+# amd64-pc-freebsd8.0-gcc-libgfortran
+# ==============================================================
+%package -n amd64-pc-freebsd8.0-gcc-libgfortran
+Summary:       Fortran 95 support libraries for amd64-pc-freebsd8.0-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+%{?_with_noarch_subpackages:BuildArch: noarch}
+License:       GPL
+
+%description -n amd64-pc-freebsd8.0-gcc-libgfortran
+%{summary}
+
+%files -n amd64-pc-freebsd8.0-gcc-libgfortran -f build/files.gfortran
+%defattr(-,root,root)
+%dir %{_gcclibdir}/gcc
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}
+%if "%{gcc_version}" >= "4.2.0"
+%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/finclude
+%endif
+
+# ==============================================================
+# amd64-pc-freebsd8.0-gcc-objc
+# ==============================================================
+%package -n amd64-pc-freebsd8.0-gcc-objc
+Summary:        Objective C support for amd64-pc-freebsd8.0-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+License:       GPL
+
+Requires:       amd64-pc-freebsd8.0-gcc = %{gcc_rpmvers}-%{release}
+Requires:       amd64-pc-freebsd8.0-gcc-libobjc = %{gcc_rpmvers}-%{release}
+
+%description -n amd64-pc-freebsd8.0-gcc-objc
+GCC objc compiler for amd64-pc-freebsd8.0.
+
+%files -n amd64-pc-freebsd8.0-gcc-objc
+%defattr(-,root,root)
+%dir %{_libexecdir}/gcc
+%dir %{_libexecdir}/gcc/amd64-pc-freebsd8.0
+%dir %{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}
+%{_libexecdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/cc1obj%{_exeext}
+
+# ==============================================================
+# amd64-pc-freebsd8.0-gcc-libobjc
+# ==============================================================
+%package -n amd64-pc-freebsd8.0-gcc-libobjc
+Summary:        Objective C support for amd64-pc-freebsd8.0-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+%{?_with_noarch_subpackages:BuildArch: noarch}
+License:       GPL
+
+%description -n amd64-pc-freebsd8.0-gcc-libobjc
+Support libraries for GCC's objc compiler for amd64-pc-freebsd8.0.
+
+%files -n amd64-pc-freebsd8.0-gcc-libobjc -f build/files.objc
+%defattr(-,root,root)
+%dir %{_gcclibdir}/gcc
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}
+%dir %{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/include
+%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/%{gcc_version}/include/objc
+
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-libs.spec:1.1
--- /dev/null   Mon May 24 03:14:34 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-libs.spec     Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,214 @@
</font><font color='#000088'>+#
+# Please send bugfixes or comments to
+#<span style="background-color: #FF0000"> </span>        http://www.rtems.org/bugzilla
+#
+
+
+%ifos cygwin cygwin32 mingw mingw32
+%define _exeext .exe
+%define debug_package           %{nil}
+%define _libdir                 %{_exec_prefix}/lib
+%else
+%define _exeext %{nil}
+%endif
+
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%endif
+
+%ifos mingw mingw32
+%if %{defined _mingw32_cflags}
+%define optflags %{_mingw32_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%endif
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix %{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
+%define freebsd_version 8.0
+%define freebsd_rpmvers %{expand:%(echo 8.0 | tr - _)}
+
+%define _use_internal_dependency_generator 0
+%define __debug_install_post %{nil}
+
+Name:          amd64-pc-freebsd8.0
+Release:       0.20100524.1%{?dist}
+License:       FreeBSD
+Group:         Development/Tools
+
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:     noarch
+
+Version:<span style="background-color: #FF0000">      </span>    %freebsd_rpmvers
+Summary:<span style="background-color: #FF0000">      </span>    amd64-pc-freebsd8.0 Libraries
+
+Source0:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.aa
+Source1:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ab
+Source2:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ac
+Source3:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ad
+Source4:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ae
+Source5:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.af
+Source6:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ag
+Source7:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ah
+Source8:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ai
+Source9:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.aj
+Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ak
+Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.al
+Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.am
+Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.an
+Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ao
+Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ap
+Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.aq
+Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ar
+Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.as
+Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.at
+Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.au
+Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.av
+Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.aw
+Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ax
+Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ay
+Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.az
+Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.ba
+Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bb
+Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bc
+Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bd
+Source30: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.be
+Source31: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bf
+Source32: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bg
+Source33: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bh
+Source34: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bi
+Source35: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bj
+Source36: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bk
+Source37: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bl
+Source38: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bm
+Source39: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bn
+Source40: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/base/base.bo
+
+%description
+amd64-pc-freebsd8.0 libraries.
+
+%prep
+%setup -q -c -T -n %{name}-%{version}
+
+  cat \
+ %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
+ %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
+ %SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
+ %SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
+ %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
+ %SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
+ %SOURCE30 %SOURCE31 %SOURCE32 %SOURCE33 %SOURCE34 \
+ %SOURCE35 %SOURCE36 %SOURCE37 %SOURCE38 %SOURCE39 \
+ %SOURCE40 \
+ | %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include %{?el5:||:}
+
+%build
+  # Setup sys-root (Usable for gcc >= 3.4)
+  mkdir -p amd64-pc-freebsd8.0/sys-root
+  %{__tar} cf - lib usr/lib usr/include | ( cd amd64-pc-freebsd8.0/sys-root ; %{__tar} xf -)
+
+  pushd amd64-pc-freebsd8.0/sys-root/usr/lib > /dev/null
+  # missing files
+  rm -f lib*_p.*
+  # not needed
+  rm -rf aout compat
+
+  # Fix up symlinks
+  find -type l -exec ls -l {} \; | \
+    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
+    case $aA in
+    /lib* ) # link
+       rm $a8;
+       b=`basename $aA`
+       ln -s ../../lib/$b $a8
+       ;;
+    esac
+  done
+  popd > /dev/null
+
+%install
+  rm -rf $RPM_BUILD_ROOT
+  mkdir -p $RPM_BUILD_ROOT%{_prefix}
+  cp -a amd64-pc-freebsd8.0 $RPM_BUILD_ROOT%{_prefix}
+
+# Extract %%__os_install_post into os_install_post~
+cat << \EOF > os_install_post~
+%__os_install_post
+EOF
+
+# Generate customized brp-*scripts
+cat os_install_post~ | while read a x y; do
+case $a in
+# Prevent brp-strip* from trying to handle foreign binaries
+*/brp-strip*)
+  b=$(basename $a)
+  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
+< os_install_post~ > os_install_post<span style="background-color: #FF0000"> </span>
+%define __os_install_post . ./os_install_post
+
+
+cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
+#!/bin/sh
+grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-freebsd8.0/(lib|include|sys-root)' \
+  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/'} | %__find_provides
+EOF
+chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
+%define __find_provides %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
+
+cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
+#!/bin/sh
+grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-freebsd8.0/(lib|include|sys-root)' \
+  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-freebsd8.0/'} | %__find_requires
+EOF
+chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
+%define __find_requires %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
+
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+  b=$(basename $a)
+  sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post<span style="background-color: #FF0000"> </span>
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
+%clean
+  rm -rf $RPM_BUILD_ROOT
+
+%package sys-root
+Group: Development/Tools
+Summary: amd64-pc-freebsd8.0 target files for gcc >= 3.4
+
+%description sys-root
+amd64-pc-freebsd8.0 target files for gcc >= 3.4
+
+%files sys-root
+%defattr(-,root,root,-)
+%dir %{_prefix}/amd64-pc-freebsd8.0
+%{_prefix}/amd64-pc-freebsd8.0/sys-root
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/binutils-sources.add:1.1
--- /dev/null   Mon May 24 03:14:34 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/binutils-sources.add      Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
+@PATCH0@
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/gcc-sources.add:1.1
--- /dev/null   Mon May 24 03:14:34 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/gcc-sources.add   Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,33 @@
</font><font color='#000088'>+Source0:<span style="background-color: #FF0000"> </span>        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+@PATCH0@
+%{?_without_sources:NoSource:  0}
+
+%if %build_cxx
+Source1:<span style="background-color: #FF0000"> </span> ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+@PATCH1@
+%{?_without_sources:NoSource:  1}
+
+%endif
+%if %build_fortran
+Source2:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
+@PATCH2@
+%{?_without_sources:NoSource:  2}
+
+%endif
+%if %build_gcj
+Source3:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
+@PATCH3@
+%{?_without_sources:NoSource:  3}
+
+%endif
+%if %build_gnat
+Source4:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
+@PATCH4@
+%{?_without_sources:NoSource:  4}
+
+%endif
+%if %build_objc
+Source5:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
+@PATCH5@
+%{?_without_sources:NoSource:  5}
+%endif
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/libs.add:1.1
--- /dev/null   Mon May 24 03:14:35 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/libs.add  Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,106 @@
</font><font color='#000088'>+%define freebsd_version @FREEBSD_VERS@
+%define freebsd_rpmvers %{expand:%(echo @FREEBSD_VERS@ | tr - _)}
+
+%define _use_internal_dependency_generator 0
+%define __debug_install_post %{nil}
+
+Name:          @rpmprefix@@tool_target@
+Release:       @FREEBSD_RPMREL@
+License:       FreeBSD
+Group:         Development/Tools
+
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:     noarch
+
+Version:<span style="background-color: #FF0000">      </span>    %freebsd_rpmvers
+Summary:<span style="background-color: #FF0000">      </span>    @tool_target@ Libraries
+
+Source0:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aa
+Source1:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ab
+Source2:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ac
+Source3:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ad
+Source4:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ae
+Source5:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.af
+Source6:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ag
+Source7:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ah
+Source8:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ai
+Source9:  ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aj
+Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ak
+Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.al
+Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.am
+Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.an
+Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ao
+Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ap
+Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aq
+Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ar
+Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.as
+Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.at
+Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.au
+Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.av
+Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aw
+Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ax
+Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ay
+Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.az
+Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ba
+Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bb
+Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bc
+Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bd
+Source30: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.be
+Source31: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bf
+Source32: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bg
+Source33: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bh
+Source34: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bi
+Source35: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bj
+Source36: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bk
+Source37: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bl
+Source38: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bm
+Source39: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bn
+Source40: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bo
+
+%description
+@tool_target@ libraries.
+
+%prep
+%setup -q -c -T -n %{name}-%{version}
+
+  cat \
+ %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
+ %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
+ %SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
+ %SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
+ %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
+ %SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
+ %SOURCE30 %SOURCE31 %SOURCE32 %SOURCE33 %SOURCE34 \
+ %SOURCE35 %SOURCE36 %SOURCE37 %SOURCE38 %SOURCE39 \
+ %SOURCE40 \
+ | %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include %{?el5:||:}
+
+%build
+  # Setup sys-root (Usable for gcc >= 3.4)
+  mkdir -p @tool_target@/sys-root
+  %{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
+
+  pushd @tool_target@/sys-root/usr/lib > /dev/null
+  # missing files
+  rm -f lib*_p.*
+  # not needed
+  rm -rf aout compat
+
+  # Fix up symlinks
+  find -type l -exec ls -l {} \; | \
+    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
+    case $aA in
+    /lib* ) # link
+       rm $a8;
+       b=`basename $aA`
+       ln -s ../../lib/$b $a8
+       ;;
+    esac
+  done
+  popd > /dev/null
+
+%install
+  rm -rf $RPM_BUILD_ROOT
+  mkdir -p $RPM_BUILD_ROOT%{_prefix}
+  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
+
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/freebsd8.0/x86_64/target-libs.add:1.1
--- /dev/null   Mon May 24 03:14:35 2010
+++ rtems/contrib/crossrpms/freebsd8.0/x86_64/target-libs.add   Mon May 24 02:29:19 2010
</font><font color='#997700'>@@ -0,0 +1,11 @@
</font><font color='#000088'>+%package sys-root
+Group: Development/Tools
+Summary: @tool_target@ target files for gcc >= 3.4
+
+%description sys-root
+@tool_target@ target files for gcc >= 3.4
+
+%files sys-root
+%defattr(-,root,root,-)
+%dir %{_prefix}/@tool_target@
+%{_prefix}/@tool_target@/sys-root
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/.cvsignore:1.1
--- /dev/null   Mon May 24 03:14:35 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/.cvsignore       Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,4 @@
</font><font color='#000088'>+Makefile
+Makefile.in
+rtems*.spec
+*.spec.in
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/Makefile.am:1.1
--- /dev/null   Mon May 24 03:14:35 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/Makefile.am      Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,24 @@
</font><font color='#000088'>+# $Id$
+
+TARGET = amd64-pc-netbsdelf5.0.2
+
+include $(top_srcdir)/mkspec.am
+
+NETBSD_VERS = 5.0.2
+NETBSD_RPMREL = 0.20100419.1
+EXTRA_DIST += libs.add
+EXTRA_DIST += target-libs.add
+include ../libs.am
+
+BINUTILS_VERS = 2.20.1
+BINUTILS_PKGVERS = $(BINUTILS_VERS)
+BINUTILS_RPMREL = 0.20100419.0
+include ../binutils.am
+BINUTILS_OPTS +=
+
+GCC_VERS = 4.5.0
+GCC_PKGVERS = $(GCC_VERS)
+GCC_RPMREL = 0.20100427.0
+include ../gcc.am
+# C only
+GCC_OPTS += --languages=c,cxx,fortran,objc
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-binutils.spec:1.1
--- /dev/null   Mon May 24 03:14:36 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-binutils.spec    Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,170 @@
</font><font color='#000088'>+#
+# Please send bugfixes or comments to
+#<span style="background-color: #FF0000"> </span>        http://www.rtems.org/bugzilla
+#
+
+
+%ifos cygwin cygwin32 mingw mingw32
+%define _exeext .exe
+%define debug_package           %{nil}
+%define _libdir                 %{_exec_prefix}/lib
+%else
+%define _exeext %{nil}
+%endif
+
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%endif
+
+%ifos mingw mingw32
+%if %{defined _mingw32_cflags}
+%define optflags %{_mingw32_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%endif
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix %{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
+%define binutils_pkgvers 2.20.1
+%define binutils_version 2.20.1
+%define binutils_rpmvers %{expand:%(echo "2.20.1" | tr - _ )}
+
+Name:          amd64-pc-netbsdelf5.0.2-binutils
+Summary:       Binutils for target amd64-pc-netbsdelf5.0.2
+Group:         Development/Tools
+Version:       %{binutils_rpmvers}
+Release:       0.20100419.0%{?dist}
+License:       GPL/LGPL
+URL:<span style="background-color: #FF0000"> </span>             http://sources.redhat.com/binutils
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: %{_host_rpmprefix}gcc
+
+%if "%{binutils_version}" >= "2.18"
+# Bug in bfd: Doesn't build without texinfo installed
+BuildRequires: texinfo >= 4.2
+%else
+%endif
+BuildRequires: flex
+BuildRequires: bison
+
+Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
+
+%description
+Cross binutils for target amd64-pc-netbsdelf5.0.2
+%prep
+%setup -q -c -T -n %{name}-%{version}
+
+%setup -q -D -T -n %{name}-%{version} -a0
+cd binutils-%{binutils_pkgvers}
+%{?PATCH0:%patch0 -p1}
+cd ..
+
+%build
+  mkdir -p build
+  cd build
+%if "%{_build}" != "%{_host}"
+  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
+  CFLAGS="$RPM_OPT_FLAGS" \
+  ../binutils-%{binutils_pkgvers}/configure \
+    --build=%_build --host=%_host \
+    --target=amd64-pc-netbsdelf5.0.2 \
+    --verbose --disable-nls \
+    --without-included-gettext \
+    --disable-win32-registry \
+    --disable-werror \
+    --with-sysroot=%{_prefix}/amd64-pc-netbsdelf5.0.2/sys-root \
+    --prefix=%{_prefix} --bindir=%{_bindir} \
+    --exec-prefix=%{_exec_prefix} \
+    --includedir=%{_includedir} --libdir=%{_libdir} \
+    --mandir=%{_mandir} --infodir=%{_infodir}
+
+  make %{?_smp_mflags} all
+  cd ..
+
+%install
+  rm -rf $RPM_BUILD_ROOT
+
+  cd build
+  make DESTDIR=$RPM_BUILD_ROOT install
+
+
+# Conflict with a native binutils' infos
+  rm -rf $RPM_BUILD_ROOT%{_infodir}
+
+# We don't ship host files
+  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
+
+# manpages without corresponding tools
+  if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/amd64-pc-netbsdelf5.0.2-dlltool%{_exeext}; then<span style="background-color: #FF0000"> </span>
+    rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-dlltool*
+  fi
+  if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/amd64-pc-netbsdelf5.0.2-nlmconv%{_exeext}; then<span style="background-color: #FF0000"> </span>
+    rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-nlmconv*
+  fi
+  if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/amd64-pc-netbsdelf5.0.2-windres%{_exeext}; then<span style="background-color: #FF0000"> </span>
+    rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-windres*
+  fi
+  if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/amd64-pc-netbsdelf5.0.2-windmc%{_exeext}; then<span style="background-color: #FF0000"> </span>
+    rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-windmc*
+  fi
+
+  cd ..
+
+# Extract %%__os_install_post into os_install_post~
+cat << \EOF > os_install_post~
+%__os_install_post
+EOF
+
+# Generate customized brp-*scripts
+cat os_install_post~ | while read a x y; do
+case $a in
+# Prevent brp-strip* from trying to handle foreign binaries
+*/brp-strip*)
+  b=$(basename $a)
+  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
+< os_install_post~ > os_install_post<span style="background-color: #FF0000"> </span>
+%define __os_install_post . ./os_install_post
+
+%clean
+  rm -rf $RPM_BUILD_ROOT
+
+# ==============================================================
+# amd64-pc-netbsdelf5.0.2-binutils
+# ==============================================================
+# %package -n amd64-pc-netbsdelf5.0.2-binutils
+# Summary:      rtems binutils for amd64-pc-netbsdelf5.0.2
+# Group: Development/Tools
+# %if %build_infos
+# Requires: binutils-common
+# %endif
+
+%description -n amd64-pc-netbsdelf5.0.2-binutils
+GNU binutils targetting amd64-pc-netbsdelf5.0.2.
+
+%files -n amd64-pc-netbsdelf5.0.2-binutils
+%defattr(-,root,root)
+
+%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-*.1*
+
+%{_bindir}/amd64-pc-netbsdelf5.0.2-*
+
+%dir %{_exec_prefix}/amd64-pc-netbsdelf5.0.2
+%dir %{_exec_prefix}/amd64-pc-netbsdelf5.0.2/bin
+%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/bin/*
+
+%dir %{_exec_prefix}/amd64-pc-netbsdelf5.0.2/lib
+%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/lib/ldscripts
+
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-gcc.spec:1.1
--- /dev/null   Mon May 24 03:14:36 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-gcc.spec Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,776 @@
</font><font color='#000088'>+#
+# Please send bugfixes or comments to
+#<span style="background-color: #FF0000"> </span>        http://www.rtems.org/bugzilla
+#
+
+
+%ifos cygwin cygwin32 mingw mingw32
+%define _exeext .exe
+%define debug_package           %{nil}
+%define _libdir                 %{_exec_prefix}/lib
+%else
+%define _exeext %{nil}
+%endif
+
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%endif
+
+%ifos mingw mingw32
+%if %{defined _mingw32_cflags}
+%define optflags %{_mingw32_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%endif
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix %{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
+
+%define gcc_pkgvers 4.5.0
+%define gcc_version 4.5.0
+%define gcc_rpmvers %{expand:%(echo "4.5.0" | tr - _ )}
+
+
+Name:<span style="background-color: #FF0000">         </span>    amd64-pc-netbsdelf5.0.2-gcc
+Summary:<span style="background-color: #FF0000">      </span>    amd64-pc-netbsdelf5.0.2 gcc
+
+Group: <span style="background-color: #FF0000">      </span>     Development/Tools
+Version:        %{gcc_rpmvers}
+Release:<span style="background-color: #FF0000">      </span>    0.20100427.0%{?dist}
+License:<span style="background-color: #FF0000">      </span>    GPL
+URL:           http://gcc.gnu.org
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%define _use_internal_dependency_generator 0
+
+BuildRequires:  %{_host_rpmprefix}gcc
+
+# FIXME: Disable lto for now, to avoid dependencies on libelf
+%bcond_with lto
+
+# FIXME: Disable python gdb scripts
+# ATM, no idea how to package them
+%bcond_with pygdb
+
+# FIXME: Disable GCC-plugin
+# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
+%bcond_with plugin
+
+# versions of libraries, we conditionally bundle if necessary
+%global mpc_version    0.8.1
+%global mpfr_version   2.4.2
+%global gmp_version    4.3.2
+%global libelf_version  0.8.13
+
+# versions of libraries these distros are known to ship
+%if 0%{?fc13}
+%global mpc_provided 0.8.1
+%global mpfr_provided 2.4.2
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?fc12}
+%global mpc_provided 0.8
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?fc11}
+%global mpc_provided %{nil}
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.2.4
+%endif
+
+%if 0%{?el6}
+%global mpc_provided %{nil}
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?el5}
+%global mpc_provided %{nil}
+%global mpfr_provided %{nil}
+%global gmp_provided 4.1.4
+%endif
+
+%if 0%{?suse11_0}
+%global mpc_provided %{nil}
+%global mpfr_provided 2.3.1
+%global gmp_provided 4.2.2
+%endif
+
+%if 0%{?suse11_1}
+%global mpc_provided %{nil}
+%global mpfr_provided 2.3.2
+%global gmp_provided 4.2.3
+%endif
+
+%if 0%{?suse11_2}
+%global mpc_provided 0.7
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?cygwin}
+%global mpc_provided 0.8
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.1
+%endif
+
+%if 0%{?mingw32}
+%global mpc_provided 0.8.1
+%global mpfr_provided 2.4.1
+%global gmp_provided 4.3.2
+%endif
+
+%if "%{gcc_version}" >= "4.2.0"
+%define gmp_required           4.1
+%define mpfr_required          2.2.1
+%endif
+
+%if "%{gcc_version}" >= "4.3.0"
+%define gmp_required           4.1
+%define mpfr_required          2.3.1
+%endif
+
+%if "%{gcc_version}" >= "4.3.3"
+%define cloog_required<span style="background-color: #FF0000"> </span>           0.15
+%endif
+
+%if "%{gcc_version}" >= "4.4.0"
+%define mpfr_required          2.3.2
+%endif
+
+%if "%{gcc_version}" >= "4.5.0"
+%define mpc_required<span style="background-color: #FF0000"> </span>             0.8
+%if %{with lto}
+%define libelf_required<span style="background-color: #FF0000"> </span>  0.8.12
+%endif
+%endif
+
+%if %{defined mpc_required}
+%if "%{mpc_provided}" >= "%{mpc_required}"
+%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
+%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}mpc-devel >= %{mpc_required}
+%endif
+%else
+%define _build_mpc 1
+%define gmp_required<span style="background-color: #FF0000"> </span>             4.2
+%endif
+%endif
+
+%if %{defined gmp_required}
+%if "%{gmp_provided}" >= "%{gmp_required}"
+BuildRequires: gmp-devel >= %{gmp_required}
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{gmp_required}
+%endif
+%else
+%define _build_gmp 1
+%endif
+%endif
+
+%if %{defined libelf_required}
+%if "%{libelf_provided}" >= "%{libelf_required}"
+BuildRequires: libelf-devel >= %{libelf_required}
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}libelf-devel >= %{libelf_required}
+%endif
+%else
+%define _build_libelf 1
+%endif
+%endif
+
+
+%if %{defined cloog_required}
+%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
+%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
+%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
+%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
+%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
+%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
+%endif
+
+
+%if %{defined mpfr_required}
+%if "%{mpfr_provided}" >= "%{mpfr_required}"
+BuildRequires: mpfr-devel >= %{mpfr_required}
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
+%endif
+%else
+%define _build_mpfr 1
+%endif
+%endif
+
+%if "%{_build}" != "%{_host}"
+BuildRequires:  amd64-pc-netbsdelf5.0.2-gcc = %{gcc_rpmvers}
+%endif
+
+%if "%{gcc_version}" >= "4.2.0"
+BuildRequires: flex bison
+%endif
+
+
+BuildRequires: texinfo >= 4.2
+BuildRequires: amd64-pc-netbsdelf5.0.2-binutils
+BuildRequires: amd64-pc-netbsdelf5.0.2-sys-root
+
+Requires:      amd64-pc-netbsdelf5.0.2-binutils
+Requires:      amd64-pc-netbsdelf5.0.2-sys-root
+Requires:      amd64-pc-netbsdelf5.0.2-gcc-libgcc = %{gcc_rpmvers}-%{release}
+
+%if "%{gcc_version}" >= "4.5.0"
+BuildRequires:  zlib-devel
+%if "%{_build}" != "%{_host}"
+BuildRequires:  %{_host_rpmprefix}zlib-devel
+%endif
+%else
+%endif
+
+%global _gcclibdir %{_prefix}/lib
+
+Source0:<span style="background-color: #FF0000"> </span> ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.5.0"
+Patch0:         ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-core-4.5.0-rtems4.11-20100419.diff
+%endif
+%{?_without_sources:NoSource:  0}
+
+Source1:<span style="background-color: #FF0000"> </span> ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_without_sources:NoSource:  1}
+
+Source2:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
+%{?_without_sources:NoSource:  2}
+
+Source5:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
+%{?_without_sources:NoSource:  5}
+
+%if 0%{?_build_mpfr}
+Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
+%endif
+
+%if 0%{?_build_mpc}
+Source61:    http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
+%endif
+
+%if 0%{?_build_gmp}
+Source62:    ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
+%endif
+
+%if 0%{?_build_libelf}
+Source63:    http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
+%endif
+
+%description
+Cross gcc for amd64-pc-netbsdelf5.0.2.
+
+%prep
+%setup -c -T -n %{name}-%{version}
+
+%setup -q -T -D -n %{name}-%{version} -a0
+cd gcc-%{gcc_pkgvers}
+%{?PATCH0:%patch0 -p1}
+cd ..
+
+%setup -q -T -D -n %{name}-%{version} -a1
+cd gcc-%{gcc_pkgvers}
+%{?PATCH1:%patch1 -p1}
+cd ..
+
+%setup -q -T -D -n %{name}-%{version} -a2
+%{?PATCH2:%patch2 -p0}
+
+
+
+%setup -q -T -D -n %{name}-%{version} -a5
+%{?PATCH5:%patch5 -p0}
+
+
+%if 0%{?_build_mpfr}
+%setup -q -T -D -n %{name}-%{version} -a60
+%{?PATCH60:%patch60 -p1}
+  # Build mpfr one-tree style
+  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
+%endif
+
+%if 0%{?_build_mpc}
+%setup -q -T -D -n %{name}-%{version} -a61
+%{?PATCH61:%patch61 -p1}
+  # Build mpc one-tree style
+  ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
+%endif
+
+%if 0%{?_build_gmp}
+%setup -q -T -D -n %{name}-%{version} -a62
+%{?PATCH62:%patch62 -p1}
+  # Build gmp one-tree style
+  ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
+%endif
+
+%if 0%{?_build_libelf}
+%setup -q -T -D -n %{name}-%{version} -a63
+%{?PATCH63:%patch63 -p1}
+  # Build libelf one-tree style
+  ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
+%endif
+
+
+  # Fix timestamps
+  cd gcc-%{gcc_pkgvers}
+  contrib/gcc_update --touch
+  cd ..
+%build
+  mkdir -p build
+
+  cd build
+
+  languages="c"
+  languages="$languages,c++"
+  languages="$languages,fortran"
+  languages="$languages,objc"
+%if "%{_build}" != "%{_host}"
+  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
+%else
+# gcc is not ready to be compiled with -std=gnu99
+  CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
+%endif
+  ../gcc-%{gcc_pkgvers}/configure \
+    --prefix=%{_prefix} \
+    --bindir=%{_bindir} \
+    --exec_prefix=%{_exec_prefix} \
+    --includedir=%{_includedir} \
+    --libdir=%{_gcclibdir} \
+    --libexecdir=%{_libexecdir} \
+    --mandir=%{_mandir} \
+    --infodir=%{_infodir} \
+    --datadir=%{_datadir} \
+    --build=%_build --host=%_host \
+    --target=amd64-pc-netbsdelf5.0.2 \
+    --disable-libstdcxx-pch \
+    --with-gnu-as --with-gnu-ld --verbose \
+    --with-system-zlib \
+    --disable-nls --without-included-gettext \
+    --disable-win32-registry \
+    --enable-version-specific-runtime-libs \
+    --enable-threads \
+    --with-sysroot=%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/sys-root \
+    %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
+    %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+    --enable-languages="$languages" $optargs
+
+%if "%_host" != "%_build"
+  # Bug in gcc-3.2.1:
+  # Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
+  mkdir -p gcc/include
+  cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
+%endif
+
+  make %{?_smp_mflags} all
+  cd ..
+
+%install
+  rm -rf $RPM_BUILD_ROOT
+
+  cd build
+
+  make DESTDIR=$RPM_BUILD_ROOT install
+  cd ..
+
+
+%if "%{gcc_version}" <= "4.1.2"
+# Misplaced header file
+  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
+    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
+      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include/
+  fi
+%endif
+
+  # host library
+%if "%{gcc_version}" >= "4.2.0"
+  # libiberty doesn't honor --libdir, but always installs to a<span style="background-color: #FF0000"> </span>
+  # magically guessed _libdir
+  rm -f  ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
+%else
+  # libiberty installs to --libdir=...
+  rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
+%endif
+
+  # We use the version from binutils
+  rm -f $RPM_BUILD_ROOT%{_bindir}/amd64-pc-netbsdelf5.0.2-c++filt%{_exeext}
+
+
+# Conflict with a native GCC's infos
+  rm -rf $RPM_BUILD_ROOT%{_infodir}
+
+# Conflict with a native GCC's man pages
+  rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
+
+  # Bug in gcc-3.4.0pre
+  rm -f $RPM_BUILD_ROOT%{_bindir}/amd64-pc-netbsdelf5.0.2-amd64-pc-netbsdelf5.0.2-gcjh%{_exeext}
+
+  # Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
+  # the fixinclude-install-tools
+  rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/install-tools
+  rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/install-tools
+
+  # Bug in gcc > 4.1.0: Installs an unused, empty directory
+  if test -d ${RPM_BUILD_ROOT}%{_prefix}/amd64-pc-netbsdelf5.0.2/include/bits; then
+    rmdir ${RPM_BUILD_ROOT}%{_prefix}/amd64-pc-netbsdelf5.0.2/include/bits
+  fi
+
+  # gcc >= 4.5.0: installs weird libstdc++ python bindings.
+%if ! %{with pygdb}
+  if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
+    rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
+  fi
+%endif
+
+  # Collect multilib subdirectories
+  multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
+
+
+  rm -f dirs ;
+  echo "%defattr(-,root,root,-)" >> dirs
+  TGTDIR="%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}"
+  for i in $multilibs; do
+    case $i in
+    \.) ;; # ignore, handled elsewhere
+    *)  echo "%dir ${TGTDIR}/$i" >> dirs
+      ;;
+    esac
+  done
+
+  # Collect files to go into different packages
+  cp dirs build/files.gcc
+  cp dirs build/files.gfortran
+  cp dirs build/files.objc
+  cp dirs build/files.gcj
+  cp dirs build/files.g++
+
+  TGTDIR="%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}"
+  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
+  for i in $f; do
+    case $i in
+    *lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
+    *f771) ;;
+    *f951) ;;
+    *cc1) ;;
+    *cc1obj) ;;
+    *cc1plus) ;; # ignore: explicitly put into rpm elsewhere
+    *collect2) ;;
+    *libobjc*) echo "$i" >> build/files.objc ;;
+    *include/objc*) ;;
+    *include/g++*);;
+    *include/c++*);;
+    *include-fixed/*);;
+    *finclude/*);;
+    *adainclude*);;
+    *adalib*);;
+    *gnat1);;
+    *jc1) ;;
+    *jvgenmain) ;;
+    */libgfortran*.*) echo "$i" >> build/files.gfortran ;;
+    %{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
+    %{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
+    */libstdc++.*) echo "$i" >> build/files.g++ ;;
+    */libsupc++.*) echo "$i" >> build/files.g++ ;;
+    *) echo "$i" >> build/files.gcc ;;
+    esac
+  done
+
+  TGTDIR="%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/lib"
+  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
+  for i in $f; do
+    case $i in
+    *lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
+    *libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
+# all other files belong to newlib
+    *) echo "$i" >> build/files.newlib ;;<span style="background-color: #FF0000"> </span>
+    esac
+  done
+# Extract %%__os_install_post into os_install_post~
+cat << \EOF > os_install_post~
+%__os_install_post
+EOF
+
+# Generate customized brp-*scripts
+cat os_install_post~ | while read a x y; do
+case $a in
+# Prevent brp-strip* from trying to handle foreign binaries
+*/brp-strip*)
+  b=$(basename $a)
+  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
+< os_install_post~ > os_install_post<span style="background-color: #FF0000"> </span>
+%define __os_install_post . ./os_install_post
+
+
+cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
+#!/bin/sh
+grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/(lib|include|sys-root)' \
+  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/'} | %__find_provides
+EOF
+chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
+%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
+
+cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+#!/bin/sh
+grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/(lib|include|sys-root)' \
+  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/'} | %__find_requires
+EOF
+chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+  b=$(basename $a)
+  sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post<span style="background-color: #FF0000"> </span>
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
+%clean
+  rm -rf $RPM_BUILD_ROOT
+
+# ==============================================================
+# amd64-pc-netbsdelf5.0.2-gcc
+# ==============================================================
+# %package -n amd64-pc-netbsdelf5.0.2-gcc
+# Summary:        GNU cc compiler for amd64-pc-netbsdelf5.0.2
+# Group:          Development/Tools
+# Version:        %{gcc_rpmvers}
+# Requires:       amd64-pc-netbsdelf5.0.2-binutils
+# License:     GPL
+
+# %if %build_infos
+# Requires:      gcc-common
+# %endif
+
+%description -n amd64-pc-netbsdelf5.0.2-gcc
+GNU cc compiler for amd64-pc-netbsdelf5.0.2.
+
+# ==============================================================
+# amd64-pc-netbsdelf5.0.2-gcc-libgcc
+# ==============================================================
+%package -n amd64-pc-netbsdelf5.0.2-gcc-libgcc
+Summary:        libgcc for amd64-pc-netbsdelf5.0.2-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+%{?_with_noarch_subpackages:BuildArch: noarch}
+License:       GPL
+
+%description -n amd64-pc-netbsdelf5.0.2-gcc-libgcc
+libgcc amd64-pc-netbsdelf5.0.2-gcc.
+
+
+%files -n amd64-pc-netbsdelf5.0.2-gcc
+%defattr(-,root,root)
+
+%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-gcc.1*
+%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-cpp.1*
+%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-gcov.1*
+
+%{_bindir}/amd64-pc-netbsdelf5.0.2-cpp%{_exeext}
+%{_bindir}/amd64-pc-netbsdelf5.0.2-gcc%{_exeext}
+%{_bindir}/amd64-pc-netbsdelf5.0.2-gcc-%{gcc_version}%{_exeext}
+%{_bindir}/amd64-pc-netbsdelf5.0.2-gcov%{_exeext}
+%{_bindir}/amd64-pc-netbsdelf5.0.2-gccbug
+
+%dir %{_libexecdir}/gcc
+%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2
+%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
+%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/cc1%{_exeext}
+%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/collect2%{_exeext}
+%if "%{gcc_version}" >= "4.5.0"
+%{?with_lto:%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/lto%{_exeext}}
+%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/lto-wrapper%{_exeext}
+%endif
+
+%files -n amd64-pc-netbsdelf5.0.2-gcc-libgcc -f build/files.gcc
+%defattr(-,root,root)
+%dir %{_gcclibdir}/gcc
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include
+
+%if "%{gcc_version}" > "4.0.3"
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include/ssp
+%endif
+
+%if "%{gcc_version}" >= "4.3.0"
+%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include-fixed
+%endif
+
+# ==============================================================
+# amd64-pc-netbsdelf5.0.2-gcc-c++
+# ==============================================================
+%package -n amd64-pc-netbsdelf5.0.2-gcc-c++
+Summary:       GCC c++ compiler for amd64-pc-netbsdelf5.0.2
+Group:         Development/Tools
+Version:        %{gcc_rpmvers}
+License:       GPL
+Requires:       amd64-pc-netbsdelf5.0.2-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
+
+%if "%{_build}" != "%{_host}"
+BuildRequires:  amd64-pc-netbsdelf5.0.2-gcc-c++ = %{gcc_rpmvers}
+%endif
+
+Requires:       amd64-pc-netbsdelf5.0.2-gcc = %{gcc_rpmvers}-%{release}
+
+%description -n amd64-pc-netbsdelf5.0.2-gcc-c++
+GCC c++ compiler for amd64-pc-netbsdelf5.0.2.
+
+
+%package -n amd64-pc-netbsdelf5.0.2-gcc-libstdc++
+Summary:       libstdc++ for amd64-pc-netbsdelf5.0.2
+Group:         Development/Tools
+Version:        %{gcc_rpmvers}
+%{?_with_noarch_subpackages:BuildArch: noarch}
+License:       GPL
+
+%description -n amd64-pc-netbsdelf5.0.2-gcc-libstdc++
+%{summary}
+
+
+%files -n amd64-pc-netbsdelf5.0.2-gcc-c++
+%defattr(-,root,root)
+
+%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-g++.1*
+
+%{_bindir}/amd64-pc-netbsdelf5.0.2-c++%{_exeext}
+%{_bindir}/amd64-pc-netbsdelf5.0.2-g++%{_exeext}
+
+%dir %{_libexecdir}/gcc
+%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2
+%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
+%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/cc1plus%{_exeext}
+
+
+%files -n amd64-pc-netbsdelf5.0.2-gcc-libstdc++ -f build/files.g++
+%defattr(-,root,root)
+%dir %{_gcclibdir}/gcc
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include
+%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include/c++
+
+# ==============================================================
+# amd64-pc-netbsdelf5.0.2-gcc-gfortran
+# ==============================================================
+%package -n amd64-pc-netbsdelf5.0.2-gcc-gfortran
+Summary:       Fortran 95 support for amd64-pc-netbsdelf5.0.2-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+License:       GPL
+
+Requires:       amd64-pc-netbsdelf5.0.2-gcc = %{gcc_rpmvers}-%{release}
+Requires:       amd64-pc-netbsdelf5.0.2-gcc-libgfortran = %{gcc_rpmvers}-%{release}
+
+%description -n amd64-pc-netbsdelf5.0.2-gcc-gfortran
+GCC fortran compiler for amd64-pc-netbsdelf5.0.2.
+
+%files -n amd64-pc-netbsdelf5.0.2-gcc-gfortran
+%defattr(-,root,root)
+%{_bindir}/amd64-pc-netbsdelf5.0.2-gfortran%{_exeext}
+
+%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-gfortran.1*
+
+%dir %{_libexecdir}/gcc
+%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2
+%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
+%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/f951%{_exeext}
+
+# ==============================================================
+# amd64-pc-netbsdelf5.0.2-gcc-libgfortran
+# ==============================================================
+%package -n amd64-pc-netbsdelf5.0.2-gcc-libgfortran
+Summary:       Fortran 95 support libraries for amd64-pc-netbsdelf5.0.2-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+%{?_with_noarch_subpackages:BuildArch: noarch}
+License:       GPL
+
+%description -n amd64-pc-netbsdelf5.0.2-gcc-libgfortran
+%{summary}
+
+%files -n amd64-pc-netbsdelf5.0.2-gcc-libgfortran -f build/files.gfortran
+%defattr(-,root,root)
+%dir %{_gcclibdir}/gcc
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
+%if "%{gcc_version}" >= "4.2.0"
+%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/finclude
+%endif
+
+# ==============================================================
+# amd64-pc-netbsdelf5.0.2-gcc-objc
+# ==============================================================
+%package -n amd64-pc-netbsdelf5.0.2-gcc-objc
+Summary:        Objective C support for amd64-pc-netbsdelf5.0.2-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+License:       GPL
+
+Requires:       amd64-pc-netbsdelf5.0.2-gcc = %{gcc_rpmvers}-%{release}
+Requires:       amd64-pc-netbsdelf5.0.2-gcc-libobjc = %{gcc_rpmvers}-%{release}
+
+%description -n amd64-pc-netbsdelf5.0.2-gcc-objc
+GCC objc compiler for amd64-pc-netbsdelf5.0.2.
+
+%files -n amd64-pc-netbsdelf5.0.2-gcc-objc
+%defattr(-,root,root)
+%dir %{_libexecdir}/gcc
+%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2
+%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
+%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/cc1obj%{_exeext}
+
+# ==============================================================
+# amd64-pc-netbsdelf5.0.2-gcc-libobjc
+# ==============================================================
+%package -n amd64-pc-netbsdelf5.0.2-gcc-libobjc
+Summary:        Objective C support for amd64-pc-netbsdelf5.0.2-gcc
+Group:          Development/Tools
+Version:        %{gcc_rpmvers}
+%{?_with_noarch_subpackages:BuildArch: noarch}
+License:       GPL
+
+%description -n amd64-pc-netbsdelf5.0.2-gcc-libobjc
+Support libraries for GCC's objc compiler for amd64-pc-netbsdelf5.0.2.
+
+%files -n amd64-pc-netbsdelf5.0.2-gcc-libobjc -f build/files.objc
+%defattr(-,root,root)
+%dir %{_gcclibdir}/gcc
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
+%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include
+%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include/objc
+
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-libs.spec:1.1
--- /dev/null   Mon May 24 03:14:36 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-libs.spec        Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,163 @@
</font><font color='#000088'>+#
+# Please send bugfixes or comments to
+#<span style="background-color: #FF0000"> </span>        http://www.rtems.org/bugzilla
+#
+
+
+%ifos cygwin cygwin32 mingw mingw32
+%define _exeext .exe
+%define debug_package           %{nil}
+%define _libdir                 %{_exec_prefix}/lib
+%else
+%define _exeext %{nil}
+%endif
+
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%endif
+
+%ifos mingw mingw32
+%if %{defined _mingw32_cflags}
+%define optflags %{_mingw32_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%endif
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix %{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
+%define netbsd_version 5.0.2
+%define netbsd_rpmvers %{expand:%(echo 5.0.2 | tr - _)}
+
+%define _use_internal_dependency_generator 0
+%define __debug_install_post %{nil}
+
+Name:          amd64-pc-netbsdelf5.0.2
+Release:       0.20100419.1%{?dist}
+License:       NetBSD
+Group:         Development/Tools
+
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:     noarch
+
+Version:<span style="background-color: #FF0000">      </span>    %netbsd_rpmvers
+Summary:<span style="background-color: #FF0000">      </span>    amd64-pc-netbsdelf5.0.2 Libraries
+
+Source0:       ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.2/amd64/binary/sets/base.tgz
+Source1:       ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.2/amd64/binary/sets/comp.tgz
+
+%description
+amd64-pc-netbsdelf5.0.2 libraries.
+
+%prep
+%setup -q -c -T -n %{name}-%{version} -a 0 -a 1
+
+%build
+  # Setup sys-root (Usable for gcc >= 3.4)
+  mkdir -p amd64-pc-netbsdelf5.0.2/sys-root
+  %{__tar} cf - lib usr/lib usr/include | ( cd amd64-pc-netbsdelf5.0.2/sys-root ; %{__tar} xf -)
+
+  pushd amd64-pc-netbsdelf5.0.2/sys-root/usr/lib > /dev/null
+  # missing files
+  rm -f lib*_p.*
+  # not needed
+  rm -rf aout compat
+
+  # Fix up symlinks
+  find -type l -exec ls -l {} \; | \
+    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
+    case $aA in
+    /lib* ) # link
+       rm $a8;
+       b=`basename $aA`
+       ln -s ../../lib/$b $a8
+       ;;
+    esac
+  done
+  popd > /dev/null
+
+%install
+  rm -rf $RPM_BUILD_ROOT
+  mkdir -p $RPM_BUILD_ROOT%{_prefix}
+  cp -a amd64-pc-netbsdelf5.0.2 $RPM_BUILD_ROOT%{_prefix}
+
+# Extract %%__os_install_post into os_install_post~
+cat << \EOF > os_install_post~
+%__os_install_post
+EOF
+
+# Generate customized brp-*scripts
+cat os_install_post~ | while read a x y; do
+case $a in
+# Prevent brp-strip* from trying to handle foreign binaries
+*/brp-strip*)
+  b=$(basename $a)
+  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
+< os_install_post~ > os_install_post<span style="background-color: #FF0000"> </span>
+%define __os_install_post . ./os_install_post
+
+
+cat << EOF > %{_builddir}/%{name}-%{netbsd_rpmvers}/find-provides
+#!/bin/sh
+grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/(lib|include|sys-root)' \
+  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/'} | %__find_provides
+EOF
+chmod +x %{_builddir}/%{name}-%{netbsd_rpmvers}/find-provides
+%define __find_provides %{_builddir}/%{name}-%{netbsd_rpmvers}/find-provides
+
+cat << EOF > %{_builddir}/%{name}-%{netbsd_rpmvers}/find-requires
+#!/bin/sh
+grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/(lib|include|sys-root)' \
+  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/'} | %__find_requires
+EOF
+chmod +x %{_builddir}/%{name}-%{netbsd_rpmvers}/find-requires
+%define __find_requires %{_builddir}/%{name}-%{netbsd_rpmvers}/find-requires
+
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+  b=$(basename $a)
+  sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+  chmod a+x $b
+  ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post<span style="background-color: #FF0000"> </span>
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
+%clean
+  rm -rf $RPM_BUILD_ROOT
+
+%package sys-root
+Group: Development/Tools
+Summary: amd64-pc-netbsdelf5.0.2 target files for gcc >= 3.4
+
+%description sys-root
+amd64-pc-netbsdelf5.0.2 target files for gcc >= 3.4
+
+%files sys-root
+%defattr(-,root,root,-)
+%dir %{_prefix}/amd64-pc-netbsdelf5.0.2
+%{_prefix}/amd64-pc-netbsdelf5.0.2/sys-root
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/binutils-sources.add:1.1
--- /dev/null   Mon May 24 03:14:36 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/binutils-sources.add     Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
+@PATCH0@
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/gcc-sources.add:1.1
--- /dev/null   Mon May 24 03:14:36 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/gcc-sources.add  Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,35 @@
</font><font color='#000088'>+Source0:<span style="background-color: #FF0000"> </span>        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.5.0"
+Patch0:         ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-core-4.5.0-rtems4.11-20100419.diff
+%endif
+%{?_without_sources:NoSource:  0}
+
+%if %build_cxx
+Source1:<span style="background-color: #FF0000"> </span> ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+@PATCH1@
+%{?_without_sources:NoSource:  1}
+
+%endif
+%if %build_fortran
+Source2:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
+@PATCH2@
+%{?_without_sources:NoSource:  2}
+
+%endif
+%if %build_gcj
+Source3:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
+@PATCH3@
+%{?_without_sources:NoSource:  3}
+
+%endif
+%if %build_gnat
+Source4:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
+@PATCH4@
+%{?_without_sources:NoSource:  4}
+
+%endif
+%if %build_objc
+Source5:       ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
+@PATCH5@
+%{?_without_sources:NoSource:  5}
+%endif
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/libs.add:1.1
--- /dev/null   Mon May 24 03:14:36 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/libs.add Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,55 @@
</font><font color='#000088'>+%define netbsd_version @NETBSD_VERS@
+%define netbsd_rpmvers %{expand:%(echo @NETBSD_VERS@ | tr - _)}
+
+%define _use_internal_dependency_generator 0
+%define __debug_install_post %{nil}
+
+Name:          @rpmprefix@@tool_target@
+Release:       @NETBSD_RPMREL@
+License:       NetBSD
+Group:         Development/Tools
+
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:     noarch
+
+Version:<span style="background-color: #FF0000">      </span>    %netbsd_rpmvers
+Summary:<span style="background-color: #FF0000">      </span>    @tool_target@ Libraries
+
+Source0:       ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.2/amd64/binary/sets/base.tgz
+Source1:       ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0.2/amd64/binary/sets/comp.tgz
+
+%description
+@tool_target@ libraries.
+
+%prep
+%setup -q -c -T -n %{name}-%{version} -a 0 -a 1
+
+%build
+  # Setup sys-root (Usable for gcc >= 3.4)
+  mkdir -p @tool_target@/sys-root
+  %{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
+
+  pushd @tool_target@/sys-root/usr/lib > /dev/null
+  # missing files
+  rm -f lib*_p.*
+  # not needed
+  rm -rf aout compat
+
+  # Fix up symlinks
+  find -type l -exec ls -l {} \; | \
+    while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
+    case $aA in
+    /lib* ) # link
+       rm $a8;
+       b=`basename $aA`
+       ln -s ../../lib/$b $a8
+       ;;
+    esac
+  done
+  popd > /dev/null
+
+%install
+  rm -rf $RPM_BUILD_ROOT
+  mkdir -p $RPM_BUILD_ROOT%{_prefix}
+  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
+
</font>
<font color='#006600'>diff -u /dev/null rtems/contrib/crossrpms/netbsd5.0.2/x86_64/target-libs.add:1.1
--- /dev/null   Mon May 24 03:14:36 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/x86_64/target-libs.add  Mon May 24 02:19:16 2010
</font><font color='#997700'>@@ -0,0 +1,11 @@
</font><font color='#000088'>+%package sys-root
+Group: Development/Tools
+Summary: @tool_target@ target files for gcc >= 3.4
+
+%description sys-root
+@tool_target@ target files for gcc >= 3.4
+
+%files sys-root
+%defattr(-,root,root,-)
+%dir %{_prefix}/@tool_target@
+%{_prefix}/@tool_target@/sys-root
</font></pre>
<p> </p>
<a name='cs4'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>Add x86_64.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/Makefile.am.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>contrib/crossrpms/freebsd8.0/Makefile.am</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/contrib/crossrpms/freebsd8.0/Makefile.am:1.1 rtems/contrib/crossrpms/freebsd8.0/Makefile.am:1.2
--- rtems/contrib/crossrpms/freebsd8.0/Makefile.am:1.1  Mon Nov 30 00:04:02 2009
+++ rtems/contrib/crossrpms/freebsd8.0/Makefile.am      Mon May 24 02:29:31 2010
</font><font color='#997700'>@@ -1,3 +1,3 @@
</font> # $Id$
 
<font color='#880000'>-SUBDIRS = i586
</font><font color='#000088'>+SUBDIRS = i586 x86_64
</font></pre>
<p> </p>
<a name='cs5'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>Add freebsd8.0/x86_64.
Rename netbsd5.0.2/amd64 into netbsd5.0.2/x86_64.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/configure.ac.diff?r1=text&tr1=1.73&r2=text&tr2=1.74&diff_format=h">M</a></td><td width='1%'>1.74</td><td width='100%'>contrib/crossrpms/configure.ac</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/contrib/crossrpms/configure.ac:1.73 rtems/contrib/crossrpms/configure.ac:1.74
--- rtems/contrib/crossrpms/configure.ac:1.73   Fri May 21 11:19:04 2010
+++ rtems/contrib/crossrpms/configure.ac        Mon May 24 02:30:23 2010
</font><font color='#997700'>@@ -166,10 +166,11 @@
</font> 
 AC_CONFIG_FILES([freebsd8.0/Makefile])
 AC_CONFIG_FILES([freebsd8.0/i586/Makefile])
<font color='#000088'>+AC_CONFIG_FILES([freebsd8.0/x86_64/Makefile])
</font> 
 AC_CONFIG_FILES([netbsd5.0.2/Makefile])
 AC_CONFIG_FILES([netbsd5.0.2/i386/Makefile])
<font color='#880000'>-AC_CONFIG_FILES([netbsd5.0.2/amd64/Makefile])
</font><font color='#000088'>+AC_CONFIG_FILES([netbsd5.0.2/x86_64/Makefile])
</font> 
 AC_CONFIG_FILES([rtems4.10/Makefile])
 AC_CONFIG_FILES([rtems4.10/arm/Makefile])
</pre>
<p> </p>
<a name='cs6'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>Regenerate.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/i586/Makefile.am.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>contrib/crossrpms/freebsd8.0/i586/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-gcc.spec.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-gcc.spec</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/contrib/crossrpms/freebsd8.0/i586/Makefile.am:1.6 rtems/contrib/crossrpms/freebsd8.0/i586/Makefile.am:1.7
--- rtems/contrib/crossrpms/freebsd8.0/i586/Makefile.am:1.6     Mon Apr 26 22:03:52 2010
+++ rtems/contrib/crossrpms/freebsd8.0/i586/Makefile.am Mon May 24 02:43:03 2010
</font><font color='#997700'>@@ -18,6 +18,6 @@
</font> 
 GCC_VERS = 4.5.0
 GCC_PKGVERS = $(GCC_VERS)
<font color='#880000'>-GCC_RPMREL = 0.20100427.0
</font><font color='#000088'>+GCC_RPMREL = 0.20100524.0
</font> include ../gcc.am
 GCC_OPTS += --languages=cxx,fortran,objc

<font color='#006600'>diff -u rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec:1.7 rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec:1.8
--- rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec:1.7     Mon May 24 02:31:52 2010
+++ rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec Mon May 24 02:43:03 2010
</font><font color='#997700'>@@ -41,7 +41,7 @@
</font> 
 Group: <span style="background-color: #FF0000">      </span>     Development/Tools
 Version:        %{gcc_rpmvers}
<font color='#880000'>-Release:<span style="background-color: #FF0000">      </span>        0.20100427.0%{?dist}
</font><font color='#000088'>+Release:<span style="background-color: #FF0000">      </span>   0.20100524.0%{?dist}
</font> License:<span style="background-color: #FF0000">      </span>       GPL
 URL:           http://gcc.gnu.org
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

<font color='#006600'>diff -u rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec:1.6 rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec:1.7
--- rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec:1.6     Mon Apr 26 22:04:18 2010
+++ rtems/contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec Mon May 24 02:31:52 2010
</font><font color='#997700'>@@ -63,14 +63,14 @@
</font> 
 # versions of libraries, we conditionally bundle if necessary
 %global mpc_version    0.8.1
<font color='#880000'>-%global mpfr_version       2.4.1
</font><font color='#000088'>+%global mpfr_version  2.4.2
</font> %global gmp_version       4.3.2
 %global libelf_version  0.8.13
 
 # versions of libraries these distros are known to ship
 %if 0%{?fc13}
 %global mpc_provided 0.8.1
<font color='#880000'>-%global mpfr_provided 2.4.1
</font><font color='#000088'>+%global mpfr_provided 2.4.2
</font> %global gmp_provided 4.3.1
 %endif
 

<font color='#006600'>diff -u rtems/contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-gcc.spec:1.6 rtems/contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-gcc.spec:1.7
--- rtems/contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-gcc.spec:1.6        Mon Apr 26 22:04:18 2010
+++ rtems/contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-gcc.spec    Mon May 24 02:21:00 2010
</font><font color='#997700'>@@ -63,14 +63,14 @@
</font> 
 # versions of libraries, we conditionally bundle if necessary
 %global mpc_version    0.8.1
<font color='#880000'>-%global mpfr_version       2.4.1
</font><font color='#000088'>+%global mpfr_version  2.4.2
</font> %global gmp_version       4.3.2
 %global libelf_version  0.8.13
 
 # versions of libraries these distros are known to ship
 %if 0%{?fc13}
 %global mpc_provided 0.8.1
<font color='#880000'>-%global mpfr_provided 2.4.1
</font><font color='#000088'>+%global mpfr_provided 2.4.2
</font> %global gmp_provided 4.3.1
 %endif
 
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>