source: rtems/contrib/crossrpms/gdb/gdb.add @ d3340106

4.104.115
Last change on this file since d3340106 was d3340106, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/25/09 at 07:41:06

Disable lm32 simulator on mingw32.

  • Property mode set to 100644
File size: 1.6 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 "@tool_target@" == "lm32-rtems@rtems_api@"
32%define build_sim --disable-sim
33%endif
34%if "@tool_target@" == "mipstx39-rtems@rtems_api@"
35%define build_sim --disable-sim
36%endif
37%endif
38
39%if "%{gdb_version}" >= "6.6"
40# suse
41%if "%{?suse}" >= "10.3"
42BuildRequires: libexpat-devel
43%else
44# Fedora/CentOS/Cygwin/MinGW
45BuildRequires: %{_host_rpmprefix}expat-devel
46%endif
47%endif
48
49%if "%{gdb_version}" < "6.7"
50%if "%{_build}" != "%{_host}"
51BuildRequires:  %{_host_rpmprefix}termcap-devel
52%endif
53%endif
54BuildRequires:  %{_host_rpmprefix}readline-devel
55BuildRequires:  %{_host_rpmprefix}ncurses-devel
56
57%if %build_infos
58# Required for building the infos
59BuildRequires:  /sbin/install-info
60BuildRequires:  texinfo >= 4.2
61%endif
62
63%if %build_infos
64
65Requires:       @rpmprefix@gdb-common
66%endif
67
68@SOURCES@
69
70%description
71GDB for target @tool_target@
Note: See TracBrowser for help on using the repository browser.