source: rtems/contrib/crossrpms/gdb/gdb.add @ d783a1e

4.115
Last change on this file since d783a1e was d783a1e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/01/11 at 03:48:10

Move python into package specific subdir.

  • Property mode set to 100644
File size: 2.2 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%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"
71BuildRequires: libexpat-devel
72%else
73# Fedora/CentOS/Cygwin/MinGW
74BuildRequires: %{_host_rpmprefix}expat-devel
75%endif
76
77%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
78BuildRequires:  %{_host_rpmprefix}ncurses-devel
79
80%if %build_infos
81# Required for building the infos
82BuildRequires:  /sbin/install-info
83BuildRequires:  texinfo >= 4.2
84Requires:       @rpmprefix@gdb-common
85
86%endif
87@SOURCES@
88
89%description
90GDB for target @tool_target@
Note: See TracBrowser for help on using the repository browser.