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

4.104.11
Last change on this file since 3e850ef was 3e850ef, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 26, 2009 at 6:16:46 AM

Abandon gccnewlib_version.

  • Property mode set to 100644
File size: 2.6 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%define newlib_release          @NEWLIB_RPMREL@
10%endif
11
12%define mpfr_version    2.3.1
13
14Name:           @rpmprefix@@tool_target@-gcc
15Summary:        @tool_target@ gcc
16
17Group:          Development/Tools
18Version:        %{gcc_rpmvers}
19Release:        @GCC_RPMREL@
20License:        GPL
21URL:            http://gcc.gnu.org
22BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
23
24%define _use_internal_dependency_generator 0
25
26BuildRequires:  %{_host_rpmprefix}gcc
27
28%if "%{gcc_version}" >= "4.3.0"
29BuildRequires:  gmp-devel >= 4.1
30%if "%{_build}" != "%{_host}"
31BuildRequires:  %{_host_rpmprefix}gmp-devel
32BuildRequires:  %{_host_rpmprefix}mpfr-devel
33%endif
34%if 0%{?fedora} >= 8
35BuildRequires:  mpfr-devel >= 2.3.0
36%endif
37%if "%{?suse}" > "10.3"
38BuildRequires:  mpfr-devel >= 2.3.0
39%endif
40# These distros ship an insufficient mpfr
41%{?el4:%define  _build_mpfr     1}
42%{?suse10_3:%define     _build_mpfr     1}
43%endif
44
45%if "%{_build}" != "%{_host}"
46BuildRequires:  @rpmprefix@@tool_target@-gcc
47%endif
48
49%if "%{gcc_version}" >= "4.2.0"
50BuildRequires:  flex bison
51%if %build_f95
52BuildRequires:  gmp-devel >= 4.1
53%if 0%{?fedora} >= 8
54BuildRequires:  mpfr-devel >= 2.2.1
55%endif
56%endif
57%endif
58
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
67BuildRequires:  @rpmprefix@@tool_target@-w32api-sys-root
68
69%if %build_infos
70Requires:       @rpmprefix@gcc-common
71%endif
72Requires:       @rpmprefix@@tool_target@-binutils
73Requires:       @rpmprefix@@tool_target@-sys-root
74Requires:       @rpmprefix@@tool_target@-w32api-sys-root
75%if %build_newlib
76Requires:       @rpmprefix@@tool_target@-newlib = %{newlib_version}-%{newlib_release}
77%endif
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
86BuildRequires:  @rpmprefix@@tool_target@-newlib < %{newlib_version}-%{newlib_release}
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
102%if "%{gcc_version}" >= "4.3.0"
103Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
104%endif
105
106%description
107Cross gcc for @tool_target@.
108
Note: See TracBrowser for help on using the repository browser.