source: rtems/contrib/crossrpms/gcc/gccnewlib.add @ 4edae5cf

4.104.114.84.95
Last change on this file since 4edae5cf was 4edae5cf, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/16/06 at 06:05:02

Let *-gcc subpackage require base-package.

  • Property mode set to 100644
File size: 1.7 KB
Line 
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
11Name:           @rpmprefix@@tool_target@-gcc
12Summary:        @tool_target@ gcc
13
14Group:          Development/Tools
15Version:        %{gcc_rpmvers}
16Release:        @GCC_RPMREL@%{?dist}
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_gcj
24# Building gcj requires bison and zlib
25BuildRequires:  bison
26%endif
27
28BuildRequires:  texinfo >= 4.2
29BuildRequires:  @rpmprefix@@tool_target@-binutils
30BuildRequires:  @rpmprefix@@tool_target@-sys-root
31BuildRequires:  @rpmprefix@@tool_target@-w32api-sys-root
32
33%if %build_infos
34Requires:       @rpmprefix@rtems4.7-base-gcc
35%endif
36Requires:       @rpmprefix@@tool_target@-binutils
37Requires:       @rpmprefix@@tool_target@-sys-root
38Requires:       @rpmprefix@@tool_target@-w32api-sys-root
39Requires:       @rpmprefix@@tool_target@-newlib = %{newlib_version}-%{release}
40
41%if "%{_vendor}" == "redhat"
42%if %build_gcj
43BuildRequires:  zlib-devel
44%endif
45%if %build_gnat
46# Building gnat requires gnat
47# This really isn't available until RedHat 8.0.  How to conditionalize this?
48BuildRequires:  gcc-gnat
49BuildRequires:  @rpmprefix@@tool_target@-newlib < %{newlib_version}-%{release}
50%endif
51%if %build_f95
52BuildRequires: gmp-devel
53%endif
54%endif
55
56%if "%{gcc_version}" >= "3.4"
57%define gcclib %{_libdir}/gcc
58%define gccexec %{_libexecdir}/gcc
59%else
60%define gcclib %{_libdir}/gcc-lib
61%define gccexec %{_libdir}/gcc-lib
62%endif
63
64@SOURCES@
65
66%description
67Cross gcc for @tool_target@.
68
Note: See TracBrowser for help on using the repository browser.