1 | |
---|
2 | %define gcc_pkgvers @GCC_VERS@ |
---|
3 | %define gcc_version %{expand:%(echo "@GCC_VERS@" | sed -e 's,-.*,,')} |
---|
4 | %define gcc_rpmvers %{expand:%(echo "@GCC_VERS@" | tr - _ )} |
---|
5 | |
---|
6 | %if %build_newlib |
---|
7 | %define newlib_version @NEWLIB_VERS@ |
---|
8 | %define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version} |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: @rpmprefix@@tool_target@-gcc |
---|
12 | Summary: @tool_target@ gcc |
---|
13 | |
---|
14 | Group: Development/Tools |
---|
15 | Version: %{gcc_rpmvers} |
---|
16 | Release: @GCC_RPMREL@%{?dist} |
---|
17 | License: GPL |
---|
18 | URL: http://gcc.gnu.org |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
20 | |
---|
21 | %define _use_internal_dependency_generator 0 |
---|
22 | |
---|
23 | %if %build_gcj |
---|
24 | # Building gcj requires bison and zlib |
---|
25 | BuildRequires: bison |
---|
26 | %endif |
---|
27 | |
---|
28 | BuildRequires: texinfo >= 4.2 |
---|
29 | BuildRequires: @rpmprefix@@tool_target@-binutils |
---|
30 | BuildRequires: @rpmprefix@@tool_target@-sys-root |
---|
31 | BuildRequires: @rpmprefix@@tool_target@-w32api-sys-root |
---|
32 | |
---|
33 | %if %build_infos |
---|
34 | Requires: @rpmprefix@gcc-common |
---|
35 | %endif |
---|
36 | Requires: @rpmprefix@@tool_target@-binutils |
---|
37 | Requires: @rpmprefix@@tool_target@-sys-root |
---|
38 | Requires: @rpmprefix@@tool_target@-w32api-sys-root |
---|
39 | Requires: @rpmprefix@@tool_target@-newlib = %{newlib_version}-%{release} |
---|
40 | |
---|
41 | %if %build_gcj |
---|
42 | BuildRequires: zlib-devel |
---|
43 | %endif |
---|
44 | %if %build_gnat |
---|
45 | # Building gnat requires gnat |
---|
46 | # This really isn't available until RedHat 8.0. How to conditionalize this? |
---|
47 | BuildRequires: gcc-gnat |
---|
48 | BuildRequires: @rpmprefix@@tool_target@-newlib < %{newlib_version}-%{release} |
---|
49 | %endif |
---|
50 | %if %build_f95 |
---|
51 | BuildRequires: gmp-devel |
---|
52 | %endif |
---|
53 | |
---|
54 | %if "%{gcc_version}" >= "3.4" |
---|
55 | %define gcclib %{_libdir}/gcc |
---|
56 | %define gccexec %{_libexecdir}/gcc |
---|
57 | %else |
---|
58 | %define gcclib %{_libdir}/gcc-lib |
---|
59 | %define gccexec %{_libdir}/gcc-lib |
---|
60 | %endif |
---|
61 | |
---|
62 | @SOURCES@ |
---|
63 | |
---|
64 | %description |
---|
65 | Cross gcc for @tool_target@. |
---|
66 | |
---|