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

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

Abandon suse10.2

  • 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%define gccnewlib_version       gcc%{gcc_version}newlib%{newlib_version}
11%endif
12
13%define mpfr_version    2.3.1
14
15Name:           @rpmprefix@@tool_target@-gcc
16Summary:        @tool_target@ gcc
17
18Group:          Development/Tools
19Version:        %{gcc_rpmvers}
20Release:        @GCC_RPMREL@
21License:        GPL
22URL:            http://gcc.gnu.org
23BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
24
25%define _use_internal_dependency_generator 0
26
27BuildRequires:  %{_host_rpmprefix}gcc
28
29%if "%{gcc_version}" >= "4.3.0"
30BuildRequires:  gmp-devel >= 4.1
31%if "%{_build}" != "%{_host}"
32BuildRequires:  %{_host_rpmprefix}gmp-devel
33BuildRequires:  %{_host_rpmprefix}mpfr-devel
34%endif
35%if 0%{?fedora} >= 8
36BuildRequires:  mpfr-devel >= 2.3.0
37%endif
38%if "%{?suse}" > "10.3"
39BuildRequires:  mpfr-devel >= 2.3.0
40%endif
41# These distros ship an insufficient mpfr
42%{?el4:%define  _build_mpfr     1}
43%{?suse10_3:%define     _build_mpfr     1}
44%endif
45
46%if "%{_build}" != "%{_host}"
47BuildRequires:  @rpmprefix@@tool_target@-gcc
48%endif
49
50%if "%{gcc_version}" >= "4.2.0"
51BuildRequires:  flex bison
52%if %build_f95
53BuildRequires:  gmp-devel >= 4.1
54%if 0%{?fedora} >= 8
55BuildRequires:  mpfr-devel >= 2.2.1
56%endif
57%endif
58%endif
59
60%if %build_gcj
61# Building gcj requires bison and zlib
62BuildRequires:  bison
63%endif
64
65BuildRequires:  texinfo >= 4.2
66BuildRequires:  @rpmprefix@@tool_target@-binutils
67BuildRequires:  @rpmprefix@@tool_target@-sys-root
68BuildRequires:  @rpmprefix@@tool_target@-w32api-sys-root
69
70%if %build_infos
71Requires:       @rpmprefix@gcc-common
72%endif
73Requires:       @rpmprefix@@tool_target@-binutils
74Requires:       @rpmprefix@@tool_target@-sys-root
75Requires:       @rpmprefix@@tool_target@-w32api-sys-root
76%if %build_newlib
77Requires:       @rpmprefix@@tool_target@-newlib = %{newlib_version}-%{newlib_release}
78%endif
79
80%if %build_gcj
81BuildRequires:  zlib-devel
82%endif
83%if %build_gnat
84# Building gnat requires gnat
85# This really isn't available until RedHat 8.0.  How to conditionalize this?
86BuildRequires:  gcc-gnat
87BuildRequires:  @rpmprefix@@tool_target@-newlib < %{newlib_version}-%{newlib_release}
88%endif
89%if %build_f95
90BuildRequires: gmp-devel
91%endif
92
93%if "%{gcc_version}" >= "3.4"
94%define gcclib %{_libdir}/gcc
95%define gccexec %{_libexecdir}/gcc
96%else
97%define gcclib %{_libdir}/gcc-lib
98%define gccexec %{_libdir}/gcc-lib
99%endif
100
101@SOURCES@
102
103%if "%{gcc_version}" >= "4.3.0"
104Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
105%endif
106
107%description
108Cross gcc for @tool_target@.
109
Note: See TracBrowser for help on using the repository browser.