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

4.8
Last change on this file since c8ecbf9 was c8ecbf9, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 18, 2008 at 5:37:48 AM

BR: @rpmprefix@@tool_target@-gcc and @rpmprefix@%{_host}-gcc for CdnX-builds.

  • Property mode set to 100644
File size: 1.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_version          @NEWLIB_VERS@
8%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
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
23%if "%{_build}" != "%{_host}"
24BuildRequires:  @rpmprefix@%{_host}-gcc
25BuildRequires:  @rpmprefix@@tool_target@-gcc
26%endif
27
28%if "%{gcc_version}" >= "4.2.0"
29BuildRequires:  flex bison
30%endif
31%if %build_gcj
32# Building gcj requires bison and zlib
33BuildRequires:  bison
34%endif
35
36BuildRequires:  texinfo >= 4.2
37BuildRequires:  @rpmprefix@@tool_target@-binutils
38BuildRequires:  @rpmprefix@@tool_target@-sys-root
39BuildRequires:  @rpmprefix@@tool_target@-w32api-sys-root
40
41%if %build_infos
42Requires:       @rpmprefix@gcc-common
43%endif
44Requires:       @rpmprefix@@tool_target@-binutils
45Requires:       @rpmprefix@@tool_target@-sys-root
46Requires:       @rpmprefix@@tool_target@-w32api-sys-root
47%if %build_newlib
48Requires:       @rpmprefix@@tool_target@-newlib = %{newlib_version}-%{release}
49%endif
50
51%if %build_gcj
52BuildRequires:  zlib-devel
53%endif
54%if %build_gnat
55# Building gnat requires gnat
56# This really isn't available until RedHat 8.0.  How to conditionalize this?
57BuildRequires:  gcc-gnat
58BuildRequires:  @rpmprefix@@tool_target@-newlib < %{newlib_version}-%{release}
59%endif
60%if %build_f95
61BuildRequires: gmp-devel
62%endif
63
64%if "%{gcc_version}" >= "3.4"
65%define gcclib %{_libdir}/gcc
66%define gccexec %{_libexecdir}/gcc
67%else
68%define gcclib %{_libdir}/gcc-lib
69%define gccexec %{_libdir}/gcc-lib
70%endif
71
72@SOURCES@
73
74%description
75Cross gcc for @tool_target@.
76
Note: See TracBrowser for help on using the repository browser.