summaryrefslogtreecommitdiff
path: root/contrib/crossrpms/rtems4.10
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/crossrpms/rtems4.10')
-rw-r--r--contrib/crossrpms/rtems4.10/Makefile.am17
-rw-r--r--contrib/crossrpms/rtems4.10/arm/Makefile.am27
-rw-r--r--contrib/crossrpms/rtems4.10/arm/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/arm/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/arm/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gdb.spec283
-rw-r--r--contrib/crossrpms/rtems4.10/avr/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/avr/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/avr/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/avr/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec802
-rw-r--r--contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gdb.spec283
-rw-r--r--contrib/crossrpms/rtems4.10/bfin/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/bfin/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/bfin/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/bfin/gdb-sources.add13
-rw-r--r--contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec235
-rw-r--r--contrib/crossrpms/rtems4.10/binutils.am31
-rw-r--r--contrib/crossrpms/rtems4.10/gcc-prep.add2
-rw-r--r--contrib/crossrpms/rtems4.10/gcc.am47
-rw-r--r--contrib/crossrpms/rtems4.10/gdb.am31
-rw-r--r--contrib/crossrpms/rtems4.10/h8300/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/h8300/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/h8300/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/h8300/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gdb.spec287
-rw-r--r--contrib/crossrpms/rtems4.10/i386/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/i386/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/i386/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/i386/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gdb.spec283
-rw-r--r--contrib/crossrpms/rtems4.10/lm32/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/lm32/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/lm32/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/lm32/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gdb.spec287
-rw-r--r--contrib/crossrpms/rtems4.10/m32c/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/m32c/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/m32c/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/m32c/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gcc.spec803
-rw-r--r--contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gdb.spec287
-rw-r--r--contrib/crossrpms/rtems4.10/m32r/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/m32r/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/m32r/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/m32r/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gcc.spec803
-rw-r--r--contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gdb.spec283
-rw-r--r--contrib/crossrpms/rtems4.10/m68k/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/m68k/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/m68k/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/m68k/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gdb.spec283
-rw-r--r--contrib/crossrpms/rtems4.10/mips/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/mips/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/mips/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/mips/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gdb.spec283
-rw-r--r--contrib/crossrpms/rtems4.10/mipstx39/Makefile.am12
-rw-r--r--contrib/crossrpms/rtems4.10/mipstx39/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/mipstx39/rtems-4.10-mipstx39-rtems4.10-gdb.spec287
-rw-r--r--contrib/crossrpms/rtems4.10/powerpc/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/powerpc/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/powerpc/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/powerpc/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec288
-rw-r--r--contrib/crossrpms/rtems4.10/sh/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/sh/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/sh/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/sh/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gdb.spec283
-rw-r--r--contrib/crossrpms/rtems4.10/sparc/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.10/sparc/binutils-sources.add2
-rw-r--r--contrib/crossrpms/rtems4.10/sparc/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.10/sparc/gdb-sources.add9
-rw-r--r--contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-binutils.spec268
-rw-r--r--contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gcc.spec874
-rw-r--r--contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gdb.spec287
99 files changed, 0 insertions, 19739 deletions
diff --git a/contrib/crossrpms/rtems4.10/Makefile.am b/contrib/crossrpms/rtems4.10/Makefile.am
deleted file mode 100644
index 2ded05d926..0000000000
--- a/contrib/crossrpms/rtems4.10/Makefile.am
+++ /dev/null
@@ -1,17 +0,0 @@
-# $Id$
-
-SUBDIRS =
-SUBDIRS += arm
-SUBDIRS += avr
-SUBDIRS += bfin
-SUBDIRS += h8300
-SUBDIRS += i386
-SUBDIRS += lm32
-SUBDIRS += m32c
-SUBDIRS += m32r
-SUBDIRS += m68k
-SUBDIRS += mips
-SUBDIRS += mipstx39
-SUBDIRS += powerpc
-SUBDIRS += sh
-SUBDIRS += sparc
diff --git a/contrib/crossrpms/rtems4.10/arm/Makefile.am b/contrib/crossrpms/rtems4.10/arm/Makefile.am
deleted file mode 100644
index 4320677f8c..0000000000
--- a/contrib/crossrpms/rtems4.10/arm/Makefile.am
+++ /dev/null
@@ -1,27 +0,0 @@
-# $Id$
-
-TARGET = arm-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/arm/binutils-sources.add b/contrib/crossrpms/rtems4.10/arm/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/arm/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/arm/gcc-sources.add b/contrib/crossrpms/rtems4.10/arm/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/arm/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/arm/gdb-sources.add b/contrib/crossrpms/rtems4.10/arm/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/arm/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-binutils.spec
deleted file mode 100644
index 820a61901e..0000000000
--- a/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-arm-rtems4.10-binutils
-Summary: Binutils for target arm-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target arm-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=arm-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# arm-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-arm-rtems4.10-binutils
-# Summary: rtems binutils for arm-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-arm-rtems4.10-binutils
-GNU binutils targetting arm-rtems4.10.
-
-%files -n rtems-4.10-arm-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/arm-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/arm-rtems4.10-*
-
-%dir %{_exec_prefix}/arm-rtems4.10
-%dir %{_exec_prefix}/arm-rtems4.10/bin
-%{_exec_prefix}/arm-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/arm-rtems4.10/lib
-%{_exec_prefix}/arm-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gcc.spec
deleted file mode 100644
index 54eaa7d8b9..0000000000
--- a/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-arm-rtems4.10-gcc
-Summary: arm-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-arm-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-arm-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-arm-rtems4.10-binutils
-Requires: rtems-4.10-arm-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-arm-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 arm-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=arm-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/arm-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/arm-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/arm-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/arm-rtems4.10-arm-rtems4.10-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/arm-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/arm-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/arm-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/arm-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/arm-rtems4.10/%{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/arm-rtems4.10/%{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}/arm-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/arm-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/arm-rtems4.10/'} | %__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}/arm-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/arm-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-arm-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-arm-rtems4.10-gcc
-# Summary: GNU cc compiler for arm-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-arm-rtems4.10-binutils
-# Requires: rtems-4.10-arm-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-arm-rtems4.10-gcc
-GNU cc compiler for arm-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-arm-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-arm-rtems4.10-gcc-libgcc
-Summary: libgcc for arm-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-arm-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-arm-rtems4.10-gcc-libgcc
-libgcc arm-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-arm-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/arm-rtems4.10-gcc.1*
-%{_mandir}/man1/arm-rtems4.10-cpp.1*
-%{_mandir}/man1/arm-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/arm-rtems4.10-cpp%{_exeext}
-%{_bindir}/arm-rtems4.10-gcc%{_exeext}
-%{_bindir}/arm-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/arm-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/arm-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/arm-rtems4.10
-%dir %{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-arm-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/arm-rtems4.10
-%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-arm-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-arm-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for arm-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-arm-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-arm-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-arm-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-arm-rtems4.10-gcc-c++
-GCC c++ compiler for arm-rtems4.10.
-
-
-%package -n rtems-4.10-arm-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for arm-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-arm-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-arm-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/arm-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/arm-rtems4.10-c++%{_exeext}
-%{_bindir}/arm-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/arm-rtems4.10
-%dir %{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-arm-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/arm-rtems4.10
-%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-arm-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-arm-rtems4.10-newlib
-Summary: C Library (newlib) for arm-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-arm-rtems4.10-newlib
-Newlib C Library for arm-rtems4.10.
-
-%files -n rtems-4.10-arm-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/arm-rtems4.10
-%{_exec_prefix}/arm-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gdb.spec
deleted file mode 100644
index 421e6ca09b..0000000000
--- a/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,283 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-arm-rtems4.10-gdb
-Summary: Gdb for target arm-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target arm-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=arm-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/arm-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libarm-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# arm-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-arm-rtems4.10-gdb
-# Summary: rtems gdb for arm-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-arm-rtems4.10-gdb
-GNU gdb targetting arm-rtems4.10.
-
-%files -n rtems-4.10-arm-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/arm-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/arm-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/arm-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/avr/Makefile.am b/contrib/crossrpms/rtems4.10/avr/Makefile.am
deleted file mode 100644
index 1e46c34d33..0000000000
--- a/contrib/crossrpms/rtems4.10/avr/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = avr-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS +=
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/avr/binutils-sources.add b/contrib/crossrpms/rtems4.10/avr/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/avr/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/avr/gcc-sources.add b/contrib/crossrpms/rtems4.10/avr/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/avr/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/avr/gdb-sources.add b/contrib/crossrpms/rtems4.10/avr/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/avr/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-binutils.spec
deleted file mode 100644
index 6b36c54b2b..0000000000
--- a/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-avr-rtems4.10-binutils
-Summary: Binutils for target avr-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target avr-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=avr-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# avr-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-avr-rtems4.10-binutils
-# Summary: rtems binutils for avr-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-avr-rtems4.10-binutils
-GNU binutils targetting avr-rtems4.10.
-
-%files -n rtems-4.10-avr-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/avr-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/avr-rtems4.10-*
-
-%dir %{_exec_prefix}/avr-rtems4.10
-%dir %{_exec_prefix}/avr-rtems4.10/bin
-%{_exec_prefix}/avr-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/avr-rtems4.10/lib
-%{_exec_prefix}/avr-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec
deleted file mode 100644
index e2dd1e6c43..0000000000
--- a/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,802 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-avr-rtems4.10-gcc
-Summary: avr-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-avr-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-avr-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-avr-rtems4.10-binutils
-Requires: rtems-4.10-avr-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-avr-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 avr-rtems4.10.
-
-%prep
-%setup -c -T -n %{name}-%{version}
-
-%setup -q -T -D -n %{name}-%{version} -a0
-cd gcc-%{gcc_pkgvers}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- export PATH="%{_bindir}:${PATH}"
-%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=avr-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/avr-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/avr-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/avr-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/avr-rtems4.10-avr-rtems4.10-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/avr-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/avr-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/avr-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/avr-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/avr-rtems4.10/%{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/avr-rtems4.10/%{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}/avr-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/avr-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/avr-rtems4.10/'} | %__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}/avr-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/avr-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-avr-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-avr-rtems4.10-gcc
-# Summary: GNU cc compiler for avr-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-avr-rtems4.10-binutils
-# Requires: rtems-4.10-avr-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-avr-rtems4.10-gcc
-GNU cc compiler for avr-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-avr-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-avr-rtems4.10-gcc-libgcc
-Summary: libgcc for avr-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-avr-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-avr-rtems4.10-gcc-libgcc
-libgcc avr-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-avr-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/avr-rtems4.10-gcc.1*
-%{_mandir}/man1/avr-rtems4.10-cpp.1*
-%{_mandir}/man1/avr-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/avr-rtems4.10-cpp%{_exeext}
-%{_bindir}/avr-rtems4.10-gcc%{_exeext}
-%{_bindir}/avr-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/avr-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/avr-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/avr-rtems4.10
-%dir %{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-avr-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/avr-rtems4.10
-%dir %{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-
-
-
-# ==============================================================
-# rtems-4.10-avr-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-avr-rtems4.10-newlib
-Summary: C Library (newlib) for avr-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-avr-rtems4.10-newlib
-Newlib C Library for avr-rtems4.10.
-
-%files -n rtems-4.10-avr-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/avr-rtems4.10
-%{_exec_prefix}/avr-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gdb.spec
deleted file mode 100644
index b5264d6b0d..0000000000
--- a/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,283 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-avr-rtems4.10-gdb
-Summary: Gdb for target avr-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target avr-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=avr-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/avr-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libavr-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# avr-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-avr-rtems4.10-gdb
-# Summary: rtems gdb for avr-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-avr-rtems4.10-gdb
-GNU gdb targetting avr-rtems4.10.
-
-%files -n rtems-4.10-avr-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/avr-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/avr-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/avr-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/bfin/Makefile.am b/contrib/crossrpms/rtems4.10/bfin/Makefile.am
deleted file mode 100644
index 94c8d29aaf..0000000000
--- a/contrib/crossrpms/rtems4.10/bfin/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = bfin-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.3.1
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS += --disable-infos
diff --git a/contrib/crossrpms/rtems4.10/bfin/binutils-sources.add b/contrib/crossrpms/rtems4.10/bfin/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/bfin/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/bfin/gcc-sources.add b/contrib/crossrpms/rtems4.10/bfin/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/bfin/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/bfin/gdb-sources.add b/contrib/crossrpms/rtems4.10/bfin/gdb-sources.add
deleted file mode 100644
index c309de489c..0000000000
--- a/contrib/crossrpms/rtems4.10/bfin/gdb-sources.add
+++ /dev/null
@@ -1,13 +0,0 @@
-BuildRequires: @rpmprefix@bfin-rtems4.10-binutils
-BuildRequires: texinfo
-
-# The bfin simulator silently tries to conditionally build an SDL based GUI,
-# but fails to link correctly
-# Force not building the GUI.
-%{!?suse:BuildConflicts: SDL-devel}
-%{?suse:BuildConflicts: libSDL-devel}
-
-%if "%{gdb_version}" == "7.3.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.3.1-rtems4.10-20110919.diff
-%endif
diff --git a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-binutils.spec
deleted file mode 100644
index a1d8950dbe..0000000000
--- a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-bfin-rtems4.10-binutils
-Summary: Binutils for target bfin-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target bfin-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=bfin-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# bfin-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-bfin-rtems4.10-binutils
-# Summary: rtems binutils for bfin-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-bfin-rtems4.10-binutils
-GNU binutils targetting bfin-rtems4.10.
-
-%files -n rtems-4.10-bfin-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/bfin-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/bfin-rtems4.10-*
-
-%dir %{_exec_prefix}/bfin-rtems4.10
-%dir %{_exec_prefix}/bfin-rtems4.10/bin
-%{_exec_prefix}/bfin-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/bfin-rtems4.10/lib
-%{_exec_prefix}/bfin-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gcc.spec
deleted file mode 100644
index 08d003cb0d..0000000000
--- a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-bfin-rtems4.10-gcc
-Summary: bfin-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-bfin-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-bfin-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-bfin-rtems4.10-binutils
-Requires: rtems-4.10-bfin-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 bfin-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=bfin-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/bfin-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/bfin-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/bfin-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/bfin-rtems4.10-bfin-rtems4.10-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/bfin-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/bfin-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/bfin-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/bfin-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/bfin-rtems4.10/%{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/bfin-rtems4.10/%{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}/bfin-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/bfin-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/bfin-rtems4.10/'} | %__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}/bfin-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/bfin-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-bfin-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-bfin-rtems4.10-gcc
-# Summary: GNU cc compiler for bfin-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-bfin-rtems4.10-binutils
-# Requires: rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-bfin-rtems4.10-gcc
-GNU cc compiler for bfin-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-bfin-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-bfin-rtems4.10-gcc-libgcc
-Summary: libgcc for bfin-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-bfin-rtems4.10-gcc-libgcc
-libgcc bfin-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-bfin-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/bfin-rtems4.10-gcc.1*
-%{_mandir}/man1/bfin-rtems4.10-cpp.1*
-%{_mandir}/man1/bfin-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/bfin-rtems4.10-cpp%{_exeext}
-%{_bindir}/bfin-rtems4.10-gcc%{_exeext}
-%{_bindir}/bfin-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/bfin-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/bfin-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/bfin-rtems4.10
-%dir %{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-bfin-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/bfin-rtems4.10
-%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-bfin-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-bfin-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for bfin-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-bfin-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-bfin-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-bfin-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-bfin-rtems4.10-gcc-c++
-GCC c++ compiler for bfin-rtems4.10.
-
-
-%package -n rtems-4.10-bfin-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for bfin-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-bfin-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-bfin-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/bfin-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/bfin-rtems4.10-c++%{_exeext}
-%{_bindir}/bfin-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/bfin-rtems4.10
-%dir %{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-bfin-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/bfin-rtems4.10
-%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-bfin-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-bfin-rtems4.10-newlib
-Summary: C Library (newlib) for bfin-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-bfin-rtems4.10-newlib
-Newlib C Library for bfin-rtems4.10.
-
-%files -n rtems-4.10-bfin-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/bfin-rtems4.10
-%{_exec_prefix}/bfin-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec
deleted file mode 100644
index 83d37da7e8..0000000000
--- a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,235 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.3.1
-%define gdb_rpmvers %{expand:%(echo 7.3.1 | tr - _)}
-
-Name: rtems-4.10-bfin-rtems4.10-gdb
-Summary: Gdb for target bfin-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-BuildRequires: rtems-4.10-bfin-rtems4.10-binutils
-BuildRequires: texinfo
-
-# The bfin simulator silently tries to conditionally build an SDL based GUI,
-# but fails to link correctly
-# Force not building the GUI.
-%{!?suse:BuildConflicts: SDL-devel}
-%{?suse:BuildConflicts: libSDL-devel}
-
-%if "%{gdb_version}" == "7.3.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.3.1-rtems4.10-20110919.diff
-%endif
-
-%description
-GDB for target bfin-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=bfin-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/bfin-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
-# Conflict with a native gdb's infos
- rm -rf $RPM_BUILD_ROOT%{_infodir}
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libbfin-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# bfin-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-bfin-rtems4.10-gdb
-# Summary: rtems gdb for bfin-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-bfin-rtems4.10-gdb
-GNU gdb targetting bfin-rtems4.10.
-
-%files -n rtems-4.10-bfin-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/bfin-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/bfin-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/bfin-rtems4.10-*
-
diff --git a/contrib/crossrpms/rtems4.10/binutils.am b/contrib/crossrpms/rtems4.10/binutils.am
deleted file mode 100644
index 6145fd64d1..0000000000
--- a/contrib/crossrpms/rtems4.10/binutils.am
+++ /dev/null
@@ -1,31 +0,0 @@
-EXTRA_DIST += binutils-sources.add
-
-BINUTILS_OPTS =
-
-BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
-BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
-BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
-BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
-BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
-BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
-BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
-BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
-BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
-
-$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add $(srcdir)/../binutils.am
- cat $(BINUTILS_SUBPACKAGES) | sed \
- -e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
- -e "/[@]SOURCES[@]/d" \
- -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
- -e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
- -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
- -e "/--with-sysroot/d" \
- | $(MKSPEC0) > $(TARGET)-binutils.spec.in
-CLEANFILES += $(TARGET)-binutils.spec.in
-
-@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
- $(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
-CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
-noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
-
-EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
diff --git a/contrib/crossrpms/rtems4.10/gcc-prep.add b/contrib/crossrpms/rtems4.10/gcc-prep.add
deleted file mode 100644
index 2c41d2dd95..0000000000
--- a/contrib/crossrpms/rtems4.10/gcc-prep.add
+++ /dev/null
@@ -1,2 +0,0 @@
-echo "RTEMS gcc-%{gcc_version}-@GCC_RPMREL@/newlib-%{newlib_version}-@NEWLIB_RPMREL@" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
diff --git a/contrib/crossrpms/rtems4.10/gcc.am b/contrib/crossrpms/rtems4.10/gcc.am
deleted file mode 100644
index f7dd7a764c..0000000000
--- a/contrib/crossrpms/rtems4.10/gcc.am
+++ /dev/null
@@ -1,47 +0,0 @@
-EXTRA_DIST += $(srcdir)/../gcc-prep.add
-EXTRA_DIST += $(srcdir)/gcc-sources.add
-
-GCC_OPTS = --languages=c --newlib
-
-GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
-GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-newlib.add
-GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-newlib.add
-
-$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
- cat $(GCC_SUBPACKAGES) \
- | sed \
- -e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
- -e "/[@]SOURCES[@]/d" \
- -e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
- -e "/[@]PREP[@]/d" \
- | sed \
- -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
- -e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
- -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
- -e "s/[@]NEWLIB_VERS[@]/$(NEWLIB_VERS)/g" \
- -e "s/[@]NEWLIB_PKGVERS[@]/$(NEWLIB_PKGVERS)/g" \
- -e "s/[@]NEWLIB_RPMREL[@]/$(NEWLIB_RPMREL)%{?dist}/g" \
- -e "/--with-sysroot/d" \
- -e "/[@]tool_target[@]-sys-root/d" \
- -e "/[@]tool_target[@]-w32api-sys-root/d" \
- | $(MKSPEC0) > $(TARGET)-gcc.spec.in
-CLEANFILES += $(TARGET)-gcc.spec.in
-
-@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
- $(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
-CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
-noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
-
-EXTRA_DIST += $(GCC_SUBPACKAGES)
diff --git a/contrib/crossrpms/rtems4.10/gdb.am b/contrib/crossrpms/rtems4.10/gdb.am
deleted file mode 100644
index b90d25ebd0..0000000000
--- a/contrib/crossrpms/rtems4.10/gdb.am
+++ /dev/null
@@ -1,31 +0,0 @@
-EXTRA_DIST += gdb-sources.add
-
-GDB_OPTS =
-
-GDB_SUBPACKAGES = $(top_srcdir)/common/common.add
-GDB_SUBPACKAGES += $(top_srcdir)/gdb/gdb.add
-GDB_SUBPACKAGES += $(top_srcdir)/gdb/prep.add
-GDB_SUBPACKAGES += $(top_srcdir)/gdb/build.add
-GDB_SUBPACKAGES += $(top_srcdir)/gdb/install.add
-GDB_SUBPACKAGES += $(top_srcdir)/gdb/rpm-install.add
-GDB_SUBPACKAGES += $(top_srcdir)/common/clean.add
-GDB_SUBPACKAGES += $(top_srcdir)/gdb/target-gdb.add
-GDB_SUBPACKAGES += $(top_srcdir)/gdb/base-gdb.add
-
-$(TARGET)-gdb.spec.in: $(GDB_SUBPACKAGES) Makefile.am $(srcdir)/gdb-sources.add $(srcdir)/../gdb.am
- cat $(GDB_SUBPACKAGES) | sed \
- -e "/[@]SOURCES[@]/r $(srcdir)/gdb-sources.add" \
- -e "/[@]SOURCES[@]/d" \
- -e "s/[@]GDB_VERS[@]/$(GDB_VERS)/g" \
- -e "s/[@]GDB_PKGVERS[@]/$(GDB_PKGVERS)/g" \
- -e "s/[@]GDB_RPMREL[@]/$(GDB_RPMREL)%{?dist}/g" \
- -e "/--with-sysroot/d" \
- | $(MKSPEC0) > $(TARGET)-gdb.spec.in
-CLEANFILES += $(TARGET)-gdb.spec.in
-
-@rpmprefix@$(TARGET)-gdb.spec: $(TARGET)-gdb.spec.in
- $(MKSPEC) $(TARGET)-gdb.spec.in | $(SPECSTRIP) $(GDB_OPTS) > $@
-CLEANFILES += @rpmprefix@$(TARGET)-gdb.spec
-noinst_DATA += @rpmprefix@$(TARGET)-gdb.spec
-
-EXTRA_DIST += $(GDB_SUBPACKAGES)
diff --git a/contrib/crossrpms/rtems4.10/h8300/Makefile.am b/contrib/crossrpms/rtems4.10/h8300/Makefile.am
deleted file mode 100644
index 9b4a0823c4..0000000000
--- a/contrib/crossrpms/rtems4.10/h8300/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = h8300-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/h8300/binutils-sources.add b/contrib/crossrpms/rtems4.10/h8300/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/h8300/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/h8300/gcc-sources.add b/contrib/crossrpms/rtems4.10/h8300/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/h8300/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/h8300/gdb-sources.add b/contrib/crossrpms/rtems4.10/h8300/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/h8300/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-binutils.spec
deleted file mode 100644
index 3eb51b37cb..0000000000
--- a/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-h8300-rtems4.10-binutils
-Summary: Binutils for target h8300-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target h8300-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=h8300-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/h8300-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/h8300-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/h8300-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/h8300-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/h8300-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/h8300-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/h8300-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/h8300-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# h8300-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-h8300-rtems4.10-binutils
-# Summary: rtems binutils for h8300-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-h8300-rtems4.10-binutils
-GNU binutils targetting h8300-rtems4.10.
-
-%files -n rtems-4.10-h8300-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/h8300-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/h8300-rtems4.10-*
-
-%dir %{_exec_prefix}/h8300-rtems4.10
-%dir %{_exec_prefix}/h8300-rtems4.10/bin
-%{_exec_prefix}/h8300-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/h8300-rtems4.10/lib
-%{_exec_prefix}/h8300-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gcc.spec
deleted file mode 100644
index 4a9a635487..0000000000
--- a/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-h8300-rtems4.10-gcc
-Summary: h8300-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-h8300-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-h8300-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-h8300-rtems4.10-binutils
-Requires: rtems-4.10-h8300-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-h8300-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 h8300-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=h8300-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/h8300-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/h8300-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/h8300-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/h8300-rtems4.10-h8300-rtems4.10-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/h8300-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/h8300-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/h8300-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/h8300-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/h8300-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/h8300-rtems4.10/%{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/h8300-rtems4.10/%{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}/h8300-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/h8300-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/h8300-rtems4.10/'} | %__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}/h8300-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/h8300-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-h8300-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-h8300-rtems4.10-gcc
-# Summary: GNU cc compiler for h8300-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-h8300-rtems4.10-binutils
-# Requires: rtems-4.10-h8300-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-h8300-rtems4.10-gcc
-GNU cc compiler for h8300-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-h8300-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-h8300-rtems4.10-gcc-libgcc
-Summary: libgcc for h8300-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-h8300-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-h8300-rtems4.10-gcc-libgcc
-libgcc h8300-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-h8300-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/h8300-rtems4.10-gcc.1*
-%{_mandir}/man1/h8300-rtems4.10-cpp.1*
-%{_mandir}/man1/h8300-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/h8300-rtems4.10-cpp%{_exeext}
-%{_bindir}/h8300-rtems4.10-gcc%{_exeext}
-%{_bindir}/h8300-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/h8300-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/h8300-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/h8300-rtems4.10
-%dir %{_libexecdir}/gcc/h8300-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/h8300-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/h8300-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/h8300-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/h8300-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-h8300-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/h8300-rtems4.10
-%dir %{_gcclibdir}/gcc/h8300-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/h8300-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/h8300-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/h8300-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-h8300-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-h8300-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for h8300-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-h8300-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-h8300-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-h8300-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-h8300-rtems4.10-gcc-c++
-GCC c++ compiler for h8300-rtems4.10.
-
-
-%package -n rtems-4.10-h8300-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for h8300-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-h8300-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-h8300-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/h8300-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/h8300-rtems4.10-c++%{_exeext}
-%{_bindir}/h8300-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/h8300-rtems4.10
-%dir %{_libexecdir}/gcc/h8300-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/h8300-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-h8300-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/h8300-rtems4.10
-%dir %{_gcclibdir}/gcc/h8300-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/h8300-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/h8300-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-h8300-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-h8300-rtems4.10-newlib
-Summary: C Library (newlib) for h8300-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-h8300-rtems4.10-newlib
-Newlib C Library for h8300-rtems4.10.
-
-%files -n rtems-4.10-h8300-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/h8300-rtems4.10
-%{_exec_prefix}/h8300-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gdb.spec
deleted file mode 100644
index 6a6d8425cd..0000000000
--- a/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,287 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-h8300-rtems4.10-gdb
-Summary: Gdb for target h8300-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-%ifos mingw mingw32
-# Mingw lacks functions required by the h8300 simulator
-%define build_sim --disable-sim
-%endif
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target h8300-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=h8300-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/h8300-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libh8300-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# h8300-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-h8300-rtems4.10-gdb
-# Summary: rtems gdb for h8300-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-h8300-rtems4.10-gdb
-GNU gdb targetting h8300-rtems4.10.
-
-%files -n rtems-4.10-h8300-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/h8300-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/h8300-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/h8300-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/i386/Makefile.am b/contrib/crossrpms/rtems4.10/i386/Makefile.am
deleted file mode 100644
index e4e6f85983..0000000000
--- a/contrib/crossrpms/rtems4.10/i386/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = i386-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/i386/binutils-sources.add b/contrib/crossrpms/rtems4.10/i386/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/i386/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/i386/gcc-sources.add b/contrib/crossrpms/rtems4.10/i386/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/i386/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/i386/gdb-sources.add b/contrib/crossrpms/rtems4.10/i386/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/i386/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-binutils.spec
deleted file mode 100644
index 801d125935..0000000000
--- a/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-i386-rtems4.10-binutils
-Summary: Binutils for target i386-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target i386-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=i386-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i386-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i386-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i386-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i386-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i386-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i386-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i386-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i386-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# i386-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-i386-rtems4.10-binutils
-# Summary: rtems binutils for i386-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-i386-rtems4.10-binutils
-GNU binutils targetting i386-rtems4.10.
-
-%files -n rtems-4.10-i386-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/i386-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/i386-rtems4.10-*
-
-%dir %{_exec_prefix}/i386-rtems4.10
-%dir %{_exec_prefix}/i386-rtems4.10/bin
-%{_exec_prefix}/i386-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/i386-rtems4.10/lib
-%{_exec_prefix}/i386-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gcc.spec
deleted file mode 100644
index bb44e4b328..0000000000
--- a/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-i386-rtems4.10-gcc
-Summary: i386-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-i386-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-i386-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-i386-rtems4.10-binutils
-Requires: rtems-4.10-i386-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-i386-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 i386-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=i386-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/i386-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/i386-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/i386-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/i386-rtems4.10-i386-rtems4.10-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/i386-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i386-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/i386-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/i386-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/i386-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/i386-rtems4.10/%{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/i386-rtems4.10/%{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}/i386-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/i386-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i386-rtems4.10/'} | %__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}/i386-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i386-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-i386-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-i386-rtems4.10-gcc
-# Summary: GNU cc compiler for i386-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-i386-rtems4.10-binutils
-# Requires: rtems-4.10-i386-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-i386-rtems4.10-gcc
-GNU cc compiler for i386-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-i386-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-i386-rtems4.10-gcc-libgcc
-Summary: libgcc for i386-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-i386-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-i386-rtems4.10-gcc-libgcc
-libgcc i386-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-i386-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/i386-rtems4.10-gcc.1*
-%{_mandir}/man1/i386-rtems4.10-cpp.1*
-%{_mandir}/man1/i386-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/i386-rtems4.10-cpp%{_exeext}
-%{_bindir}/i386-rtems4.10-gcc%{_exeext}
-%{_bindir}/i386-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/i386-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/i386-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/i386-rtems4.10
-%dir %{_libexecdir}/gcc/i386-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/i386-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/i386-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/i386-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/i386-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-i386-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/i386-rtems4.10
-%dir %{_gcclibdir}/gcc/i386-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/i386-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/i386-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/i386-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-i386-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-i386-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for i386-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-i386-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-i386-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-i386-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-i386-rtems4.10-gcc-c++
-GCC c++ compiler for i386-rtems4.10.
-
-
-%package -n rtems-4.10-i386-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for i386-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-i386-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-i386-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/i386-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/i386-rtems4.10-c++%{_exeext}
-%{_bindir}/i386-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/i386-rtems4.10
-%dir %{_libexecdir}/gcc/i386-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/i386-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-i386-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/i386-rtems4.10
-%dir %{_gcclibdir}/gcc/i386-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/i386-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/i386-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-i386-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-i386-rtems4.10-newlib
-Summary: C Library (newlib) for i386-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-i386-rtems4.10-newlib
-Newlib C Library for i386-rtems4.10.
-
-%files -n rtems-4.10-i386-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/i386-rtems4.10
-%{_exec_prefix}/i386-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gdb.spec
deleted file mode 100644
index e8c9584c63..0000000000
--- a/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,283 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-i386-rtems4.10-gdb
-Summary: Gdb for target i386-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target i386-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=i386-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/i386-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libi386-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# i386-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-i386-rtems4.10-gdb
-# Summary: rtems gdb for i386-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-i386-rtems4.10-gdb
-GNU gdb targetting i386-rtems4.10.
-
-%files -n rtems-4.10-i386-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/i386-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/i386-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/i386-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/lm32/Makefile.am b/contrib/crossrpms/rtems4.10/lm32/Makefile.am
deleted file mode 100644
index 4f1f477d06..0000000000
--- a/contrib/crossrpms/rtems4.10/lm32/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = lm32-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/lm32/binutils-sources.add b/contrib/crossrpms/rtems4.10/lm32/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/lm32/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/lm32/gcc-sources.add b/contrib/crossrpms/rtems4.10/lm32/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/lm32/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/lm32/gdb-sources.add b/contrib/crossrpms/rtems4.10/lm32/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/lm32/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-binutils.spec
deleted file mode 100644
index b5d930554b..0000000000
--- a/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-lm32-rtems4.10-binutils
-Summary: Binutils for target lm32-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target lm32-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=lm32-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/lm32-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/lm32-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/lm32-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/lm32-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/lm32-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/lm32-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/lm32-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/lm32-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# lm32-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-lm32-rtems4.10-binutils
-# Summary: rtems binutils for lm32-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-lm32-rtems4.10-binutils
-GNU binutils targetting lm32-rtems4.10.
-
-%files -n rtems-4.10-lm32-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/lm32-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/lm32-rtems4.10-*
-
-%dir %{_exec_prefix}/lm32-rtems4.10
-%dir %{_exec_prefix}/lm32-rtems4.10/bin
-%{_exec_prefix}/lm32-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/lm32-rtems4.10/lib
-%{_exec_prefix}/lm32-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gcc.spec
deleted file mode 100644
index d4799848e4..0000000000
--- a/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-lm32-rtems4.10-gcc
-Summary: lm32-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-lm32-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-lm32-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-lm32-rtems4.10-binutils
-Requires: rtems-4.10-lm32-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-lm32-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 lm32-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=lm32-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/lm32-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/lm32-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/lm32-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/lm32-rtems4.10-lm32-rtems4.10-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/lm32-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/lm32-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/lm32-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/lm32-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/lm32-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/lm32-rtems4.10/%{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/lm32-rtems4.10/%{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}/lm32-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/lm32-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/lm32-rtems4.10/'} | %__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}/lm32-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/lm32-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-lm32-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-lm32-rtems4.10-gcc
-# Summary: GNU cc compiler for lm32-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-lm32-rtems4.10-binutils
-# Requires: rtems-4.10-lm32-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-lm32-rtems4.10-gcc
-GNU cc compiler for lm32-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-lm32-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-lm32-rtems4.10-gcc-libgcc
-Summary: libgcc for lm32-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-lm32-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-lm32-rtems4.10-gcc-libgcc
-libgcc lm32-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-lm32-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/lm32-rtems4.10-gcc.1*
-%{_mandir}/man1/lm32-rtems4.10-cpp.1*
-%{_mandir}/man1/lm32-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/lm32-rtems4.10-cpp%{_exeext}
-%{_bindir}/lm32-rtems4.10-gcc%{_exeext}
-%{_bindir}/lm32-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/lm32-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/lm32-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/lm32-rtems4.10
-%dir %{_libexecdir}/gcc/lm32-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/lm32-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/lm32-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/lm32-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/lm32-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-lm32-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/lm32-rtems4.10
-%dir %{_gcclibdir}/gcc/lm32-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/lm32-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/lm32-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/lm32-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-lm32-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-lm32-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for lm32-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-lm32-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-lm32-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-lm32-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-lm32-rtems4.10-gcc-c++
-GCC c++ compiler for lm32-rtems4.10.
-
-
-%package -n rtems-4.10-lm32-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for lm32-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-lm32-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-lm32-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/lm32-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/lm32-rtems4.10-c++%{_exeext}
-%{_bindir}/lm32-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/lm32-rtems4.10
-%dir %{_libexecdir}/gcc/lm32-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/lm32-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-lm32-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/lm32-rtems4.10
-%dir %{_gcclibdir}/gcc/lm32-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/lm32-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/lm32-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-lm32-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-lm32-rtems4.10-newlib
-Summary: C Library (newlib) for lm32-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-lm32-rtems4.10-newlib
-Newlib C Library for lm32-rtems4.10.
-
-%files -n rtems-4.10-lm32-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/lm32-rtems4.10
-%{_exec_prefix}/lm32-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gdb.spec
deleted file mode 100644
index f9ac6c0479..0000000000
--- a/contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,287 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-lm32-rtems4.10-gdb
-Summary: Gdb for target lm32-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-%ifos mingw mingw32
-# Mingw lacks functions required by the lm32 simulator
-%define build_sim --disable-sim
-%endif
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target lm32-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=lm32-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/lm32-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/liblm32-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# lm32-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-lm32-rtems4.10-gdb
-# Summary: rtems gdb for lm32-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-lm32-rtems4.10-gdb
-GNU gdb targetting lm32-rtems4.10.
-
-%files -n rtems-4.10-lm32-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/lm32-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/lm32-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/lm32-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/m32c/Makefile.am b/contrib/crossrpms/rtems4.10/m32c/Makefile.am
deleted file mode 100644
index a081892153..0000000000
--- a/contrib/crossrpms/rtems4.10/m32c/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = m32c-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS +=
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/m32c/binutils-sources.add b/contrib/crossrpms/rtems4.10/m32c/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/m32c/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/m32c/gcc-sources.add b/contrib/crossrpms/rtems4.10/m32c/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/m32c/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/m32c/gdb-sources.add b/contrib/crossrpms/rtems4.10/m32c/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/m32c/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-binutils.spec
deleted file mode 100644
index c46edc23e0..0000000000
--- a/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-m32c-rtems4.10-binutils
-Summary: Binutils for target m32c-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target m32c-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=m32c-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32c-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32c-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32c-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32c-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32c-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32c-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32c-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32c-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# m32c-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-m32c-rtems4.10-binutils
-# Summary: rtems binutils for m32c-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-m32c-rtems4.10-binutils
-GNU binutils targetting m32c-rtems4.10.
-
-%files -n rtems-4.10-m32c-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m32c-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/m32c-rtems4.10-*
-
-%dir %{_exec_prefix}/m32c-rtems4.10
-%dir %{_exec_prefix}/m32c-rtems4.10/bin
-%{_exec_prefix}/m32c-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/m32c-rtems4.10/lib
-%{_exec_prefix}/m32c-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gcc.spec
deleted file mode 100644
index f583ce0187..0000000000
--- a/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,803 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-m32c-rtems4.10-gcc
-Summary: m32c-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-m32c-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-m32c-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-m32c-rtems4.10-binutils
-Requires: rtems-4.10-m32c-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-m32c-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 m32c-rtems4.10.
-
-%prep
-%setup -c -T -n %{name}-%{version}
-
-%setup -q -T -D -n %{name}-%{version} -a0
-cd gcc-%{gcc_pkgvers}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- export PATH="%{_bindir}:${PATH}"
-%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=m32c-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/m32c-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/m32c-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/m32c-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/m32c-rtems4.10-m32c-rtems4.10-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/m32c-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/m32c-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/m32c-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/m32c-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/m32c-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/m32c-rtems4.10/%{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/m32c-rtems4.10/%{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}/m32c-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/m32c-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/m32c-rtems4.10/'} | %__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}/m32c-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/m32c-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-m32c-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-m32c-rtems4.10-gcc
-# Summary: GNU cc compiler for m32c-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-m32c-rtems4.10-binutils
-# Requires: rtems-4.10-m32c-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-m32c-rtems4.10-gcc
-GNU cc compiler for m32c-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-m32c-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-m32c-rtems4.10-gcc-libgcc
-Summary: libgcc for m32c-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-m32c-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-m32c-rtems4.10-gcc-libgcc
-libgcc m32c-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-m32c-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m32c-rtems4.10-gcc.1*
-%{_mandir}/man1/m32c-rtems4.10-cpp.1*
-%{_mandir}/man1/m32c-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/m32c-rtems4.10-cpp%{_exeext}
-%{_bindir}/m32c-rtems4.10-gcc%{_exeext}
-%{_bindir}/m32c-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/m32c-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/m32c-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/m32c-rtems4.10
-%dir %{_libexecdir}/gcc/m32c-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/m32c-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/m32c-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/m32c-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/m32c-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-m32c-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/m32c-rtems4.10
-%dir %{_gcclibdir}/gcc/m32c-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/m32c-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/m32c-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/m32c-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-
-
-
-# ==============================================================
-# rtems-4.10-m32c-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-m32c-rtems4.10-newlib
-Summary: C Library (newlib) for m32c-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-m32c-rtems4.10-newlib
-Newlib C Library for m32c-rtems4.10.
-
-%files -n rtems-4.10-m32c-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/m32c-rtems4.10
-%{_exec_prefix}/m32c-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gdb.spec
deleted file mode 100644
index 47d6a136c9..0000000000
--- a/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,287 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-m32c-rtems4.10-gdb
-Summary: Gdb for target m32c-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-%ifos mingw mingw32
-# Mingw lacks functions required by the m32c simulator
-%define build_sim --disable-sim
-%endif
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target m32c-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=m32c-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/m32c-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32c-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# m32c-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-m32c-rtems4.10-gdb
-# Summary: rtems gdb for m32c-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-m32c-rtems4.10-gdb
-GNU gdb targetting m32c-rtems4.10.
-
-%files -n rtems-4.10-m32c-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/m32c-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m32c-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/m32c-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/m32r/Makefile.am b/contrib/crossrpms/rtems4.10/m32r/Makefile.am
deleted file mode 100644
index 238ece6b1d..0000000000
--- a/contrib/crossrpms/rtems4.10/m32r/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = m32r-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS +=
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/m32r/binutils-sources.add b/contrib/crossrpms/rtems4.10/m32r/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/m32r/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/m32r/gcc-sources.add b/contrib/crossrpms/rtems4.10/m32r/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/m32r/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/m32r/gdb-sources.add b/contrib/crossrpms/rtems4.10/m32r/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/m32r/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-binutils.spec
deleted file mode 100644
index 8ce1f18954..0000000000
--- a/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-m32r-rtems4.10-binutils
-Summary: Binutils for target m32r-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target m32r-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=m32r-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32r-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32r-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32r-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32r-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32r-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32r-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m32r-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m32r-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# m32r-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-m32r-rtems4.10-binutils
-# Summary: rtems binutils for m32r-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-m32r-rtems4.10-binutils
-GNU binutils targetting m32r-rtems4.10.
-
-%files -n rtems-4.10-m32r-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m32r-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/m32r-rtems4.10-*
-
-%dir %{_exec_prefix}/m32r-rtems4.10
-%dir %{_exec_prefix}/m32r-rtems4.10/bin
-%{_exec_prefix}/m32r-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/m32r-rtems4.10/lib
-%{_exec_prefix}/m32r-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gcc.spec
deleted file mode 100644
index a2395b7f76..0000000000
--- a/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,803 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-m32r-rtems4.10-gcc
-Summary: m32r-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-m32r-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-m32r-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-m32r-rtems4.10-binutils
-Requires: rtems-4.10-m32r-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-m32r-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 m32r-rtems4.10.
-
-%prep
-%setup -c -T -n %{name}-%{version}
-
-%setup -q -T -D -n %{name}-%{version} -a0
-cd gcc-%{gcc_pkgvers}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- export PATH="%{_bindir}:${PATH}"
-%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=m32r-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/m32r-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/m32r-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/m32r-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/m32r-rtems4.10-m32r-rtems4.10-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/m32r-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/m32r-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/m32r-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/m32r-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/m32r-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/m32r-rtems4.10/%{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/m32r-rtems4.10/%{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}/m32r-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/m32r-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/m32r-rtems4.10/'} | %__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}/m32r-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/m32r-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-m32r-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-m32r-rtems4.10-gcc
-# Summary: GNU cc compiler for m32r-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-m32r-rtems4.10-binutils
-# Requires: rtems-4.10-m32r-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-m32r-rtems4.10-gcc
-GNU cc compiler for m32r-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-m32r-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-m32r-rtems4.10-gcc-libgcc
-Summary: libgcc for m32r-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-m32r-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-m32r-rtems4.10-gcc-libgcc
-libgcc m32r-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-m32r-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m32r-rtems4.10-gcc.1*
-%{_mandir}/man1/m32r-rtems4.10-cpp.1*
-%{_mandir}/man1/m32r-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/m32r-rtems4.10-cpp%{_exeext}
-%{_bindir}/m32r-rtems4.10-gcc%{_exeext}
-%{_bindir}/m32r-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/m32r-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/m32r-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/m32r-rtems4.10
-%dir %{_libexecdir}/gcc/m32r-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/m32r-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/m32r-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/m32r-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/m32r-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-m32r-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/m32r-rtems4.10
-%dir %{_gcclibdir}/gcc/m32r-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/m32r-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/m32r-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/m32r-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-
-
-
-# ==============================================================
-# rtems-4.10-m32r-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-m32r-rtems4.10-newlib
-Summary: C Library (newlib) for m32r-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-m32r-rtems4.10-newlib
-Newlib C Library for m32r-rtems4.10.
-
-%files -n rtems-4.10-m32r-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/m32r-rtems4.10
-%{_exec_prefix}/m32r-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gdb.spec
deleted file mode 100644
index 321356912a..0000000000
--- a/contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,283 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-m32r-rtems4.10-gdb
-Summary: Gdb for target m32r-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target m32r-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=m32r-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/m32r-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32r-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# m32r-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-m32r-rtems4.10-gdb
-# Summary: rtems gdb for m32r-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-m32r-rtems4.10-gdb
-GNU gdb targetting m32r-rtems4.10.
-
-%files -n rtems-4.10-m32r-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/m32r-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m32r-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/m32r-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/m68k/Makefile.am b/contrib/crossrpms/rtems4.10/m68k/Makefile.am
deleted file mode 100644
index cac44007ea..0000000000
--- a/contrib/crossrpms/rtems4.10/m68k/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = m68k-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/m68k/binutils-sources.add b/contrib/crossrpms/rtems4.10/m68k/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/m68k/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/m68k/gcc-sources.add b/contrib/crossrpms/rtems4.10/m68k/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/m68k/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/m68k/gdb-sources.add b/contrib/crossrpms/rtems4.10/m68k/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/m68k/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-binutils.spec
deleted file mode 100644
index 0243f112fe..0000000000
--- a/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-m68k-rtems4.10-binutils
-Summary: Binutils for target m68k-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target m68k-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=m68k-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# m68k-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-m68k-rtems4.10-binutils
-# Summary: rtems binutils for m68k-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-m68k-rtems4.10-binutils
-GNU binutils targetting m68k-rtems4.10.
-
-%files -n rtems-4.10-m68k-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m68k-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/m68k-rtems4.10-*
-
-%dir %{_exec_prefix}/m68k-rtems4.10
-%dir %{_exec_prefix}/m68k-rtems4.10/bin
-%{_exec_prefix}/m68k-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/m68k-rtems4.10/lib
-%{_exec_prefix}/m68k-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gcc.spec
deleted file mode 100644
index 1673a8c09a..0000000000
--- a/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-m68k-rtems4.10-gcc
-Summary: m68k-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-m68k-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-m68k-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-m68k-rtems4.10-binutils
-Requires: rtems-4.10-m68k-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-m68k-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 m68k-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=m68k-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/m68k-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/m68k-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/m68k-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/m68k-rtems4.10-m68k-rtems4.10-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/m68k-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/m68k-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/m68k-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/m68k-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/m68k-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/m68k-rtems4.10/%{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/m68k-rtems4.10/%{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}/m68k-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/m68k-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/m68k-rtems4.10/'} | %__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}/m68k-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/m68k-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-m68k-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-m68k-rtems4.10-gcc
-# Summary: GNU cc compiler for m68k-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-m68k-rtems4.10-binutils
-# Requires: rtems-4.10-m68k-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-m68k-rtems4.10-gcc
-GNU cc compiler for m68k-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-m68k-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-m68k-rtems4.10-gcc-libgcc
-Summary: libgcc for m68k-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-m68k-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-m68k-rtems4.10-gcc-libgcc
-libgcc m68k-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-m68k-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m68k-rtems4.10-gcc.1*
-%{_mandir}/man1/m68k-rtems4.10-cpp.1*
-%{_mandir}/man1/m68k-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/m68k-rtems4.10-cpp%{_exeext}
-%{_bindir}/m68k-rtems4.10-gcc%{_exeext}
-%{_bindir}/m68k-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/m68k-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/m68k-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/m68k-rtems4.10
-%dir %{_libexecdir}/gcc/m68k-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/m68k-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/m68k-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/m68k-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/m68k-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-m68k-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/m68k-rtems4.10
-%dir %{_gcclibdir}/gcc/m68k-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/m68k-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/m68k-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/m68k-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-m68k-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-m68k-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for m68k-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-m68k-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-m68k-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-m68k-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-m68k-rtems4.10-gcc-c++
-GCC c++ compiler for m68k-rtems4.10.
-
-
-%package -n rtems-4.10-m68k-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for m68k-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-m68k-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-m68k-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m68k-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/m68k-rtems4.10-c++%{_exeext}
-%{_bindir}/m68k-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/m68k-rtems4.10
-%dir %{_libexecdir}/gcc/m68k-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/m68k-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-m68k-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/m68k-rtems4.10
-%dir %{_gcclibdir}/gcc/m68k-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/m68k-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/m68k-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-m68k-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-m68k-rtems4.10-newlib
-Summary: C Library (newlib) for m68k-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-m68k-rtems4.10-newlib
-Newlib C Library for m68k-rtems4.10.
-
-%files -n rtems-4.10-m68k-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/m68k-rtems4.10
-%{_exec_prefix}/m68k-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gdb.spec
deleted file mode 100644
index 2708f303f6..0000000000
--- a/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,283 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-m68k-rtems4.10-gdb
-Summary: Gdb for target m68k-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target m68k-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=m68k-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/m68k-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm68k-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# m68k-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-m68k-rtems4.10-gdb
-# Summary: rtems gdb for m68k-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-m68k-rtems4.10-gdb
-GNU gdb targetting m68k-rtems4.10.
-
-%files -n rtems-4.10-m68k-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/m68k-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m68k-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/m68k-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/mips/Makefile.am b/contrib/crossrpms/rtems4.10/mips/Makefile.am
deleted file mode 100644
index 41e2db7d98..0000000000
--- a/contrib/crossrpms/rtems4.10/mips/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = mips-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/mips/binutils-sources.add b/contrib/crossrpms/rtems4.10/mips/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/mips/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/mips/gcc-sources.add b/contrib/crossrpms/rtems4.10/mips/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/mips/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/mips/gdb-sources.add b/contrib/crossrpms/rtems4.10/mips/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/mips/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-binutils.spec
deleted file mode 100644
index c98a9d8f31..0000000000
--- a/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-mips-rtems4.10-binutils
-Summary: Binutils for target mips-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target mips-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=mips-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/mips-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mips-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/mips-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mips-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/mips-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mips-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/mips-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mips-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# mips-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-mips-rtems4.10-binutils
-# Summary: rtems binutils for mips-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-mips-rtems4.10-binutils
-GNU binutils targetting mips-rtems4.10.
-
-%files -n rtems-4.10-mips-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/mips-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/mips-rtems4.10-*
-
-%dir %{_exec_prefix}/mips-rtems4.10
-%dir %{_exec_prefix}/mips-rtems4.10/bin
-%{_exec_prefix}/mips-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/mips-rtems4.10/lib
-%{_exec_prefix}/mips-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gcc.spec
deleted file mode 100644
index 437d1373d8..0000000000
--- a/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-mips-rtems4.10-gcc
-Summary: mips-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-mips-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-mips-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-mips-rtems4.10-binutils
-Requires: rtems-4.10-mips-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-mips-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 mips-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=mips-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/mips-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/mips-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/mips-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/mips-rtems4.10-mips-rtems4.10-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/mips-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/mips-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/mips-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/mips-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/mips-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/mips-rtems4.10/%{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/mips-rtems4.10/%{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}/mips-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/mips-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/mips-rtems4.10/'} | %__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}/mips-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/mips-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-mips-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-mips-rtems4.10-gcc
-# Summary: GNU cc compiler for mips-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-mips-rtems4.10-binutils
-# Requires: rtems-4.10-mips-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-mips-rtems4.10-gcc
-GNU cc compiler for mips-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-mips-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-mips-rtems4.10-gcc-libgcc
-Summary: libgcc for mips-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-mips-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-mips-rtems4.10-gcc-libgcc
-libgcc mips-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-mips-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/mips-rtems4.10-gcc.1*
-%{_mandir}/man1/mips-rtems4.10-cpp.1*
-%{_mandir}/man1/mips-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/mips-rtems4.10-cpp%{_exeext}
-%{_bindir}/mips-rtems4.10-gcc%{_exeext}
-%{_bindir}/mips-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/mips-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/mips-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/mips-rtems4.10
-%dir %{_libexecdir}/gcc/mips-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/mips-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/mips-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/mips-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/mips-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-mips-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/mips-rtems4.10
-%dir %{_gcclibdir}/gcc/mips-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/mips-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/mips-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/mips-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-mips-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-mips-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for mips-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-mips-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-mips-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-mips-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-mips-rtems4.10-gcc-c++
-GCC c++ compiler for mips-rtems4.10.
-
-
-%package -n rtems-4.10-mips-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for mips-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-mips-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-mips-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/mips-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/mips-rtems4.10-c++%{_exeext}
-%{_bindir}/mips-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/mips-rtems4.10
-%dir %{_libexecdir}/gcc/mips-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/mips-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-mips-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/mips-rtems4.10
-%dir %{_gcclibdir}/gcc/mips-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/mips-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/mips-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-mips-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-mips-rtems4.10-newlib
-Summary: C Library (newlib) for mips-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-mips-rtems4.10-newlib
-Newlib C Library for mips-rtems4.10.
-
-%files -n rtems-4.10-mips-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/mips-rtems4.10
-%{_exec_prefix}/mips-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gdb.spec
deleted file mode 100644
index caa2ac35d6..0000000000
--- a/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,283 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-mips-rtems4.10-gdb
-Summary: Gdb for target mips-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target mips-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=mips-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/mips-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmips-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# mips-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-mips-rtems4.10-gdb
-# Summary: rtems gdb for mips-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-mips-rtems4.10-gdb
-GNU gdb targetting mips-rtems4.10.
-
-%files -n rtems-4.10-mips-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/mips-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/mips-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/mips-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/mipstx39/Makefile.am b/contrib/crossrpms/rtems4.10/mipstx39/Makefile.am
deleted file mode 100644
index ec9cbd1706..0000000000
--- a/contrib/crossrpms/rtems4.10/mipstx39/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-# $Id$
-
-TARGET = mipstx39-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-# We only want a gdb with a tx39 simulator in it. We share the other tools
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/mipstx39/gdb-sources.add b/contrib/crossrpms/rtems4.10/mipstx39/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/mipstx39/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/mipstx39/rtems-4.10-mipstx39-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/mipstx39/rtems-4.10-mipstx39-rtems4.10-gdb.spec
deleted file mode 100644
index 3d9df4fb26..0000000000
--- a/contrib/crossrpms/rtems4.10/mipstx39/rtems-4.10-mipstx39-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,287 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-mipstx39-rtems4.10-gdb
-Summary: Gdb for target mipstx39-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-%ifos mingw mingw32
-# Mingw lacks functions required by the mipstx39 simulator
-%define build_sim --disable-sim
-%endif
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target mipstx39-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=mipstx39-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/mipstx39-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmipstx39-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# mipstx39-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-mipstx39-rtems4.10-gdb
-# Summary: rtems gdb for mipstx39-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-mipstx39-rtems4.10-gdb
-GNU gdb targetting mipstx39-rtems4.10.
-
-%files -n rtems-4.10-mipstx39-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/mipstx39-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/mipstx39-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/mipstx39-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/powerpc/Makefile.am b/contrib/crossrpms/rtems4.10/powerpc/Makefile.am
deleted file mode 100644
index 6303913926..0000000000
--- a/contrib/crossrpms/rtems4.10/powerpc/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = powerpc-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/powerpc/binutils-sources.add b/contrib/crossrpms/rtems4.10/powerpc/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/powerpc/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/powerpc/gcc-sources.add b/contrib/crossrpms/rtems4.10/powerpc/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/powerpc/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/powerpc/gdb-sources.add b/contrib/crossrpms/rtems4.10/powerpc/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/powerpc/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-binutils.spec
deleted file mode 100644
index ba0778aa8b..0000000000
--- a/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-powerpc-rtems4.10-binutils
-Summary: Binutils for target powerpc-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target powerpc-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=powerpc-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/powerpc-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/powerpc-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/powerpc-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/powerpc-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/powerpc-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/powerpc-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/powerpc-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/powerpc-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# powerpc-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-powerpc-rtems4.10-binutils
-# Summary: rtems binutils for powerpc-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-powerpc-rtems4.10-binutils
-GNU binutils targetting powerpc-rtems4.10.
-
-%files -n rtems-4.10-powerpc-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/powerpc-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/powerpc-rtems4.10-*
-
-%dir %{_exec_prefix}/powerpc-rtems4.10
-%dir %{_exec_prefix}/powerpc-rtems4.10/bin
-%{_exec_prefix}/powerpc-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/powerpc-rtems4.10/lib
-%{_exec_prefix}/powerpc-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gcc.spec
deleted file mode 100644
index dbf17387ac..0000000000
--- a/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-powerpc-rtems4.10-gcc
-Summary: powerpc-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-powerpc-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-powerpc-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-powerpc-rtems4.10-binutils
-Requires: rtems-4.10-powerpc-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-powerpc-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 powerpc-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=powerpc-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/powerpc-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/powerpc-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/powerpc-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/powerpc-rtems4.10-powerpc-rtems4.10-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/powerpc-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/powerpc-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/powerpc-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/powerpc-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/powerpc-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/powerpc-rtems4.10/%{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/powerpc-rtems4.10/%{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}/powerpc-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/powerpc-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/powerpc-rtems4.10/'} | %__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}/powerpc-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/powerpc-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-powerpc-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-powerpc-rtems4.10-gcc
-# Summary: GNU cc compiler for powerpc-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-powerpc-rtems4.10-binutils
-# Requires: rtems-4.10-powerpc-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-powerpc-rtems4.10-gcc
-GNU cc compiler for powerpc-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-powerpc-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-powerpc-rtems4.10-gcc-libgcc
-Summary: libgcc for powerpc-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-powerpc-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-powerpc-rtems4.10-gcc-libgcc
-libgcc powerpc-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-powerpc-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/powerpc-rtems4.10-gcc.1*
-%{_mandir}/man1/powerpc-rtems4.10-cpp.1*
-%{_mandir}/man1/powerpc-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/powerpc-rtems4.10-cpp%{_exeext}
-%{_bindir}/powerpc-rtems4.10-gcc%{_exeext}
-%{_bindir}/powerpc-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/powerpc-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/powerpc-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/powerpc-rtems4.10
-%dir %{_libexecdir}/gcc/powerpc-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/powerpc-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/powerpc-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/powerpc-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/powerpc-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-powerpc-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/powerpc-rtems4.10
-%dir %{_gcclibdir}/gcc/powerpc-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/powerpc-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/powerpc-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/powerpc-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-powerpc-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-powerpc-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for powerpc-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-powerpc-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-powerpc-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-powerpc-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-powerpc-rtems4.10-gcc-c++
-GCC c++ compiler for powerpc-rtems4.10.
-
-
-%package -n rtems-4.10-powerpc-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for powerpc-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-powerpc-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-powerpc-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/powerpc-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/powerpc-rtems4.10-c++%{_exeext}
-%{_bindir}/powerpc-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/powerpc-rtems4.10
-%dir %{_libexecdir}/gcc/powerpc-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/powerpc-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-powerpc-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/powerpc-rtems4.10
-%dir %{_gcclibdir}/gcc/powerpc-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/powerpc-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/powerpc-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-powerpc-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-powerpc-rtems4.10-newlib
-Summary: C Library (newlib) for powerpc-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-powerpc-rtems4.10-newlib
-Newlib C Library for powerpc-rtems4.10.
-
-%files -n rtems-4.10-powerpc-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/powerpc-rtems4.10
-%{_exec_prefix}/powerpc-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec
deleted file mode 100644
index 5f8f40b60e..0000000000
--- a/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,288 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-powerpc-rtems4.10-gdb
-Summary: Gdb for target powerpc-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%if "%{_build}" != "%{_host}"
-# psim doesn't support Cdn-X
-%global build_sim --disable-sim
-%else
-%global build_sim --enable-sim --enable-sim-trace
-%endif
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target powerpc-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=powerpc-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/powerpc-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpowerpc-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# powerpc-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-powerpc-rtems4.10-gdb
-# Summary: rtems gdb for powerpc-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-powerpc-rtems4.10-gdb
-GNU gdb targetting powerpc-rtems4.10.
-
-%files -n rtems-4.10-powerpc-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/powerpc-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/powerpc-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/powerpc-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/sh/Makefile.am b/contrib/crossrpms/rtems4.10/sh/Makefile.am
deleted file mode 100644
index c8026c2334..0000000000
--- a/contrib/crossrpms/rtems4.10/sh/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = sh-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/sh/binutils-sources.add b/contrib/crossrpms/rtems4.10/sh/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/sh/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/sh/gcc-sources.add b/contrib/crossrpms/rtems4.10/sh/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/sh/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/sh/gdb-sources.add b/contrib/crossrpms/rtems4.10/sh/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/sh/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-binutils.spec
deleted file mode 100644
index a421bff01a..0000000000
--- a/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-sh-rtems4.10-binutils
-Summary: Binutils for target sh-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target sh-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=sh-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# sh-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-sh-rtems4.10-binutils
-# Summary: rtems binutils for sh-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-sh-rtems4.10-binutils
-GNU binutils targetting sh-rtems4.10.
-
-%files -n rtems-4.10-sh-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/sh-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/sh-rtems4.10-*
-
-%dir %{_exec_prefix}/sh-rtems4.10
-%dir %{_exec_prefix}/sh-rtems4.10/bin
-%{_exec_prefix}/sh-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/sh-rtems4.10/lib
-%{_exec_prefix}/sh-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gcc.spec
deleted file mode 100644
index 3a887c1fa5..0000000000
--- a/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-sh-rtems4.10-gcc
-Summary: sh-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-sh-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-sh-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-sh-rtems4.10-binutils
-Requires: rtems-4.10-sh-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-sh-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 sh-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=sh-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/sh-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/sh-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/sh-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/sh-rtems4.10-sh-rtems4.10-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/sh-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/sh-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/sh-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/sh-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/sh-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/sh-rtems4.10/%{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/sh-rtems4.10/%{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}/sh-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/sh-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/sh-rtems4.10/'} | %__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}/sh-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/sh-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-sh-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-sh-rtems4.10-gcc
-# Summary: GNU cc compiler for sh-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-sh-rtems4.10-binutils
-# Requires: rtems-4.10-sh-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-sh-rtems4.10-gcc
-GNU cc compiler for sh-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-sh-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-sh-rtems4.10-gcc-libgcc
-Summary: libgcc for sh-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-sh-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-sh-rtems4.10-gcc-libgcc
-libgcc sh-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-sh-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/sh-rtems4.10-gcc.1*
-%{_mandir}/man1/sh-rtems4.10-cpp.1*
-%{_mandir}/man1/sh-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/sh-rtems4.10-cpp%{_exeext}
-%{_bindir}/sh-rtems4.10-gcc%{_exeext}
-%{_bindir}/sh-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/sh-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/sh-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/sh-rtems4.10
-%dir %{_libexecdir}/gcc/sh-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/sh-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/sh-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/sh-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/sh-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-sh-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/sh-rtems4.10
-%dir %{_gcclibdir}/gcc/sh-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/sh-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/sh-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/sh-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-sh-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-sh-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for sh-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-sh-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-sh-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-sh-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-sh-rtems4.10-gcc-c++
-GCC c++ compiler for sh-rtems4.10.
-
-
-%package -n rtems-4.10-sh-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for sh-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-sh-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-sh-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/sh-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/sh-rtems4.10-c++%{_exeext}
-%{_bindir}/sh-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/sh-rtems4.10
-%dir %{_libexecdir}/gcc/sh-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/sh-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-sh-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/sh-rtems4.10
-%dir %{_gcclibdir}/gcc/sh-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/sh-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/sh-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-sh-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-sh-rtems4.10-newlib
-Summary: C Library (newlib) for sh-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-sh-rtems4.10-newlib
-Newlib C Library for sh-rtems4.10.
-
-%files -n rtems-4.10-sh-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/sh-rtems4.10
-%{_exec_prefix}/sh-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gdb.spec
deleted file mode 100644
index ee7a66162f..0000000000
--- a/contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,283 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-sh-rtems4.10-gdb
-Summary: Gdb for target sh-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target sh-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=sh-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/sh-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsh-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# sh-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-sh-rtems4.10-gdb
-# Summary: rtems gdb for sh-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-sh-rtems4.10-gdb
-GNU gdb targetting sh-rtems4.10.
-
-%files -n rtems-4.10-sh-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/sh-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/sh-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/sh-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-
diff --git a/contrib/crossrpms/rtems4.10/sparc/Makefile.am b/contrib/crossrpms/rtems4.10/sparc/Makefile.am
deleted file mode 100644
index 4f3360a6fd..0000000000
--- a/contrib/crossrpms/rtems4.10/sparc/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = sparc-rtems4.10
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.20.1
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.4.6
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 4
-NEWLIB_VERS = 1.18.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 7.2
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 2
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.10/sparc/binutils-sources.add b/contrib/crossrpms/rtems4.10/sparc/binutils-sources.add
deleted file mode 100644
index 807927dc7e..0000000000
--- a/contrib/crossrpms/rtems4.10/sparc/binutils-sources.add
+++ /dev/null
@@ -1,2 +0,0 @@
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
diff --git a/contrib/crossrpms/rtems4.10/sparc/gcc-sources.add b/contrib/crossrpms/rtems4.10/sparc/gcc-sources.add
deleted file mode 100644
index 3ec3b39505..0000000000
--- a/contrib/crossrpms/rtems4.10/sparc/gcc-sources.add
+++ /dev/null
@@ -1,41 +0,0 @@
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.10/sparc/gdb-sources.add b/contrib/crossrpms/rtems4.10/sparc/gdb-sources.add
deleted file mode 100644
index fe3618dd42..0000000000
--- a/contrib/crossrpms/rtems4.10/sparc/gdb-sources.add
+++ /dev/null
@@ -1,9 +0,0 @@
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
diff --git a/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-binutils.spec b/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-binutils.spec
deleted file mode 100644
index 176cfc54af..0000000000
--- a/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-binutils.spec
+++ /dev/null
@@ -1,268 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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: rtems-4.10-sparc-rtems4.10-binutils
-Summary: Binutils for target sparc-rtems4.10
-Group: Development/Tools
-Version: %{binutils_rpmvers}
-Release: 3%{?dist}
-License: GPL/LGPL
-URL: 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
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-BuildRequires: flex
-BuildRequires: bison
-
-Requires: rtems-4.10-binutils-common
-
-Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
-
-%description
-Cross binutils for target sparc-rtems4.10
-%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
- export PATH="%{_bindir}:${PATH}"
- 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=sparc-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --exec-prefix=%{_exec_prefix} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
- install-info
-
-# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# binutils does not install share/locale, however it uses it
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# manpages without corresponding tools
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sparc-rtems4.10-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sparc-rtems4.10-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sparc-rtems4.10-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sparc-rtems4.10-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sparc-rtems4.10-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sparc-rtems4.10-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sparc-rtems4.10-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sparc-rtems4.10-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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# sparc-rtems4.10-binutils
-# ==============================================================
-# %package -n rtems-4.10-sparc-rtems4.10-binutils
-# Summary: rtems binutils for sparc-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-binutils-common
-# %endif
-
-%description -n rtems-4.10-sparc-rtems4.10-binutils
-GNU binutils targetting sparc-rtems4.10.
-
-%files -n rtems-4.10-sparc-rtems4.10-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_datarootdir}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/sparc-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/sparc-rtems4.10-*
-
-%dir %{_exec_prefix}/sparc-rtems4.10
-%dir %{_exec_prefix}/sparc-rtems4.10/bin
-%{_exec_prefix}/sparc-rtems4.10/bin/*
-
-%dir %{_exec_prefix}/sparc-rtems4.10/lib
-%{_exec_prefix}/sparc-rtems4.10/lib/ldscripts
-# ==============================================================
-# rtems-4.10-binutils-common
-# ==============================================================
-%package -n rtems-4.10-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-binutils-common
-
-RTEMS is an open source operating system for embedded systems.
-
-This is the base for binutils regardless of target CPU.
-
-%post -n rtems-4.10-binutils-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-
-%preun -n rtems-4.10-binutils-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-fi
-
-%files -n rtems-4.10-binutils-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/as.info*
-%{_infodir}/bfd.info*
-%{_infodir}/binutils.info*
-%{_infodir}/ld.info*
-%{_infodir}/standards.info*
-%{_infodir}/gprof.info*
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gcc.spec b/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gcc.spec
deleted file mode 100644
index 4ac8621981..0000000000
--- a/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gcc.spec
+++ /dev/null
@@ -1,874 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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.4.6
-%define gcc_version 4.4.6
-%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
-
-%define newlib_pkgvers 1.18.0
-%define newlib_version 1.18.0
-
-Name: rtems-4.10-sparc-rtems4.10-gcc
-Summary: sparc-rtems4.10 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 4%{?dist}
-License: 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
-
-# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
-# Should be applicable to gcc >= 4.5.0
-%bcond_with gcc_stdint
-
-# 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%{?fc16}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc15}
-%global mpc_provided 0.8.3
-%global mpfr_provided 3.0.0
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?fc14}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.1
-%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%{?suse12_1}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.1
-%global gmp_provided 5.0.2
-%endif
-
-%if 0%{?suse11_3}
-%global mpc_provided 0.8.1
-%global mpfr_provided 2.4.2
-%global gmp_provided 4.3.2
-%endif
-
-%if 0%{?suse11_4}
-%global mpc_provided 0.8.2
-%global mpfr_provided 3.0.0
-%global gmp_provided 5.0.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"
-%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 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 0.8
-%if %{with lto}
-%define libelf_required 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 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}
-%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
-%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
-%{?suse11_3: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: rtems-4.10-sparc-rtems4.10-gcc = %{gcc_rpmvers}
-%endif
-
-# Not strictly required, but patches may introduce a need to use them.
-# For reasons of simplicity, always require them.
-BuildRequires: flex bison
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.10-sparc-rtems4.10-binutils
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-sparc-rtems4.10-binutils
-Requires: rtems-4.10-sparc-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.10-sparc-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-
-%if "%{gcc_version}" >= "4.5.0"
-BuildRequires: zlib-devel
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}zlib-devel
-%endif
-%else
-%endif
-
-%global _gcclibdir %{_prefix}/lib
-
-%if "%{gcc_version}" == "4.4.6"
-Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.4.6"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
-%endif
-%{?_without_sources:NoSource: 1}
-
-%if "%{newlib_version}" == "1.18.0"
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
-%endif
-%{?_without_sources:NoSource: 50}
-
-%if 0%{?_build_mpfr}
-Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/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 sparc-rtems4.10.
-
-%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 ..
-
-
-
-
-
-%if %{with gcc_stdint}
-sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
-%endif
-
-%setup -q -T -D -n %{name}-%{version} -a50
-cd newlib-%{newlib_version}
-%{?PATCH50:%patch50 -p1}
-cd ..
- # Copy the C library into gcc's source tree
- ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
-%if %{with gcc_stdint}
- rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
-%endif
- # Make sure not to be using GPL'ed sources
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
- rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
-
-%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
-
-echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
-
-
- # Fix timestamps
- cd gcc-%{gcc_pkgvers}
- contrib/gcc_update --touch
- cd ..
-%build
- mkdir -p build
-
- cd build
-
- languages="c"
- languages="$languages,c++"
- export PATH="%{_bindir}:${PATH}"
-%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=sparc-rtems4.10 \
- --disable-libstdcxx-pch \
- --with-gnu-as --with-gnu-ld --verbose \
- --with-newlib \
- --with-system-zlib \
- --disable-nls --without-included-gettext \
- --disable-win32-registry \
- --enable-version-specific-runtime-libs \
- --enable-threads \
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
- %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
- --enable-newlib-io-c99-formats \
- --enable-languages="$languages"
-
-%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
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-
- make DESTDIR=$RPM_BUILD_ROOT install
- cd ..
-
- cd build/sparc-rtems4.10/newlib
- make DESTDIR=$RPM_BUILD_ROOT install-info
- 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/sparc-rtems4.10/%{gcc_version}/include/
- fi
-%endif
-
- # host library
-%if "%{gcc_version}" >= "4.2.0"
- # libiberty doesn't honor --libdir, but always installs to a
- # 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}/sparc-rtems4.10-c++filt%{_exeext}
-
-
- # We don't ship info/dir
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
- # We don't want libffi's man-pages
- rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
-
- # Bug in gcc-3.4.0pre
- rm -f $RPM_BUILD_ROOT%{_bindir}/sparc-rtems4.10-sparc-rtems4.10-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/sparc-rtems4.10/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/sparc-rtems4.10/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/sparc-rtems4.10/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/sparc-rtems4.10/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,;.*$,,'`
-
- echo "%defattr(-,root,root,-)" > build/files.newlib
- TGTDIR="%{_exec_prefix}/sparc-rtems4.10/lib"
- for i in $multilibs; do
- case $i in
- \.) echo "%dir ${TGTDIR}" >> build/files.newlib
- ;;
- *) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
- ;;
- esac
- done
-
- rm -f dirs ;
- echo "%defattr(-,root,root,-)" >> dirs
- TGTDIR="%{_gcclibdir}/gcc/sparc-rtems4.10/%{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/sparc-rtems4.10/%{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}/sparc-rtems4.10/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 ;;
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%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}/sparc-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/sparc-rtems4.10/'} | %__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}/sparc-rtems4.10/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/sparc-rtems4.10/'} | %__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
-%define __debug_install_post . ./debug_install_post
-
-%endif
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# rtems-4.10-sparc-rtems4.10-gcc
-# ==============================================================
-# %package -n rtems-4.10-sparc-rtems4.10-gcc
-# Summary: GNU cc compiler for sparc-rtems4.10
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.10-sparc-rtems4.10-binutils
-# Requires: rtems-4.10-sparc-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.10-gcc-common
-# %endif
-
-%description -n rtems-4.10-sparc-rtems4.10-gcc
-GNU cc compiler for sparc-rtems4.10.
-
-# ==============================================================
-# rtems-4.10-sparc-rtems4.10-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.10-sparc-rtems4.10-gcc-libgcc
-Summary: libgcc for sparc-rtems4.10-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.10-sparc-rtems4.10-newlib = %{newlib_version}-27%{?dist}
-License: GPL
-
-%description -n rtems-4.10-sparc-rtems4.10-gcc-libgcc
-libgcc sparc-rtems4.10-gcc.
-
-
-%files -n rtems-4.10-sparc-rtems4.10-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/sparc-rtems4.10-gcc.1*
-%{_mandir}/man1/sparc-rtems4.10-cpp.1*
-%{_mandir}/man1/sparc-rtems4.10-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/sparc-rtems4.10-cpp%{_exeext}
-%{_bindir}/sparc-rtems4.10-gcc%{_exeext}
-%{_bindir}/sparc-rtems4.10-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/sparc-rtems4.10-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/sparc-rtems4.10-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/sparc-rtems4.10
-%dir %{_libexecdir}/gcc/sparc-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/sparc-rtems4.10/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/sparc-rtems4.10/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/sparc-rtems4.10/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/sparc-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.10-sparc-rtems4.10-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/sparc-rtems4.10
-%dir %{_gcclibdir}/gcc/sparc-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/sparc-rtems4.10/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%dir %{_gcclibdir}/gcc/sparc-rtems4.10/%{gcc_version}/include/ssp
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/sparc-rtems4.10/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.10-gcc-common
-# ==============================================================
-%package -n rtems-4.10-gcc-common
-Summary: Base package for rtems gcc and newlib C Library
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.10-gcc-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/cpp.info*
-%{_infodir}/cppinternals.info*
-%{_infodir}/gcc.info*
-%{_infodir}/gccint.info*
-%{_infodir}/gccinstall.info*
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.10-gcc-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-
-%preun -n rtems-4.10-gcc-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
-fi
-
-# ==============================================================
-# rtems-4.10-sparc-rtems4.10-gcc-c++
-# ==============================================================
-%package -n rtems-4.10-sparc-rtems4.10-gcc-c++
-Summary: GCC c++ compiler for sparc-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.10-sparc-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.10-sparc-rtems4.10-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.10-gcc-common
-Requires: rtems-4.10-sparc-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.10-sparc-rtems4.10-gcc-c++
-GCC c++ compiler for sparc-rtems4.10.
-
-
-%package -n rtems-4.10-sparc-rtems4.10-gcc-libstdc++
-Summary: libstdc++ for sparc-rtems4.10
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.10-sparc-rtems4.10-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.10-sparc-rtems4.10-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/sparc-rtems4.10-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/sparc-rtems4.10-c++%{_exeext}
-%{_bindir}/sparc-rtems4.10-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/sparc-rtems4.10
-%dir %{_libexecdir}/gcc/sparc-rtems4.10/%{gcc_version}
-%{_libexecdir}/gcc/sparc-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.10-sparc-rtems4.10-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/sparc-rtems4.10
-%dir %{_gcclibdir}/gcc/sparc-rtems4.10/%{gcc_version}
-%dir %{_gcclibdir}/gcc/sparc-rtems4.10/%{gcc_version}/include
-%{_gcclibdir}/gcc/sparc-rtems4.10/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.10-sparc-rtems4.10-newlib
-# ==============================================================
-%package -n rtems-4.10-sparc-rtems4.10-newlib
-Summary: C Library (newlib) for sparc-rtems4.10
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.10-newlib-common
-
-%description -n rtems-4.10-sparc-rtems4.10-newlib
-Newlib C Library for sparc-rtems4.10.
-
-%files -n rtems-4.10-sparc-rtems4.10-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/sparc-rtems4.10
-%{_exec_prefix}/sparc-rtems4.10/include
-
-# ==============================================================
-# rtems-4.10-newlib-common
-# ==============================================================
-%package -n rtems-4.10-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 27%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.10-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.10-newlib-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/libc.info*
-%{_infodir}/libm.info*
-
-%post -n rtems-4.10-newlib-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-
-%preun -n rtems-4.10-newlib-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
-fi
-
diff --git a/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gdb.spec
deleted file mode 100644
index 05a2e1dcf5..0000000000
--- a/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gdb.spec
+++ /dev/null
@@ -1,287 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.10
-%define _exec_prefix %{_prefix}
-%define _bindir %{_exec_prefix}/bin
-%define _sbindir %{_exec_prefix}/sbin
-%define _libexecdir %{_exec_prefix}/libexec
-%define _datarootdir %{_prefix}/share
-%define _datadir %{_datarootdir}
-%define _sysconfdir %{_prefix}/etc
-%define _sharedstatedir %{_prefix}/com
-%define _localstatedir %{_prefix}/var
-%define _includedir %{_prefix}/include
-%define _libdir %{_exec_prefix}/%{_lib}
-%define _mandir %{_datarootdir}/man
-%define _infodir %{_datarootdir}/info
-%define _localedir %{_datarootdir}/locale
-
-%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 gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
-
-Name: rtems-4.10-sparc-rtems4.10-gdb
-Summary: Gdb for target sparc-rtems4.10
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 2%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%global build_sim --enable-sim
-
-# Whether to build against system readline
-# Default: yes
-%bcond_without system_readline
-
-# Whether to build python support
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-%global build_sim --enable-sim --enable-sim-trace
-%ifos mingw mingw32
-# Mingw lacks functions required by the sparc simulator
-%define build_sim --disable-sim
-%endif
-
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-Requires: rtems-4.10-gdb-common
-
-%if "%{gdb_version}" == "7.2"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.10-20100903.diff
-%endif
-%if "%{gdb_version}" == "7.1"
-Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.1-rtems4.10-20100812.diff
-%endif
-
-
-%description
-GDB for target sparc-rtems4.10
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-# Force using a system-provided libreadline
-%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
-%build
- export PATH="%{_bindir}:${PATH}"
- mkdir -p build
- cd build
-%if "%{_build}" != "%{_host}"
- CFLAGS_FOR_BUILD="-g -O2 -Wall" \
-%endif
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=sparc-rtems4.10 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
- --with-expat \
- %{?with_python:--with-python}%{!?with_python:--without-python} \
- --with-gdb-datadir=%{_datadir}/sparc-rtems4.10-gdb \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make %{?_smp_mflags} all
- make info
- cd ..
-
-%install
- export PATH="%{_bindir}:${PATH}"
- rm -rf $RPM_BUILD_ROOT
-
- cd build
- make DESTDIR=$RPM_BUILD_ROOT install
-
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsparc-rtems4.10-sim.a
-
-# Bug in gdb-7.0, bogusly installs linux-only files
- somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/syscalls/*.xml; do
- case $f in
- *linux.xml) rm -f $f;;
- *.xml) somethinguseful=1;;
- esac
- done
- if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/syscalls"
- fi
-
-%if "{gdb_version}" >= "7.3"
-%if ! %{with python}
-# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/python
-%endif
-%endif
- 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
- ;;
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
-%clean
- rm -rf $RPM_BUILD_ROOT
-
-# ==============================================================
-# sparc-rtems4.10-gdb
-# ==============================================================
-# %package -n rtems-4.10-sparc-rtems4.10-gdb
-# Summary: rtems gdb for sparc-rtems4.10
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.10-gdb-common
-# %endif
-
-%description -n rtems-4.10-sparc-rtems4.10-gdb
-GNU gdb targetting sparc-rtems4.10.
-
-%files -n rtems-4.10-sparc-rtems4.10-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-%{?with_python:%{_datadir}/sparc-rtems4.10-gdb}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/sparc-rtems4.10-*.1*
-
-%dir %{_bindir}
-%{_bindir}/sparc-rtems4.10-*
-
-# ==============================================================
-# rtems-4.10-gdb-common
-# ==============================================================
-%package -n rtems-4.10-gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-%description -n rtems-4.10-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.10-gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-
-%preun -n rtems-4.10-gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-fi
-
-%files -n rtems-4.10-gdb-common
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%{_infodir}/annotate.info*
-