source: rtems/contrib/crossrpms/gdb/gdb.add @ 01846b3

4.104.115
Last change on this file since 01846b3 was 01846b3, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/20/10 at 06:56:01

Resort conditionals for better specstrip support.

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