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

4.104.114.9
Last change on this file since ff1a93b was ff1a93b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 9, 2008 at 7:33:25 AM

Do not use string comparisions.

  • 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_version          @NEWLIB_VERS@
8%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
9%endif
10
11%define mpfr_version    2.3.1
12
13Name:           @rpmprefix@@tool_target@-gcc
14Summary:        @tool_target@ gcc
15
16Group:          Development/Tools
17Version:        %{gcc_rpmvers}
18Release:        @GCC_RPMREL@
19License:        GPL
20URL:            http://gcc.gnu.org
21BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22
23%define _use_internal_dependency_generator 0
24
25BuildRequires:  %{_host_rpmprefix}gcc
26
27%if "%{gcc_version}" >= "4.3.0"
28BuildRequires:  gmp-devel >= 4.1
29%if "%{_build}" != "%{_host}"
30BuildRequires:  %{_host_rpmprefix}gmp-devel
31BuildRequires:  %{_host_rpmprefix}mpfr-devel
32%endif
33%if 0%{?fedora} >= 8
34BuildRequires:  mpfr-devel >= 2.3.0
35%endif
36%if "%{?suse}" > "10.3"
37BuildRequires:  mpfr-devel >= 2.3.0
38%endif
39# These distros ship an insufficient mpfr
40%{?el4:%define  _build_mpfr     1}
41%{?suse10_2:%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}-%{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}-%{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.