source: rtems/contrib/crossrpms/gdb/gdb.add @ 8e5d175

4.104.115
Last change on this file since 8e5d175 was 8e5d175, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/10/09 at 10:55:03

Disable m32c simulator.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1%define gdb_version @GDB_VERS@
2%define gdb_rpmvers %{expand:%(echo @GDB_VERS@ | tr - _)}
3
4Name:           @rpmprefix@@tool_target@-gdb
5Summary:        Gdb for target @tool_target@
6Group:          Development/Tools
7Version:        %{gdb_rpmvers}
8Release:        @GDB_RPMREL@
9License:        GPL/LGPL
10URL:            http://sources.redhat.com/gdb
11BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13BuildRequires:  %{_host_rpmprefix}gcc
14
15%define build_sim --enable-sim
16%if "%{_build}" != "%{_host}"
17# psim doesn't support Cdn-X
18%if "@tool_target@" == "powerpc-rtems@rtems_api@"
19%define build_sim --disable-sim
20%endif
21%endif
22
23%ifos mingw mingw32
24# Mingw lacks functions required by the simulator
25%if "@tool_target@" == "sparc-rtems@rtems_api@"
26%define build_sim --disable-sim
27%endif
28%if "@tool_target@" == "h8300-rtems@rtems_api@"
29%define build_sim --disable-sim
30%endif
31%if "%{gdb_version}" >= "6.8.50"
32%if "@tool_target@" == "m32c-rtems@rtems_api@"
33%define build_sim --disable-sim
34%endif
35%endif
36%if "@tool_target@" == "lm32-rtems@rtems_api@"
37%define build_sim --disable-sim
38%endif
39%if "@tool_target@" == "mipstx39-rtems@rtems_api@"
40%define build_sim --disable-sim
41%endif
42%endif
43
44%if "%{gdb_version}" >= "6.6"
45# suse
46%if "%{?suse}" >= "10.3"
47BuildRequires: libexpat-devel
48%else
49# Fedora/CentOS/Cygwin/MinGW
50BuildRequires: %{_host_rpmprefix}expat-devel
51%endif
52%endif
53
54%if "%{gdb_version}" < "6.7"
55%if "%{_build}" != "%{_host}"
56BuildRequires:  %{_host_rpmprefix}termcap-devel
57%endif
58%endif
59BuildRequires:  %{_host_rpmprefix}readline-devel
60BuildRequires:  %{_host_rpmprefix}ncurses-devel
61
62%if %build_infos
63# Required for building the infos
64BuildRequires:  /sbin/install-info
65BuildRequires:  texinfo >= 4.2
66%endif
67
68%if %build_infos
69
70Requires:       @rpmprefix@gdb-common
71%endif
72
73@SOURCES@
74
75%description
76GDB for target @tool_target@
Note: See TracBrowser for help on using the repository browser.