source: rtems/contrib/crossrpms/gdb/gdb.add @ 905b569b

4.104.11
Last change on this file since 905b569b was 905b569b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 5, 2009 at 4:58:19 AM

Fix %bcond_without/with python conditional.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[59c3dfe]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}
[ee19567c]8Release:        @GDB_RPMREL@
[59c3dfe]9License:        GPL/LGPL
10URL:            http://sources.redhat.com/gdb
11BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
[ad476d6e]13BuildRequires:  %{_host_rpmprefix}gcc
[c0141a36]14
[b2c4395d]15%define build_sim --enable-sim
[ddb4aaf]16%if "%{_build}" != "%{_host}"
[b2c4395d]17# psim doesn't support Cdn-X
[ddb4aaf]18%if "@tool_target@" == "powerpc-rtems@rtems_api@"
[b2c4395d]19%define build_sim --disable-sim
20%endif
[ddb4aaf]21%endif
22
[b2c4395d]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
[8e5d175]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
[d3340106]36%if "@tool_target@" == "lm32-rtems@rtems_api@"
37%define build_sim --disable-sim
38%endif
[ddb4aaf]39%if "@tool_target@" == "mipstx39-rtems@rtems_api@"
40%define build_sim --disable-sim
41%endif
[b2c4395d]42%endif
43
[1ee16e8]44%if "%{gdb_version}" >= "6.6"
[84f86cb]45# suse
[a0785556]46%if "%{?suse}" >= "10.3"
[84f86cb]47BuildRequires: libexpat-devel
48%else
[9815ac7a]49# Fedora/CentOS/Cygwin/MinGW
[f86abfa]50BuildRequires: %{_host_rpmprefix}expat-devel
[1ee16e8]51%endif
[ed332c8]52%endif
[f86abfa]53
[9bb08af]54%if "%{gdb_version}" < "6.7"
[d9393d5]55%if "%{_build}" != "%{_host}"
56BuildRequires:  %{_host_rpmprefix}termcap-devel
57%endif
58%endif
59BuildRequires:  %{_host_rpmprefix}readline-devel
60BuildRequires:  %{_host_rpmprefix}ncurses-devel
61
[05e8b649]62%if "%{gdb_version}" >= "6.8.50"
63%if "%{_build}" != "%{_host}"
64# Can't build python Cdn-X
65%bcond_with python
[905b569b]66%else
67%bcond_without python
[05e8b649]68%endif
69%endif
70%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
71
[e8a6236]72%if %build_infos
[59c3dfe]73# Required for building the infos
74BuildRequires:  /sbin/install-info
75BuildRequires:  texinfo >= 4.2
76%endif
[cb63bf0]77
[c20efa7]78%if %build_infos
79
[385f81c]80Requires:       @rpmprefix@gdb-common
[c20efa7]81%endif
[59c3dfe]82
83@SOURCES@
84
85%description
[385f81c]86GDB for target @tool_target@
Note: See TracBrowser for help on using the repository browser.