forked from Imagelibrary/rtems
Regenerate.
This commit is contained in:
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: arm-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-arm-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,7 +94,7 @@ Requires: rtems-4.9-arm-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -150,8 +172,12 @@ cd ..
|
|||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -422,7 +448,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
@@ -477,6 +502,9 @@ Group: Development/Tools
|
|||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
License: GPL
|
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}
|
Provides: rtems-4.9-arm-rtems4.9-c++ = %{gcc_rpmvers}-%{release}
|
||||||
Obsoletes: rtems-4.9-arm-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
Obsoletes: rtems-4.9-arm-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-arm-rtems4.9-gdb
|
|||||||
Summary: Gdb for target arm-rtems4.9
|
Summary: Gdb for target arm-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "arm-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target arm-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: avr-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-avr-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,21 +94,17 @@ Requires: rtems-4.9-avr-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
|
||||||
%endif
|
%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}
|
%{?_without_sources:NoSource: 0}
|
||||||
|
|
||||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -143,8 +161,12 @@ cd ..
|
|||||||
|
|
||||||
languages="c"
|
languages="c"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -415,7 +437,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-avr-rtems4.9-gdb
|
|||||||
Summary: Gdb for target avr-rtems4.9
|
Summary: Gdb for target avr-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "avr-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target avr-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: bfin-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-bfin-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,7 +94,7 @@ Requires: rtems-4.9-bfin-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -139,8 +161,12 @@ cd ..
|
|||||||
|
|
||||||
languages="c"
|
languages="c"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -411,7 +437,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-bfin-rtems4.9-gdb
|
|||||||
Summary: Gdb for target bfin-rtems4.9
|
Summary: Gdb for target bfin-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "bfin-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
Requires: rtems-4.9-gdb-common
|
||||||
@@ -83,10 +80,9 @@ GDB for target bfin-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.2.3
|
||||||
%define gcc_version 4.2.3
|
%define gcc_version 4.2.3
|
||||||
@@ -28,15 +40,21 @@ Summary: h8300-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 10.1%{?dist}
|
Release: 11%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-h8300-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -141,8 +163,12 @@ cd ..
|
|||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -413,7 +439,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
@@ -468,6 +493,9 @@ Group: Development/Tools
|
|||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
License: GPL
|
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}
|
Provides: rtems-4.9-h8300-rtems4.9-c++ = %{gcc_rpmvers}-%{release}
|
||||||
Obsoletes: rtems-4.9-h8300-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
Obsoletes: rtems-4.9-h8300-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-h8300-rtems4.9-gdb
|
|||||||
Summary: Gdb for target h8300-rtems4.9
|
Summary: Gdb for target h8300-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "h8300-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target h8300-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: i386-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-i386-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,7 +94,7 @@ Requires: rtems-4.9-i386-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -150,8 +172,12 @@ cd ..
|
|||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -422,7 +448,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
@@ -477,6 +502,9 @@ Group: Development/Tools
|
|||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
License: GPL
|
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}
|
Provides: rtems-4.9-i386-rtems4.9-c++ = %{gcc_rpmvers}-%{release}
|
||||||
Obsoletes: rtems-4.9-i386-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
Obsoletes: rtems-4.9-i386-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-i386-rtems4.9-gdb
|
|||||||
Summary: Gdb for target i386-rtems4.9
|
Summary: Gdb for target i386-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "i386-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target i386-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: m68k-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-m68k-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,7 +94,7 @@ Requires: rtems-4.9-m68k-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -150,8 +172,12 @@ cd ..
|
|||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -422,7 +448,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
@@ -477,6 +502,9 @@ Group: Development/Tools
|
|||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
License: GPL
|
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}
|
Provides: rtems-4.9-m68k-rtems4.9-c++ = %{gcc_rpmvers}-%{release}
|
||||||
Obsoletes: rtems-4.9-m68k-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
Obsoletes: rtems-4.9-m68k-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-m68k-rtems4.9-gdb
|
|||||||
Summary: Gdb for target m68k-rtems4.9
|
Summary: Gdb for target m68k-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "m68k-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target m68k-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: mips-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-mips-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,7 +94,7 @@ Requires: rtems-4.9-mips-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -150,8 +172,12 @@ cd ..
|
|||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -422,7 +448,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
@@ -477,6 +502,9 @@ Group: Development/Tools
|
|||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
License: GPL
|
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}
|
Provides: rtems-4.9-mips-rtems4.9-c++ = %{gcc_rpmvers}-%{release}
|
||||||
Obsoletes: rtems-4.9-mips-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
Obsoletes: rtems-4.9-mips-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-mips-rtems4.9-gdb
|
|||||||
Summary: Gdb for target mips-rtems4.9
|
Summary: Gdb for target mips-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "mips-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target mips-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-mipstx39-rtems4.9-gdb
|
|||||||
Summary: Gdb for target mipstx39-rtems4.9
|
Summary: Gdb for target mipstx39-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "mipstx39-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target mipstx39-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: powerpc-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-powerpc-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,7 +94,7 @@ Requires: rtems-4.9-powerpc-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -150,8 +172,12 @@ cd ..
|
|||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -422,7 +448,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
@@ -477,6 +502,9 @@ Group: Development/Tools
|
|||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
License: GPL
|
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}
|
Provides: rtems-4.9-powerpc-rtems4.9-c++ = %{gcc_rpmvers}-%{release}
|
||||||
Obsoletes: rtems-4.9-powerpc-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
Obsoletes: rtems-4.9-powerpc-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-powerpc-rtems4.9-gdb
|
|||||||
Summary: Gdb for target powerpc-rtems4.9
|
Summary: Gdb for target powerpc-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "powerpc-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target powerpc-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: sh-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-sh-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,7 +94,7 @@ Requires: rtems-4.9-sh-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -150,8 +172,12 @@ cd ..
|
|||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -422,7 +448,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
@@ -477,6 +502,9 @@ Group: Development/Tools
|
|||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
License: GPL
|
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}
|
Provides: rtems-4.9-sh-rtems4.9-c++ = %{gcc_rpmvers}-%{release}
|
||||||
Obsoletes: rtems-4.9-sh-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
Obsoletes: rtems-4.9-sh-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-sh-rtems4.9-gdb
|
|||||||
Summary: Gdb for target sh-rtems4.9
|
Summary: Gdb for target sh-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "sh-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target sh-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 4.3.0
|
||||||
%define gcc_version 4.3.0
|
%define gcc_version 4.3.0
|
||||||
@@ -28,15 +40,21 @@ Summary: sparc-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-sparc-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%endif
|
||||||
@@ -72,7 +94,7 @@ Requires: rtems-4.9-sparc-rtems4.9-newlib = %{newlib_version}-%{release}
|
|||||||
|
|
||||||
%if "%{gcc_version}" == "4.3.0"
|
%if "%{gcc_version}" == "4.3.0"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
%endif
|
||||||
%if "%{gcc_version}" == "4.2.3"
|
%if "%{gcc_version}" == "4.2.3"
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -150,8 +172,12 @@ cd ..
|
|||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -422,7 +448,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
@@ -477,6 +502,9 @@ Group: Development/Tools
|
|||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
License: GPL
|
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}
|
Provides: rtems-4.9-sparc-rtems4.9-c++ = %{gcc_rpmvers}-%{release}
|
||||||
Obsoletes: rtems-4.9-sparc-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
Obsoletes: rtems-4.9-sparc-rtems4.9-c++ < %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Name: rtems-4.9-sparc-rtems4.9-gdb
|
|||||||
Summary: Gdb for target sparc-rtems4.9
|
Summary: Gdb for target sparc-rtems4.9
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gdb_rpmvers}
|
Version: %{gdb_rpmvers}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/gdb
|
URL: http://sources.redhat.com/gdb
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -53,7 +53,7 @@ BuildRequires: %{_host_rpmprefix}expat-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" < "6.6"
|
%if "%{gdb_version}" < "6.7"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -64,9 +64,6 @@ BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|||||||
# Required for building the infos
|
# Required for building the infos
|
||||||
BuildRequires: /sbin/install-info
|
BuildRequires: /sbin/install-info
|
||||||
BuildRequires: texinfo >= 4.2
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "sparc-rtems4.9" == "sparc-rtems4.9"
|
|
||||||
BuildConflicts: libtermcap-devel termcap-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
Requires: rtems-4.9-gdb-common
|
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
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.8"
|
%if "%{gdb_version}" == "6.8"
|
||||||
Patch0: gdb-6.8-rtems4.9-20080428.diff
|
Patch0: gdb-6.8-rtems4.9-20080429.diff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,10 +82,9 @@ GDB for target sparc-rtems4.9
|
|||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
%setup -q -D -T -n %{name}-%{version} -a0
|
||||||
cd gdb-%{gdb_version}
|
cd gdb-%{gdb_version}
|
||||||
%{?PATCH0:%patch0 -p1}
|
%{?PATCH0:%patch0 -p1}
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.8"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
# Force using a system-provided libreadline
|
# Force using a system-provided libreadline
|
||||||
rm -f gdb-%{gdb_version}/readline/configure
|
rm -f gdb-%{gdb_version}/readline/configure
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -13,6 +13,18 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%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_pkgvers 3.4.6
|
||||||
%define gcc_version 3.4.6
|
%define gcc_version 3.4.6
|
||||||
@@ -28,15 +40,21 @@ Summary: tic4x-rtems4.9 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
|
|
||||||
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
BuildRequires: gmp-devel >= 4.1
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}gmp-devel
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
||||||
|
%endif
|
||||||
%if "%{?fedora}" >= "8"
|
%if "%{?fedora}" >= "8"
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
BuildRequires: mpfr-devel >= 2.3.0
|
||||||
%endif
|
%endif
|
||||||
@@ -49,6 +67,10 @@ BuildRequires: mpfr-devel >= 2.3.0
|
|||||||
%{?suse10_3:%define _build_mpfr 1}
|
%{?suse10_3:%define _build_mpfr 1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: rtems-4.9-tic4x-rtems4.9-gcc
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%endif
|
%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
|
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||||
%if "%{newlib_version}" == "1.16.0"
|
%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
|
%endif
|
||||||
%{?_without_sources:NoSource: 50}
|
%{?_without_sources:NoSource: 50}
|
||||||
|
|
||||||
@@ -139,8 +161,12 @@ cd ..
|
|||||||
|
|
||||||
languages="c"
|
languages="c"
|
||||||
export PATH="%{_bindir}:${PATH}"
|
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}" \
|
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
||||||
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
@@ -411,7 +437,6 @@ Requires(post): /sbin/install-info
|
|||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description -n rtems-4.9-gcc-common
|
%description -n rtems-4.9-gcc-common
|
||||||
|
|
||||||
GCC files that are shared by all targets.
|
GCC files that are shared by all targets.
|
||||||
|
|
||||||
%files -n rtems-4.9-gcc-common
|
%files -n rtems-4.9-gcc-common
|
||||||
|
|||||||
Reference in New Issue
Block a user