summaryrefslogtreecommitdiff
path: root/contrib/crossrpms/rtems4.9/m68k
diff options
context:
space:
mode:
authorRalf Corsépius <ralf.corsepius@rtems.org>2012-02-17 15:57:33 +0100
committerRalf Corsépius <ralf.corsepius@rtems.org>2012-02-17 15:57:33 +0100
commitad6833b080fb29c49b85305f5fa2918268604149 (patch)
tree96ce007eb90e31d841287abdf781c3cfdaa80e4a /contrib/crossrpms/rtems4.9/m68k
parent305567ce121e9b4633ea7197a39387a91f930e0c (diff)
Remove (Moved to git.rtems.org/data/git/rtems-crossrpms.git).4.9
Diffstat (limited to 'contrib/crossrpms/rtems4.9/m68k')
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/Makefile.am26
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/gcc-sources.add43
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/gdb-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec277
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec845
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec301
7 files changed, 0 insertions, 1502 deletions
diff --git a/contrib/crossrpms/rtems4.9/m68k/Makefile.am b/contrib/crossrpms/rtems4.9/m68k/Makefile.am
deleted file mode 100644
index a662f528aa..0000000000
--- a/contrib/crossrpms/rtems4.9/m68k/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-# $Id$
-
-TARGET = m68k-rtems4.9
-
-include $(top_srcdir)/mkspec.am
-
-BINUTILS_VERS = 2.19
-BINUTILS_PKGVERS = $(BINUTILS_VERS)
-BINUTILS_RPMREL = 3
-include ../binutils.am
-BINUTILS_OPTS +=
-
-GCC_VERS = 4.3.2
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 25
-NEWLIB_VERS = 1.16.0
-NEWLIB_PKGVERS = $(NEWLIB_VERS)
-NEWLIB_RPMREL = $(GCC_RPMREL)
-include ../gcc.am
-GCC_OPTS += --languages=cxx
-
-GDB_VERS = 6.8
-GDB_PKGVERS = $(GDB_VERS)
-GDB_RPMREL = 11
-include ../gdb.am
-GDB_OPTS +=
diff --git a/contrib/crossrpms/rtems4.9/m68k/binutils-sources.add b/contrib/crossrpms/rtems4.9/m68k/binutils-sources.add
deleted file mode 100644
index a62b3075f9..0000000000
--- a/contrib/crossrpms/rtems4.9/m68k/binutils-sources.add
+++ /dev/null
@@ -1,5 +0,0 @@
-Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 0}
-%if "%{binutils_version}" == "2.18"
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
-%endif
diff --git a/contrib/crossrpms/rtems4.9/m68k/gcc-sources.add b/contrib/crossrpms/rtems4.9/m68k/gcc-sources.add
deleted file mode 100644
index 925adef17d..0000000000
--- a/contrib/crossrpms/rtems4.9/m68k/gcc-sources.add
+++ /dev/null
@@ -1,43 +0,0 @@
-%if "%{gcc_version}" == "4.3.2"
-Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20090825.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if %build_cxx
-%if "%{gcc_version}" == "4.3.2"
-Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-%endif
-%if "%{gcc_version}" == "4.3.1"
-Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-%endif
-%{?_without_sources:NoSource: 1}
-
-%endif
-%if %build_fortran
-Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 2}
-
-%endif
-%if %build_gcj
-Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 3}
-
-%endif
-%if %build_gnat
-Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 4}
-
-%endif
-%if %build_objc
-Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 5}
-
-%endif
-%if %build_newlib
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
-%if "%{newlib_version}" == "1.16.0"
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20090324.diff
-%endif
-%{?_without_sources:NoSource: 50}
-%endif
diff --git a/contrib/crossrpms/rtems4.9/m68k/gdb-sources.add b/contrib/crossrpms/rtems4.9/m68k/gdb-sources.add
deleted file mode 100644
index 1e13562fae..0000000000
--- a/contrib/crossrpms/rtems4.9/m68k/gdb-sources.add
+++ /dev/null
@@ -1,5 +0,0 @@
-Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
-%{?_without_sources:NoSource: 0}
-%if "%{gdb_version}" == "6.8"
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20091111.diff
-%endif
diff --git a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec
deleted file mode 100644
index be7fe42a3e..0000000000
--- a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec
+++ /dev/null
@@ -1,277 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.9
-%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.19
-%define binutils_version 2.19
-%define binutils_rpmvers %{expand:%(echo "2.19" | tr - _ )}
-
-Name: rtems-4.9-m68k-rtems4.9-binutils
-Summary: Binutils for target m68k-rtems4.9
-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.9-binutils-common
-
-Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
-%{?_without_sources:NoSource: 0}
-%if "%{binutils_version}" == "2.18"
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
-%endif
-
-%description
-Cross binutils for target m68k-rtems4.9
-%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}"
-%if "m68k-rtems4.9" == "i686-pc-cygwin"
-# The cygwin sources are leaking memory
- RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
-%endif
- 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.9 \
- --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.9-dlltool%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.9-dlltool*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.9-nlmconv%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.9-nlmconv*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.9-windres%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.9-windres*
- fi
- if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.9-windmc%{_exeext}; then
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.9-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.9-binutils
-# ==============================================================
-# %package -n rtems-4.9-m68k-rtems4.9-binutils
-# Summary: rtems binutils for m68k-rtems4.9
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.9-binutils-common
-# %endif
-
-%description -n rtems-4.9-m68k-rtems4.9-binutils
-GNU binutils targetting m68k-rtems4.9.
-
-%files -n rtems-4.9-m68k-rtems4.9-binutils
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m68k-rtems4.9-*.1*
-
-%dir %{_bindir}
-%{_bindir}/m68k-rtems4.9-*
-
-%dir %{_exec_prefix}/m68k-rtems4.9
-%dir %{_exec_prefix}/m68k-rtems4.9/bin
-%{_exec_prefix}/m68k-rtems4.9/bin/*
-
-%dir %{_exec_prefix}/m68k-rtems4.9/lib
-%{_exec_prefix}/m68k-rtems4.9/lib/ldscripts
-# ==============================================================
-# rtems-4.9-binutils-common
-# ==============================================================
-%package -n rtems-4.9-binutils-common
-Summary: Base package for RTEMS binutils
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.9-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.9-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 || :
-%if "%{binutils_version}" > "2.17"
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-%endif
-
-%preun -n rtems-4.9-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 || :
-%if "%{binutils_version}" > "2.17"
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
-%endif
-fi
-
-%files -n rtems-4.9-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*
-%if "%{binutils_version}" > "2.17"
-%{_infodir}/gprof.info*
-%endif
-
-%dir %{_prefix}/share
-%dir %{_prefix}/share/locale
-
diff --git a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec
deleted file mode 100644
index f9e43eb8d8..0000000000
--- a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec
+++ /dev/null
@@ -1,845 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.9
-%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.3.2
-%define gcc_version 4.3.2
-%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
-
-%define newlib_pkgvers 1.16.0
-%define newlib_version 1.16.0
-
-Name: rtems-4.9-m68k-rtems4.9-gcc
-Summary: m68k-rtems4.9 gcc
-
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-Release: 25%{?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
-
-# 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%{?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.9-m68k-rtems4.9-gcc = %{gcc_rpmvers}
-%endif
-
-%if "%{gcc_version}" >= "4.2.0"
-BuildRequires: flex bison
-%endif
-
-
-BuildRequires: texinfo >= 4.2
-BuildRequires: rtems-4.9-m68k-rtems4.9-binutils
-
-Requires: rtems-4.9-gcc-common
-Requires: rtems-4.9-m68k-rtems4.9-binutils
-Requires: rtems-4.9-m68k-rtems4.9-gcc-libgcc = %{gcc_rpmvers}-%{release}
-Requires: rtems-4.9-m68k-rtems4.9-newlib = %{newlib_version}-25%{?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.3.2"
-Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20090825.diff
-%endif
-%{?_without_sources:NoSource: 0}
-
-%if "%{gcc_version}" == "4.3.2"
-Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-%endif
-%if "%{gcc_version}" == "4.3.1"
-Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
-%endif
-%{?_without_sources:NoSource: 1}
-
-Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
-%if "%{newlib_version}" == "1.16.0"
-Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20090324.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.9.
-
-%prep
-%setup -c -T -n %{name}-%{version}
-
-%setup -q -T -D -n %{name}-%{version} -a0
-cd gcc-%{gcc_pkgvers}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
-%setup -q -T -D -n %{name}-%{version} -a1
-cd gcc-%{gcc_pkgvers}
-%{?PATCH1:%patch1 -p1}
-cd ..
-
-
-
-
-
-%setup -q -T -D -n %{name}-%{version} -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}
- # 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}-25%{?dist}\/newlib-%{newlib_version}-25%{?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.9 \
- --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 \
- --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.9/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.9/%{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.9-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.9-m68k-rtems4.9-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.9/%{gcc_version}/install-tools
- rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/m68k-rtems4.9/%{gcc_version}/install-tools
-
- # Bug in gcc > 4.1.0: Installs an unused, empty directory
- if test -d ${RPM_BUILD_ROOT}%{_prefix}/m68k-rtems4.9/include/bits; then
- rmdir ${RPM_BUILD_ROOT}%{_prefix}/m68k-rtems4.9/include/bits
- fi
-
- # 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.9/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.9/%{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.9/%{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 ;;
- */libstdc++.*) echo "$i" >> build/files.g++ ;;
- */libsupc++.*) echo "$i" >> build/files.g++ ;;
- *) echo "$i" >> build/files.gcc ;;
- esac
- done
-
- TGTDIR="%{_exec_prefix}/m68k-rtems4.9/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.9/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/m68k-rtems4.9/'} | %__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.9/(lib|include|sys-root)' \
- %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/m68k-rtems4.9/'} | %__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.9-m68k-rtems4.9-gcc
-# ==============================================================
-# %package -n rtems-4.9-m68k-rtems4.9-gcc
-# Summary: GNU cc compiler for m68k-rtems4.9
-# Group: Development/Tools
-# Version: %{gcc_rpmvers}
-# Requires: rtems-4.9-m68k-rtems4.9-binutils
-# Requires: rtems-4.9-m68k-rtems4.9-newlib = %{newlib_version}-25%{?dist}
-# License: GPL
-
-# %if %build_infos
-# Requires: rtems-4.9-gcc-common
-# %endif
-
-%description -n rtems-4.9-m68k-rtems4.9-gcc
-GNU cc compiler for m68k-rtems4.9.
-
-# ==============================================================
-# rtems-4.9-m68k-rtems4.9-gcc-libgcc
-# ==============================================================
-%package -n rtems-4.9-m68k-rtems4.9-gcc-libgcc
-Summary: libgcc for m68k-rtems4.9-gcc
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-Requires: rtems-4.9-m68k-rtems4.9-newlib = %{newlib_version}-25%{?dist}
-License: GPL
-
-%description -n rtems-4.9-m68k-rtems4.9-gcc-libgcc
-libgcc m68k-rtems4.9-gcc.
-
-
-%files -n rtems-4.9-m68k-rtems4.9-gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m68k-rtems4.9-gcc.1*
-%{_mandir}/man1/m68k-rtems4.9-cpp.1*
-%{_mandir}/man1/m68k-rtems4.9-gcov.1*
-
-%dir %{_bindir}
-%{_bindir}/m68k-rtems4.9-cpp%{_exeext}
-%{_bindir}/m68k-rtems4.9-gcc%{_exeext}
-%{_bindir}/m68k-rtems4.9-gcc-%{gcc_version}%{_exeext}
-%{_bindir}/m68k-rtems4.9-gcov%{_exeext}
-%if "%{gcc_version}" < "4.6.0"
-%{_bindir}/m68k-rtems4.9-gccbug
-%endif
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/m68k-rtems4.9
-%dir %{_libexecdir}/gcc/m68k-rtems4.9/%{gcc_version}
-%{_libexecdir}/gcc/m68k-rtems4.9/%{gcc_version}/cc1%{_exeext}
-%{_libexecdir}/gcc/m68k-rtems4.9/%{gcc_version}/collect2%{_exeext}
-%if "%{gcc_version}" >= "4.5.0"
-%{?with_lto:%{_libexecdir}/gcc/m68k-rtems4.9/%{gcc_version}/lto%{_exeext}}
-%{_libexecdir}/gcc/m68k-rtems4.9/%{gcc_version}/lto-wrapper%{_exeext}
-%endif
-
-%files -n rtems-4.9-m68k-rtems4.9-gcc-libgcc -f build/files.gcc
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/m68k-rtems4.9
-%dir %{_gcclibdir}/gcc/m68k-rtems4.9/%{gcc_version}
-%dir %{_gcclibdir}/gcc/m68k-rtems4.9/%{gcc_version}/include
-
-%if "%{gcc_version}" > "4.0.3"
-%if "m68k-rtems4.9" != "bfin-rtems4.9"
-%if "m68k-rtems4.9" != "avr-rtems4.9"
-%dir %{_gcclibdir}/gcc/m68k-rtems4.9/%{gcc_version}/include/ssp
-%endif
-%endif
-%endif
-
-%if "%{gcc_version}" >= "4.3.0"
-%{_gcclibdir}/gcc/m68k-rtems4.9/%{gcc_version}/include-fixed
-%endif
-
-# ==============================================================
-# rtems-4.9-gcc-common
-# ==============================================================
-%package -n rtems-4.9-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.9-gcc-common
-GCC files that are shared by all targets.
-
-%files -n rtems-4.9-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*
-%if "%{gcc_version}" >= "4.6.0"
-%{_infodir}/libquadmath.info*
-%endif
-
-%dir %{_mandir}
-%dir %{_mandir}/man7
-%{_mandir}/man7/fsf-funding.7*
-%{_mandir}/man7/gfdl.7*
-%{_mandir}/man7/gpl.7*
-
-%post -n rtems-4.9-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.9-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.9-m68k-rtems4.9-gcc-c++
-# ==============================================================
-%package -n rtems-4.9-m68k-rtems4.9-gcc-c++
-Summary: GCC c++ compiler for m68k-rtems4.9
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-License: GPL
-Requires: rtems-4.9-m68k-rtems4.9-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
-
-%if "%{_build}" != "%{_host}"
-BuildRequires: rtems-4.9-m68k-rtems4.9-gcc-c++ = %{gcc_rpmvers}
-%endif
-
-Requires: rtems-4.9-gcc-common
-Requires: rtems-4.9-m68k-rtems4.9-gcc = %{gcc_rpmvers}-%{release}
-
-%description -n rtems-4.9-m68k-rtems4.9-gcc-c++
-GCC c++ compiler for m68k-rtems4.9.
-
-
-%package -n rtems-4.9-m68k-rtems4.9-gcc-libstdc++
-Summary: libstdc++ for m68k-rtems4.9
-Group: Development/Tools
-Version: %{gcc_rpmvers}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: GPL
-
-%description -n rtems-4.9-m68k-rtems4.9-gcc-libstdc++
-%{summary}
-
-
-%files -n rtems-4.9-m68k-rtems4.9-gcc-c++
-%defattr(-,root,root)
-%dir %{_prefix}
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m68k-rtems4.9-g++.1*
-
-%dir %{_bindir}
-%{_bindir}/m68k-rtems4.9-c++%{_exeext}
-%{_bindir}/m68k-rtems4.9-g++%{_exeext}
-
-%dir %{_libexecdir}
-%dir %{_libexecdir}/gcc
-%dir %{_libexecdir}/gcc/m68k-rtems4.9
-%dir %{_libexecdir}/gcc/m68k-rtems4.9/%{gcc_version}
-%{_libexecdir}/gcc/m68k-rtems4.9/%{gcc_version}/cc1plus%{_exeext}
-
-
-%files -n rtems-4.9-m68k-rtems4.9-gcc-libstdc++ -f build/files.g++
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_gcclibdir}
-%dir %{_gcclibdir}/gcc
-%dir %{_gcclibdir}/gcc/m68k-rtems4.9
-%dir %{_gcclibdir}/gcc/m68k-rtems4.9/%{gcc_version}
-%dir %{_gcclibdir}/gcc/m68k-rtems4.9/%{gcc_version}/include
-%{_gcclibdir}/gcc/m68k-rtems4.9/%{gcc_version}/include/c++
-
-
-
-# ==============================================================
-# rtems-4.9-m68k-rtems4.9-newlib
-# ==============================================================
-%package -n rtems-4.9-m68k-rtems4.9-newlib
-Summary: C Library (newlib) for m68k-rtems4.9
-Group: Development/Tools
-License: Distributable
-Version: %{newlib_version}
-Release: 25%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-
-Requires: rtems-4.9-newlib-common
-
-%description -n rtems-4.9-m68k-rtems4.9-newlib
-Newlib C Library for m68k-rtems4.9.
-
-%files -n rtems-4.9-m68k-rtems4.9-newlib -f build/files.newlib
-%defattr(-,root,root)
-%dir %{_exec_prefix}
-%dir %{_exec_prefix}/m68k-rtems4.9
-%{_exec_prefix}/m68k-rtems4.9/include
-
-# ==============================================================
-# rtems-4.9-newlib-common
-# ==============================================================
-%package -n rtems-4.9-newlib-common
-Summary: Base package for RTEMS newlib C Library
-Group: Development/Tools
-Version: %{newlib_version}
-Release: 25%{?dist}
-%{?_with_noarch_subpackages:BuildArch: noarch}
-License: Distributable
-
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-%description -n rtems-4.9-newlib-common
-newlib files that are shared by all targets.
-
-%files -n rtems-4.9-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.9-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.9-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.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec
deleted file mode 100644
index eac0343ceb..0000000000
--- a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec
+++ /dev/null
@@ -1,301 +0,0 @@
-#
-# Please send bugfixes or comments to
-# http://www.rtems.org/bugzilla
-#
-
-%define _prefix /opt/rtems-4.9
-%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 6.8
-%define gdb_rpmvers %{expand:%(echo 6.8 | tr - _)}
-
-Name: rtems-4.9-m68k-rtems4.9-gdb
-Summary: Gdb for target m68k-rtems4.9
-Group: Development/Tools
-Version: %{gdb_rpmvers}
-Release: 11%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: %{_host_rpmprefix}gcc
-
-%define build_sim --enable-sim
-%if "%{_build}" != "%{_host}"
-# psim doesn't support Cdn-X
-%if "m68k-rtems4.9" == "powerpc-rtems4.9"
-%define build_sim --disable-sim
-%endif
-%endif
-
-%ifos mingw mingw32
-# Mingw lacks functions required by the simulator
-%if "m68k-rtems4.9" == "sparc-rtems4.9"
-%define build_sim --disable-sim
-%endif
-%if "m68k-rtems4.9" == "h8300-rtems4.9"
-%define build_sim --disable-sim
-%endif
-%if "%{gdb_version}" >= "6.8.50"
-%if "m68k-rtems4.9" == "m32c-rtems4.9"
-%define build_sim --disable-sim
-%endif
-%endif
-%if "m68k-rtems4.9" == "lm32-rtems4.9"
-%define build_sim --disable-sim
-%endif
-%if "m68k-rtems4.9" == "mipstx39-rtems4.9"
-%define build_sim --disable-sim
-%endif
-%endif
-
-%if "%{gdb_version}" >= "6.6"
-# suse
-%if "%{?suse}" >= "10.3"
-BuildRequires: libexpat-devel
-%else
-# Fedora/CentOS/Cygwin/MinGW
-BuildRequires: %{_host_rpmprefix}expat-devel
-%endif
-%endif
-
-%if "%{gdb_version}" < "6.7"
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}termcap-devel
-%endif
-%bcond_with system_readline
-%else
-%bcond_without system_readline
-%endif
-%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
-BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-%if "%{gdb_version}" >= "6.8.50"
-%if "%{_build}" != "%{_host}"
-# Can't build python Cdn-X
-%bcond_with python
-%else
-%bcond_without python
-%endif
-%endif
-%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
-
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-
-
-Requires: rtems-4.9-gdb-common
-
-Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
-%{?_without_sources:NoSource: 0}
-%if "%{gdb_version}" == "6.8"
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20091111.diff
-%endif
-
-%description
-GDB for target m68k-rtems4.9
-%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.9 \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- %{build_sim} \
- %{?with_system_readline:--with-system-readline} \
-%if "%{gdb_version}" >= "6.6"
- --with-expat \
-%endif
-%if "%{gdb_version}" >= "6.8.50"
-%if %{with python}
- --with-python \
-%else
- --without-python \
-%endif
-%endif
- --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.9-sim.a
-
- 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.9-gdb
-# ==============================================================
-# %package -n rtems-4.9-m68k-rtems4.9-gdb
-# Summary: rtems gdb for m68k-rtems4.9
-# Group: Development/Tools
-# %if %build_infos
-# Requires: rtems-4.9-gdb-common
-# %endif
-
-%description -n rtems-4.9-m68k-rtems4.9-gdb
-GNU gdb targetting m68k-rtems4.9.
-
-%files -n rtems-4.9-m68k-rtems4.9-gdb
-%defattr(-,root,root)
-%dir %{_prefix}
-%dir %{_prefix}/share
-
-%dir %{_mandir}
-%dir %{_mandir}/man1
-%{_mandir}/man1/m68k-rtems4.9-*.1*
-
-%dir %{_bindir}
-%{_bindir}/m68k-rtems4.9-*
-
-# ==============================================================
-# rtems-4.9-gdb-common
-# ==============================================================
-%package -n rtems-4.9-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.9-gdb-common
-
-GDB files shared by all targets.
-
-%post -n rtems-4.9-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.9-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.9-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*
-