source: rtems/contrib/crossrpms/gdb/gdb.add @ 9815ac7a

4.104.11
Last change on this file since 9815ac7a was 9815ac7a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 26, 2009 at 7:33:36 AM

Abandon SuSE < 10.3

  • Property mode set to 100644
File size: 1.5 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 "@tool_target@" == "mipstx39-rtems@rtems_api@"
32%define build_sim --disable-sim
33%endif
34%endif
35
36%if "%{gdb_version}" >= "6.6"
37# suse
38%if 0%{?suse}
39BuildRequires: libexpat-devel
40%else
41# Fedora/CentOS/Cygwin/MinGW
42BuildRequires: %{_host_rpmprefix}expat-devel
43%endif
44%endif
45
46%if "%{gdb_version}" < "6.7"
47%if "%{_build}" != "%{_host}"
48BuildRequires:  %{_host_rpmprefix}termcap-devel
49%endif
50%endif
51BuildRequires:  %{_host_rpmprefix}readline-devel
52BuildRequires:  %{_host_rpmprefix}ncurses-devel
53
54%if %build_infos
55# Required for building the infos
56BuildRequires:  /sbin/install-info
57BuildRequires:  texinfo >= 4.2
58%endif
59
60%if %build_infos
61
62Requires:       @rpmprefix@gdb-common
63%endif
64
65@SOURCES@
66
67%description
68GDB for target @tool_target@
Note: See TracBrowser for help on using the repository browser.