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

4.104.114.95
Last change on this file since d9393d5 was d9393d5, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/28/08 at 13:38:47

Minor restructurization.

  • 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 "%{gdb_version}" < "6.6"
30%if "%{_build}" != "%{_host}"
31BuildRequires:  %{_host_rpmprefix}termcap-devel
32%endif
33%endif
34BuildRequires:  %{_host_rpmprefix}readline-devel
35BuildRequires:  %{_host_rpmprefix}ncurses-devel
36
37%if %build_infos
38# Required for building the infos
39BuildRequires:  /sbin/install-info
40BuildRequires:  texinfo >= 4.2
41%endif
42%if "@tool_target@" == "sparc-rtems@rtems_api@"
43BuildConflicts: libtermcap-devel termcap-devel
44%endif
45
46%if %build_infos
47
48Requires:       @rpmprefix@gdb-common
49%endif
50
51@SOURCES@
52
53%description
54GDB for target @tool_target@
Note: See TracBrowser for help on using the repository browser.