source: rtems/contrib/crossrpms/gdb/gdb.add @ 05e8b649

4.104.11
Last change on this file since 05e8b649 was 05e8b649, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 5, 2009 at 4:37:55 AM

Add python support.

  • Property mode set to 100644
File size: 2.0 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 "%{gdb_version}" >= "6.8.50"
63%if "%{_build}" != "%{_host}"
64# Can't build python Cdn-X
65%bcond_without python
66%else
67%bcond_with python
68%endif
69%endif
70%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
71
72%if %build_infos
73# Required for building the infos
74BuildRequires:  /sbin/install-info
75BuildRequires:  texinfo >= 4.2
76%endif
77
78%if %build_infos
79
80Requires:       @rpmprefix@gdb-common
81%endif
82
83@SOURCES@
84
85%description
86GDB for target @tool_target@
Note: See TracBrowser for help on using the repository browser.