source: rtems/contrib/crossrpms/gcc/gccnewlib.add @ 3a3865f2

4.104.115
Last change on this file since 3a3865f2 was 3a3865f2, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/23/10 at 11:01:26

Add rhel6.

  • Property mode set to 100644
File size: 5.7 KB
Line 
1
2%define gcc_pkgvers @GCC_PKGVERS@
3%define gcc_version @GCC_VERS@
4%define gcc_rpmvers %{expand:%(echo "@GCC_VERS@" | tr - _ )}
5
6%if %build_newlib
7%define newlib_pkgvers          @NEWLIB_PKGVERS@
8%define newlib_version          @NEWLIB_VERS@
9%endif
10
11Name:           @rpmprefix@@tool_target@-gcc
12Summary:        @tool_target@ gcc
13
14Group:          Development/Tools
15Version:        %{gcc_rpmvers}
16Release:        @GCC_RPMREL@
17License:        GPL
18URL:            http://gcc.gnu.org
19BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
21%define _use_internal_dependency_generator 0
22
23BuildRequires:  %{_host_rpmprefix}gcc
24
25# FIXME: Disable lto for now, to avoid dependencies on libelf
26%bcond_with lto
27
28# FIXME: Disamble python gdb scripts
29# ATM, no idea how to package them
30%bcond_with pygdb
31
32# FIXME: Disable GCC-plugin
33# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
34%bcond_with plugin
35
36# versions of libraries, we conditionally bundle if necessary
37%global mpc_version     0.8.1
38%global mpfr_version    2.4.1
39%global gmp_version     4.3.2
40%global libelf_version  0.8.13
41
42# versions of libraries these distros are known to ship
43%if 0%{?fc13}
44%global mpc_provided 0.8.1
45%global mpfr_provided 2.4.1
46%global gmp_provided 4.3.1
47%endif
48
49%if 0%{?fc12}
50%global mpc_provided 0.8
51%global mpfr_provided 2.4.1
52%global gmp_provided 4.3.1
53%endif
54
55%if 0%{?fc11}
56%global mpc_provided %{nil}
57%global mpfr_provided 2.4.1
58%global gmp_provided 4.2.4
59%endif
60
61%if 0%{?rhel6}
62%global mpc_provided %{nil}
63%global mpfr_provided 2.4.1
64%global gmp_provided 4.3.1
65%endif
66
67%if 0%{?rhel5}
68%global mpc_provided %{nil}
69%global mpfr_provided %{nil}
70%global gmp_provided 4.1.4
71%endif
72
73%if 0%{?suse11_0}
74%global mpc_provided %{nil}
75%global mpfr_provided 2.3.1
76%global gmp_provided 4.2.2
77%endif
78
79%if 0%{?suse11_1}
80%global mpc_provided %{nil}
81%global mpfr_provided 2.3.2
82%global gmp_provided 4.2.3
83%endif
84
85%if 0%{?suse11_2}
86%global mpc_provided 0.7
87%global mpfr_provided 2.4.1
88%global gmp_provided 4.3.1
89%endif
90
91%if 0%{?cygwin}
92%global mpc_provided 0.8
93%global mpfr_provided 2.4.1
94%global gmp_provided 4.3.1
95%endif
96
97%if 0%{?mingw32}
98%global mpc_provided 0.8.1
99%global mpfr_provided 2.4.1
100%global gmp_provided 4.3.2
101%endif
102
103%if "%{gcc_version}" >= "4.2.0"
104%if %build_fortran
105%define gmp_required            4.1
106%define mpfr_required           2.2.1
107%endif
108%endif
109
110%if "%{gcc_version}" >= "4.3.0"
111%define gmp_required            4.1
112%define mpfr_required           2.3.1
113%endif
114
115%if "%{gcc_version}" >= "4.3.3"
116%define cloog_required          0.15
117%endif
118
119%if "%{gcc_version}" >= "4.4.0"
120%define mpfr_required           2.3.2
121%endif
122
123%if "%{gcc_version}" >= "4.5.0"
124%define mpc_required            0.8
125%if %{with lto}
126%define libelf_required         0.8.12
127%endif
128%endif
129
130%if %{defined mpc_required}
131%if "%{mpc_provided}" >= "%{mpc_required}"
132%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
133%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
134%if "%{_build}" != "%{_host}"
135BuildRequires:  %{_host_rpmprefix}mpc-devel >= %{mpc_required}
136%endif
137%else
138%define _build_mpc 1
139%endif
140%endif
141
142%if %{defined gmp_required}
143%if "%{gmp_provided}" >= "%{gmp_required}"
144BuildRequires: gmp-devel >= %{gmp_required}
145%if "%{_build}" != "%{_host}"
146BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{gmp_required}
147%endif
148%else
149%define _build_gmp 1
150%endif
151%endif
152
153%if %{defined libelf_required}
154%if "%{libelf_provided}" >= "%{libelf_required}"
155BuildRequires: libelf-devel >= %{libelf_required}
156%if "%{_build}" != "%{_host}"
157BuildRequires:  %{_host_rpmprefix}libelf-devel >= %{libelf_required}
158%endif
159%else
160%define _build_libelf 1
161%endif
162%endif
163
164
165%if %{defined cloog_required}
166%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
167%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
168%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
169%{?rhel6:BuildRequires: cloog-ppl-devel >= %cloog_required}
170%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
171%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
172%endif
173
174
175%if %{defined mpfr_required}
176%if "%{mpfr_provided}" >= "%{mpfr_required}"
177BuildRequires: mpfr-devel >= %{mpfr_required}
178%if "%{_build}" != "%{_host}"
179BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
180%endif
181%else
182%define _build_mpfr 1
183%endif
184%endif
185
186%if "%{_build}" != "%{_host}"
187BuildRequires:  @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}
188%endif
189
190%if "%{gcc_version}" >= "4.2.0"
191BuildRequires:  flex bison
192%endif
193
194%if %build_gcj
195# Building gcj requires bison and zlib
196BuildRequires:  bison
197%endif
198
199BuildRequires:  texinfo >= 4.2
200BuildRequires:  @rpmprefix@@tool_target@-binutils
201BuildRequires:  @rpmprefix@@tool_target@-sys-root
202BuildRequires:  @rpmprefix@@tool_target@-w32api-sys-root
203
204%if %build_infos
205Requires:       @rpmprefix@gcc-common
206%endif
207Requires:       @rpmprefix@@tool_target@-binutils
208Requires:       @rpmprefix@@tool_target@-sys-root
209Requires:       @rpmprefix@@tool_target@-w32api-sys-root
210Requires:       @rpmprefix@@tool_target@-gcc-libgcc = %{gcc_rpmvers}-%{release}
211%if %build_newlib
212Requires:       @rpmprefix@@tool_target@-newlib = %{newlib_version}-@NEWLIB_RPMREL@
213%endif
214
215%if "%{gcc_version}" >= "4.5.0"
216BuildRequires:  zlib-devel
217%if "%{_build}" != "%{_host}"
218BuildRequires:  %{_host_rpmprefix}zlib-devel
219%endif
220%else
221%if %build_gcj
222BuildRequires:  zlib-devel
223%endif
224%endif
225%if %build_gnat
226# Building gnat requires gnat
227BuildRequires:  gcc-gnat
228BuildRequires:  @rpmprefix@@tool_target@-newlib < %{newlib_version}-@NEWLIB_RPMREL@
229%endif
230
231%global _gcclibdir %{_prefix}/lib
232
233@SOURCES@
234
235%if 0%{?_build_mpfr}
236Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
237%endif
238
239%if 0%{?_build_mpc}
240Source61:    http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
241%endif
242
243%if 0%{?_build_gmp}
244Source62:    ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
245%endif
246
247%if 0%{?_build_libelf}
248Source63:    http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
249%endif
250
251%description
252Cross gcc for @tool_target@.
253
Note: See TracBrowser for help on using the repository browser.