source: rtems/contrib/crossrpms/gcc/gccnewlib.add @ ff1a93b

4.104.114.9
Last change on this file since ff1a93b was ff1a93b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 9, 2008 at 7:33:25 AM

Do not use string comparisions.

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[b3a8c23b]1
[615b6c9]2%define gcc_pkgvers @GCC_PKGVERS@
3%define gcc_version @GCC_VERS@
[027c603]4%define gcc_rpmvers %{expand:%(echo "@GCC_VERS@" | tr - _ )}
[b3a8c23b]5
6%if %build_newlib
[403d2176]7%define newlib_version          @NEWLIB_VERS@
[b3a8c23b]8%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
9%endif
10
[f1b2da23]11%define mpfr_version    2.3.1
12
[b3a8c23b]13Name:           @rpmprefix@@tool_target@-gcc
14Summary:        @tool_target@ gcc
15
[4fa25687]16Group:          Development/Tools
[e94d6430]17Version:        %{gcc_rpmvers}
[b8a8bfb0]18Release:        @GCC_RPMREL@
[b3a8c23b]19License:        GPL
20URL:            http://gcc.gnu.org
21BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22
23%define _use_internal_dependency_generator 0
24
[ad476d6e]25BuildRequires:  %{_host_rpmprefix}gcc
26
[f1b2da23]27%if "%{gcc_version}" >= "4.3.0"
28BuildRequires:  gmp-devel >= 4.1
[ad476d6e]29%if "%{_build}" != "%{_host}"
30BuildRequires:  %{_host_rpmprefix}gmp-devel
31BuildRequires:  %{_host_rpmprefix}mpfr-devel
32%endif
[ff1a93b]33%if 0%{?fedora} >= 8
[f1b2da23]34BuildRequires:  mpfr-devel >= 2.3.0
35%endif
[26c2bea]36%if "%{?suse}" > "10.3"
[f1b2da23]37BuildRequires:  mpfr-devel >= 2.3.0
38%endif
39# These distros ship an insufficient mpfr
40%{?el4:%define  _build_mpfr     1}
[26c2bea]41%{?suse10_2:%define     _build_mpfr     1}
42%{?suse10_3:%define     _build_mpfr     1}
[f1b2da23]43%endif
44
[368708b]45%if "%{_build}" != "%{_host}"
46BuildRequires:  @rpmprefix@@tool_target@-gcc
47%endif
48
[9b039313]49%if "%{gcc_version}" >= "4.2.0"
50BuildRequires:  flex bison
[f8ee67eb]51%if %build_f95
52BuildRequires:  gmp-devel >= 4.1
[ff1a93b]53%if 0%{?fedora} >= 8
[f8ee67eb]54BuildRequires:  mpfr-devel >= 2.2.1
55%endif
[9b039313]56%endif
[f8ee67eb]57%endif
58
[b3a8c23b]59%if %build_gcj
60# Building gcj requires bison and zlib
61BuildRequires:  bison
62%endif
63
64BuildRequires:  texinfo >= 4.2
65BuildRequires:  @rpmprefix@@tool_target@-binutils
66BuildRequires:  @rpmprefix@@tool_target@-sys-root
[3596fee]67BuildRequires:  @rpmprefix@@tool_target@-w32api-sys-root
[b3a8c23b]68
[4edae5cf]69%if %build_infos
[6255333]70Requires:       @rpmprefix@gcc-common
[4edae5cf]71%endif
[b3a8c23b]72Requires:       @rpmprefix@@tool_target@-binutils
[3596fee]73Requires:       @rpmprefix@@tool_target@-sys-root
74Requires:       @rpmprefix@@tool_target@-w32api-sys-root
[e8b0467]75%if %build_newlib
[c665ca3]76Requires:       @rpmprefix@@tool_target@-newlib = %{newlib_version}-%{release}
[e8b0467]77%endif
[b3a8c23b]78
79%if %build_gcj
80BuildRequires:  zlib-devel
81%endif
82%if %build_gnat
83# Building gnat requires gnat
84# This really isn't available until RedHat 8.0.  How to conditionalize this?
85BuildRequires:  gcc-gnat
[c665ca3]86BuildRequires:  @rpmprefix@@tool_target@-newlib < %{newlib_version}-%{release}
[b3a8c23b]87%endif
88%if %build_f95
89BuildRequires: gmp-devel
90%endif
91
92%if "%{gcc_version}" >= "3.4"
93%define gcclib %{_libdir}/gcc
94%define gccexec %{_libexecdir}/gcc
95%else
96%define gcclib %{_libdir}/gcc-lib
97%define gccexec %{_libdir}/gcc-lib
98%endif
99
100@SOURCES@
101
[f1b2da23]102%if "%{gcc_version}" >= "4.3.0"
103Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
104%endif
105
[b3a8c23b]106%description
107Cross gcc for @tool_target@.
108
Note: See TracBrowser for help on using the repository browser.