1 | %define gdb_version @GDB_VERS@ |
---|
2 | %define gdb_rpmvers %{expand:%(echo @GDB_VERS@ | tr - _)} |
---|
3 | |
---|
4 | Name: @rpmprefix@@tool_target@-gdb |
---|
5 | Summary: Gdb for target @tool_target@ |
---|
6 | Group: Development/Tools |
---|
7 | Version: %{gdb_rpmvers} |
---|
8 | Release: @GDB_RPMREL@ |
---|
9 | License: GPL/LGPL |
---|
10 | URL: http://sources.redhat.com/gdb |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
12 | |
---|
13 | BuildRequires: %{_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" |
---|
42 | BuildRequires: libexpat-devel |
---|
43 | %else |
---|
44 | # Fedora/CentOS/Cygwin/MinGW |
---|
45 | BuildRequires: %{_host_rpmprefix}expat-devel |
---|
46 | %endif |
---|
47 | %endif |
---|
48 | |
---|
49 | %if "%{gdb_version}" < "6.7" |
---|
50 | %if "%{_build}" != "%{_host}" |
---|
51 | BuildRequires: %{_host_rpmprefix}termcap-devel |
---|
52 | %endif |
---|
53 | %endif |
---|
54 | BuildRequires: %{_host_rpmprefix}readline-devel |
---|
55 | BuildRequires: %{_host_rpmprefix}ncurses-devel |
---|
56 | |
---|
57 | %if %build_infos |
---|
58 | # Required for building the infos |
---|
59 | BuildRequires: /sbin/install-info |
---|
60 | BuildRequires: texinfo >= 4.2 |
---|
61 | %endif |
---|
62 | |
---|
63 | %if %build_infos |
---|
64 | |
---|
65 | Requires: @rpmprefix@gdb-common |
---|
66 | %endif |
---|
67 | |
---|
68 | @SOURCES@ |
---|
69 | |
---|
70 | %description |
---|
71 | GDB for target @tool_target@ |
---|