source: rtems/contrib/crossrpms/gcc/gccnewlib.add @ 9f92b78

4.115
Last change on this file since 9f92b78 was 9f92b78, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/10/10 at 05:41:54

Add suse-11.3.

  • Property mode set to 100644
File size: 5.9 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: Disable 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.2
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.2
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%{?el6}
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%{?el5}
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%{?suse11_3}
92%global mpc_provided 0.7
93%global mpfr_provided 2.4.2
94%global gmp_provided 4.3.2
95%endif
96
97%if 0%{?cygwin}
98%global mpc_provided 0.8
99%global mpfr_provided 2.4.1
100%global gmp_provided 4.3.1
101%endif
102
103%if 0%{?mingw32}
104%global mpc_provided 0.8.1
105%global mpfr_provided 2.4.1
106%global gmp_provided 4.3.2
107%endif
108
109%if "%{gcc_version}" >= "4.2.0"
110%if %build_fortran
111%define gmp_required            4.1
112%define mpfr_required           2.2.1
113%endif
114%endif
115
116%if "%{gcc_version}" >= "4.3.0"
117%define gmp_required            4.1
118%define mpfr_required           2.3.1
119%endif
120
121%if "%{gcc_version}" >= "4.3.3"
122%define cloog_required          0.15
123%endif
124
125%if "%{gcc_version}" >= "4.4.0"
126%define mpfr_required           2.3.2
127%endif
128
129%if "%{gcc_version}" >= "4.5.0"
130%define mpc_required            0.8
131%if %{with lto}
132%define libelf_required         0.8.12
133%endif
134%endif
135
136%if %{defined mpc_required}
137%if "%{mpc_provided}" >= "%{mpc_required}"
138%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
139%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
140%if "%{_build}" != "%{_host}"
141BuildRequires:  %{_host_rpmprefix}mpc-devel >= %{mpc_required}
142%endif
143%else
144%define _build_mpc 1
145%define gmp_required            4.2
146%endif
147%endif
148
149%if %{defined gmp_required}
150%if "%{gmp_provided}" >= "%{gmp_required}"
151BuildRequires: gmp-devel >= %{gmp_required}
152%if "%{_build}" != "%{_host}"
153BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{gmp_required}
154%endif
155%else
156%define _build_gmp 1
157%endif
158%endif
159
160%if %{defined libelf_required}
161%if "%{libelf_provided}" >= "%{libelf_required}"
162BuildRequires: libelf-devel >= %{libelf_required}
163%if "%{_build}" != "%{_host}"
164BuildRequires:  %{_host_rpmprefix}libelf-devel >= %{libelf_required}
165%endif
166%else
167%define _build_libelf 1
168%endif
169%endif
170
171
172%if %{defined cloog_required}
173%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
174%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
175%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
176%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
177%{?suse11_3:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
178%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
179%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
180%endif
181
182
183%if %{defined mpfr_required}
184%if "%{mpfr_provided}" >= "%{mpfr_required}"
185BuildRequires: mpfr-devel >= %{mpfr_required}
186%if "%{_build}" != "%{_host}"
187BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
188%endif
189%else
190%define _build_mpfr 1
191%endif
192%endif
193
194%if "%{_build}" != "%{_host}"
195BuildRequires:  @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}
196%endif
197
198%if "%{gcc_version}" >= "4.2.0"
199BuildRequires:  flex bison
200%endif
201
202%if %build_gcj
203# Building gcj requires bison and zlib
204BuildRequires:  bison
205%endif
206
207BuildRequires:  texinfo >= 4.2
208BuildRequires:  @rpmprefix@@tool_target@-binutils
209BuildRequires:  @rpmprefix@@tool_target@-sys-root
210BuildRequires:  @rpmprefix@@tool_target@-w32api-sys-root
211
212%if %build_infos
213Requires:       @rpmprefix@gcc-common
214%endif
215Requires:       @rpmprefix@@tool_target@-binutils
216Requires:       @rpmprefix@@tool_target@-sys-root
217Requires:       @rpmprefix@@tool_target@-w32api-sys-root
218Requires:       @rpmprefix@@tool_target@-gcc-libgcc = %{gcc_rpmvers}-%{release}
219%if %build_newlib
220Requires:       @rpmprefix@@tool_target@-newlib = %{newlib_version}-@NEWLIB_RPMREL@
221%endif
222
223%if "%{gcc_version}" >= "4.5.0"
224BuildRequires:  zlib-devel
225%if "%{_build}" != "%{_host}"
226BuildRequires:  %{_host_rpmprefix}zlib-devel
227%endif
228%else
229%if %build_gcj
230BuildRequires:  zlib-devel
231%endif
232%endif
233%if %build_gnat
234# Building gnat requires gnat
235BuildRequires:  gcc-gnat
236BuildRequires:  @rpmprefix@@tool_target@-newlib < %{newlib_version}-@NEWLIB_RPMREL@
237%endif
238
239%global _gcclibdir %{_prefix}/lib
240
241@SOURCES@
242
243%if 0%{?_build_mpfr}
244Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
245%endif
246
247%if 0%{?_build_mpc}
248Source61:    http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
249%endif
250
251%if 0%{?_build_gmp}
252Source62:    ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
253%endif
254
255%if 0%{?_build_libelf}
256Source63:    http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
257%endif
258
259%description
260Cross gcc for @tool_target@.
261
Note: See TracBrowser for help on using the repository browser.