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 | %global build_sim --enable-sim |
---|
16 | |
---|
17 | # Whether to build against system readline |
---|
18 | # Default: yes |
---|
19 | %bcond_without system_readline |
---|
20 | |
---|
21 | # Whether to build python support |
---|
22 | %if "%{_build}" != "%{_host}" |
---|
23 | # Can't build python Cdn-X |
---|
24 | %bcond_with python |
---|
25 | %else |
---|
26 | %bcond_without python |
---|
27 | %endif |
---|
28 | %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel} |
---|
29 | |
---|
30 | %if "@tool_target@" == "powerpc-rtems@rtems_api@" |
---|
31 | %if "%{_build}" != "%{_host}" |
---|
32 | # psim doesn't support Cdn-X |
---|
33 | %global build_sim --disable-sim |
---|
34 | %else |
---|
35 | %global build_sim --enable-sim --enable-sim-trace |
---|
36 | %endif |
---|
37 | %endif |
---|
38 | %if "@tool_target@" == "sparc-rtems@rtems_api@" |
---|
39 | %ifos mingw mingw32 |
---|
40 | # Mingw lacks functions required by the sparc simulator |
---|
41 | %define build_sim --disable-sim |
---|
42 | %endif |
---|
43 | %endif |
---|
44 | %if "@tool_target@" == "h8300-rtems@rtems_api@" |
---|
45 | %ifos mingw mingw32 |
---|
46 | # Mingw lacks functions required by the h8300 simulator |
---|
47 | %define build_sim --disable-sim |
---|
48 | %endif |
---|
49 | %endif |
---|
50 | %if "@tool_target@" == "m32c-rtems@rtems_api@" |
---|
51 | %ifos mingw mingw32 |
---|
52 | # Mingw lacks functions required by the m32c simulator |
---|
53 | %define build_sim --disable-sim |
---|
54 | %endif |
---|
55 | %endif |
---|
56 | %if "@tool_target@" == "lm32-rtems@rtems_api@" |
---|
57 | %ifos mingw mingw32 |
---|
58 | # Mingw lacks functions required by the lm32 simulator |
---|
59 | %define build_sim --disable-sim |
---|
60 | %endif |
---|
61 | %endif |
---|
62 | %if "@tool_target@" == "mipstx39-rtems@rtems_api@" |
---|
63 | %ifos mingw mingw32 |
---|
64 | # Mingw lacks functions required by the mipstx39 simulator |
---|
65 | %define build_sim --disable-sim |
---|
66 | %endif |
---|
67 | %endif |
---|
68 | |
---|
69 | # suse |
---|
70 | %if "%{?suse}" >= "10.3" |
---|
71 | BuildRequires: libexpat-devel |
---|
72 | %else |
---|
73 | # Fedora/CentOS/Cygwin/MinGW |
---|
74 | BuildRequires: %{_host_rpmprefix}expat-devel |
---|
75 | %endif |
---|
76 | |
---|
77 | %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} |
---|
78 | BuildRequires: %{_host_rpmprefix}ncurses-devel |
---|
79 | |
---|
80 | %if %build_infos |
---|
81 | # Required for building the infos |
---|
82 | BuildRequires: /sbin/install-info |
---|
83 | BuildRequires: texinfo >= 4.2 |
---|
84 | Requires: @rpmprefix@gdb-common |
---|
85 | |
---|
86 | %endif |
---|
87 | @SOURCES@ |
---|
88 | |
---|
89 | %description |
---|
90 | GDB for target @tool_target@ |
---|