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

4.104.114.95
Last change on this file since 17002619 was 17002619, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/26/08 at 05:36:01

Use rtems_api.

  • Property mode set to 100644
File size: 1.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%if "%{gdb_version}" >= "6.6"
16# suse
17%if "%{?suse}"
18%if "%{?suse}" >= "10.3"
19BuildRequires: libexpat-devel
20%else
21BuildRequires: expat
22%endif
23%else
24# fedora/redhat/cygwin
25BuildRequires: %{_host_rpmprefix}expat-devel
26%endif
27%endif
28
29%if %build_infos
30# Required for building the infos
31BuildRequires:  /sbin/install-info
32BuildRequires:  texinfo >= 4.2
33%endif
34%if "@tool_target@" == "sparc-rtems@rtems_api@"
35BuildConflicts: libtermcap-devel termcap-devel
36%endif
37%if "%{gdb_version}" < "6.6"
38%if "%{_build}" != "%{_host}"
39BuildRequires:  %{_host_rpmprefix}termcap-devel
40%endif
41%endif
42BuildRequires:  %{_host_rpmprefix}readline-devel
43BuildRequires:  %{_host_rpmprefix}ncurses-devel
44
45%if %build_infos
46
47Requires:       @rpmprefix@gdb-common
48%endif
49
50@SOURCES@
51
52%description
53GDB for target @tool_target@
Note: See TracBrowser for help on using the repository browser.