From 5633d25fa698b844a7bab3fb89b9298843092c61 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 1 May 2008 08:13:14 +0000 Subject: Regenerate. --- .../rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec | 38 ++++++++++++++++++--- .../rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec | 12 +++---- .../rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec | 39 +++++++++++++++++----- .../rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec | 12 +++---- .../rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec | 35 ++++++++++++++++--- .../rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec | 10 ++---- .../h8300/rtems-4.9-h8300-rtems4.9-gcc.spec | 36 +++++++++++++++++--- .../h8300/rtems-4.9-h8300-rtems4.9-gdb.spec | 12 +++---- .../rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec | 38 ++++++++++++++++++--- .../rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec | 12 +++---- .../rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec | 38 ++++++++++++++++++--- .../rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec | 12 +++---- .../rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec | 38 ++++++++++++++++++--- .../rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec | 12 +++---- .../mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec | 12 +++---- .../powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec | 38 ++++++++++++++++++--- .../powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec | 12 +++---- .../rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec | 38 ++++++++++++++++++--- .../rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec | 12 +++---- .../sparc/rtems-4.9-sparc-rtems4.9-gcc.spec | 38 ++++++++++++++++++--- .../sparc/rtems-4.9-sparc-rtems4.9-gdb.spec | 12 +++---- .../tic4x/rtems-4.9-tic4x-rtems4.9-gcc.spec | 33 +++++++++++++++--- 22 files changed, 395 insertions(+), 144 deletions(-) (limited to 'contrib') diff --git a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec index 415477610e..c19b8fb003 100644 --- a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: arm-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-arm-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,7 +94,7 @@ Requires: rtems-4.9-arm-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 @@ -90,7 +112,7 @@ Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.ta Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -150,8 +172,12 @@ cd .. 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 CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -422,7 +448,6 @@ 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 @@ -477,6 +502,9 @@ Group: Development/Tools Version: %{gcc_rpmvers} License: GPL +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-arm-rtems4.9-gcc-c++ +%endif Provides: rtems-4.9-arm-rtems4.9-c++ = %{gcc_rpmvers}-%{release} Obsoletes: rtems-4.9-arm-rtems4.9-c++ < %{gcc_rpmvers}-%{release} diff --git a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec index 342ab8742d..30eeaea5ef 100644 --- a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-arm-rtems4.9-gdb Summary: Gdb for target arm-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "arm-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target arm-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec index 8ebbbe5d20..f6507aa183 100644 --- a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: avr-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-avr-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,21 +94,17 @@ Requires: rtems-4.9-avr-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff %endif -%if "%{gcc_version}" == "4.0.4" -Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-4.0.4-rtems4.9-20071111.diff -%endif %{?_without_sources:NoSource: 0} Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -143,8 +161,12 @@ cd .. languages="c" export PATH="%{_bindir}:${PATH}" - +%if "%{_build}" != "%{_host}" + CFLAGS_FOR_BUILD="-g -O2 -Wall" \ + CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \ +%else CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -415,7 +437,6 @@ 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 diff --git a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec index 6972732c18..4f7a2693c3 100644 --- a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-avr-rtems4.9-gdb Summary: Gdb for target avr-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "avr-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target avr-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec index 47a26937fb..cabe863fb4 100644 --- a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: bfin-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-bfin-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,7 +94,7 @@ Requires: rtems-4.9-bfin-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 @@ -82,7 +104,7 @@ Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -139,8 +161,12 @@ cd .. languages="c" export PATH="%{_bindir}:${PATH}" - +%if "%{_build}" != "%{_host}" + CFLAGS_FOR_BUILD="-g -O2 -Wall" \ + CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \ +%else CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -411,7 +437,6 @@ 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 diff --git a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec index 35e422d52b..53d4564f4b 100644 --- a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-bfin-rtems4.9-gdb Summary: Gdb for target bfin-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 3%{?dist} +Release: 4%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "bfin-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -83,10 +80,9 @@ GDB for target bfin-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec index 7b5ded92e3..af3ef3784d 100644 --- a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.2.3 %define gcc_version 4.2.3 @@ -28,15 +40,21 @@ Summary: h8300-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 10.1%{?dist} +Release: 11%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-h8300-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -81,7 +103,7 @@ Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.ta Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -141,8 +163,12 @@ cd .. 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 CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -413,7 +439,6 @@ 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 @@ -468,6 +493,9 @@ Group: Development/Tools Version: %{gcc_rpmvers} License: GPL +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-h8300-rtems4.9-gcc-c++ +%endif Provides: rtems-4.9-h8300-rtems4.9-c++ = %{gcc_rpmvers}-%{release} Obsoletes: rtems-4.9-h8300-rtems4.9-c++ < %{gcc_rpmvers}-%{release} diff --git a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec index 41a6bc9bd6..632f9b32c3 100644 --- a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-h8300-rtems4.9-gdb Summary: Gdb for target h8300-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "h8300-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target h8300-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec index d4d1c54136..dc51c3dc34 100644 --- a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: i386-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-i386-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,7 +94,7 @@ Requires: rtems-4.9-i386-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 @@ -90,7 +112,7 @@ Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.ta Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -150,8 +172,12 @@ cd .. 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 CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -422,7 +448,6 @@ 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 @@ -477,6 +502,9 @@ Group: Development/Tools Version: %{gcc_rpmvers} License: GPL +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-i386-rtems4.9-gcc-c++ +%endif Provides: rtems-4.9-i386-rtems4.9-c++ = %{gcc_rpmvers}-%{release} Obsoletes: rtems-4.9-i386-rtems4.9-c++ < %{gcc_rpmvers}-%{release} diff --git a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec index 257fc1e120..7d60669556 100644 --- a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-i386-rtems4.9-gdb Summary: Gdb for target i386-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "i386-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target i386-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif 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 index 9d26fcf7d8..cf09b93420 100644 --- 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 @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: m68k-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-m68k-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,7 +94,7 @@ Requires: rtems-4.9-m68k-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 @@ -90,7 +112,7 @@ Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.ta Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -150,8 +172,12 @@ cd .. 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 CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -422,7 +448,6 @@ 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 @@ -477,6 +502,9 @@ Group: Development/Tools Version: %{gcc_rpmvers} License: GPL +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-m68k-rtems4.9-gcc-c++ +%endif Provides: rtems-4.9-m68k-rtems4.9-c++ = %{gcc_rpmvers}-%{release} Obsoletes: rtems-4.9-m68k-rtems4.9-c++ < %{gcc_rpmvers}-%{release} 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 index 9dbf76030a..8d03ee74a9 100644 --- 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 @@ -32,7 +32,7 @@ Name: rtems-4.9-m68k-rtems4.9-gdb Summary: Gdb for target m68k-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "m68k-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target m68k-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec index 076a6db58b..c18cb04699 100644 --- a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: mips-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-mips-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,7 +94,7 @@ Requires: rtems-4.9-mips-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 @@ -90,7 +112,7 @@ Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.ta Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -150,8 +172,12 @@ cd .. 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 CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -422,7 +448,6 @@ 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 @@ -477,6 +502,9 @@ Group: Development/Tools Version: %{gcc_rpmvers} License: GPL +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-mips-rtems4.9-gcc-c++ +%endif Provides: rtems-4.9-mips-rtems4.9-c++ = %{gcc_rpmvers}-%{release} Obsoletes: rtems-4.9-mips-rtems4.9-c++ < %{gcc_rpmvers}-%{release} diff --git a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec index 9d4cd6849a..77169af688 100644 --- a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-mips-rtems4.9-gdb Summary: Gdb for target mips-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "mips-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target mips-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec index d6fb56dd31..8872d5be9e 100644 --- a/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-mipstx39-rtems4.9-gdb Summary: Gdb for target mipstx39-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "mipstx39-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target mipstx39-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec index 3ca122b199..1bacd99d48 100644 --- a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: powerpc-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-powerpc-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,7 +94,7 @@ Requires: rtems-4.9-powerpc-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 @@ -90,7 +112,7 @@ Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.ta Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -150,8 +172,12 @@ cd .. 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 CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -422,7 +448,6 @@ 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 @@ -477,6 +502,9 @@ Group: Development/Tools Version: %{gcc_rpmvers} License: GPL +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-powerpc-rtems4.9-gcc-c++ +%endif Provides: rtems-4.9-powerpc-rtems4.9-c++ = %{gcc_rpmvers}-%{release} Obsoletes: rtems-4.9-powerpc-rtems4.9-c++ < %{gcc_rpmvers}-%{release} diff --git a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec index da22162bf5..aaa990052b 100644 --- a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-powerpc-rtems4.9-gdb Summary: Gdb for target powerpc-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "powerpc-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target powerpc-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec index fe5cf58fac..b18771299d 100644 --- a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: sh-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-sh-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,7 +94,7 @@ Requires: rtems-4.9-sh-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 @@ -90,7 +112,7 @@ Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.ta Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -150,8 +172,12 @@ cd .. 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 CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -422,7 +448,6 @@ 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 @@ -477,6 +502,9 @@ Group: Development/Tools Version: %{gcc_rpmvers} License: GPL +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-sh-rtems4.9-gcc-c++ +%endif Provides: rtems-4.9-sh-rtems4.9-c++ = %{gcc_rpmvers}-%{release} Obsoletes: rtems-4.9-sh-rtems4.9-c++ < %{gcc_rpmvers}-%{release} diff --git a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec index 2bd426ac9e..97fd19fcbc 100644 --- a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-sh-rtems4.9-gdb Summary: Gdb for target sh-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "sh-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target sh-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec index 2a8874eb78..6b8e5cbc31 100644 --- a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 4.3.0 %define gcc_version 4.3.0 @@ -28,15 +40,21 @@ Summary: sparc-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 11%{?dist} +Release: 12%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-sparc-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -72,7 +94,7 @@ Requires: rtems-4.9-sparc-rtems4.9-newlib = %{newlib_version}-%{release} %if "%{gcc_version}" == "4.3.0" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 -Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080306.diff +Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff %endif %if "%{gcc_version}" == "4.2.3" Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2 @@ -90,7 +112,7 @@ Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.ta Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -150,8 +172,12 @@ cd .. 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 CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -422,7 +448,6 @@ 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 @@ -477,6 +502,9 @@ Group: Development/Tools Version: %{gcc_rpmvers} License: GPL +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-sparc-rtems4.9-gcc-c++ +%endif Provides: rtems-4.9-sparc-rtems4.9-c++ = %{gcc_rpmvers}-%{release} Obsoletes: rtems-4.9-sparc-rtems4.9-c++ < %{gcc_rpmvers}-%{release} diff --git a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec index 3ff5bdcc2a..bb15358527 100644 --- a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec @@ -32,7 +32,7 @@ Name: rtems-4.9-sparc-rtems4.9-gdb Summary: Gdb for target sparc-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif -%if "%{gdb_version}" < "6.6" +%if "%{gdb_version}" < "6.7" %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif @@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel # Required for building the infos BuildRequires: /sbin/install-info BuildRequires: texinfo >= 4.2 -%if "sparc-rtems4.9" == "sparc-rtems4.9" -BuildConflicts: libtermcap-devel termcap-devel -%endif Requires: rtems-4.9-gdb-common @@ -74,7 +71,7 @@ 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: gdb-6.8-rtems4.9-20080428.diff +Patch0: gdb-6.8-rtems4.9-20080429.diff %endif %description @@ -85,10 +82,9 @@ GDB for target sparc-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} -%{?PATCH1:%patch1 -p1} cd .. -%if "%{gdb_version}" >= "6.8" +%if "%{gdb_version}" >= "6.7" # Force using a system-provided libreadline rm -f gdb-%{gdb_version}/readline/configure %endif diff --git a/contrib/crossrpms/rtems4.9/tic4x/rtems-4.9-tic4x-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/tic4x/rtems-4.9-tic4x-rtems4.9-gcc.spec index 2a9d2ba980..3922c5c7b7 100644 --- a/contrib/crossrpms/rtems4.9/tic4x/rtems-4.9-tic4x-rtems4.9-gcc.spec +++ b/contrib/crossrpms/rtems4.9/tic4x/rtems-4.9-tic4x-rtems4.9-gcc.spec @@ -13,6 +13,18 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + +%if "%{_build}" != "%{_host}" +%define _host_rpmprefix rtems-4.9-%{_host}- +%else +%define _host_rpmprefix %{nil} +%endif + %define gcc_pkgvers 3.4.6 %define gcc_version 3.4.6 @@ -28,15 +40,21 @@ Summary: tic4x-rtems4.9 gcc Group: Development/Tools Version: %{gcc_rpmvers} -Release: 7%{?dist} +Release: 8%{?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 + %if "%{gcc_version}" >= "4.3.0" BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif %if "%{?fedora}" >= "8" BuildRequires: mpfr-devel >= 2.3.0 %endif @@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0 %{?suse10_3:%define _build_mpfr 1} %endif +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-tic4x-rtems4.9-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -82,7 +104,7 @@ Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz %if "%{newlib_version}" == "1.16.0" -Patch50: newlib-1.16.0-rtems4.9-20080302.diff +Patch50: newlib-1.16.0-rtems4.9-20080430.diff %endif %{?_without_sources:NoSource: 50} @@ -139,8 +161,12 @@ cd .. languages="c" export PATH="%{_bindir}:${PATH}" - +%if "%{_build}" != "%{_host}" + CFLAGS_FOR_BUILD="-g -O2 -Wall" \ + CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \ +%else CC="%{__cc} ${RPM_OPT_FLAGS}" \ +%endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -411,7 +437,6 @@ 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 -- cgit v1.2.3