forked from Imagelibrary/rtems
77 lines
1.7 KiB
Plaintext
77 lines
1.7 KiB
Plaintext
%define gdb_version @GDB_VERS@
|
|
%define gdb_rpmvers %{expand:%(echo @GDB_VERS@ | tr - _)}
|
|
|
|
Name: @rpmprefix@@tool_target@-gdb
|
|
Summary: Gdb for target @tool_target@
|
|
Group: Development/Tools
|
|
Version: %{gdb_rpmvers}
|
|
Release: @GDB_RPMREL@
|
|
License: GPL/LGPL
|
|
URL: http://sources.redhat.com/gdb
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: %{_host_rpmprefix}gcc
|
|
|
|
%define build_sim --enable-sim
|
|
%if "%{_build}" != "%{_host}"
|
|
# psim doesn't support Cdn-X
|
|
%if "@tool_target@" == "powerpc-rtems@rtems_api@"
|
|
%define build_sim --disable-sim
|
|
%endif
|
|
%endif
|
|
|
|
%ifos mingw mingw32
|
|
# Mingw lacks functions required by the simulator
|
|
%if "@tool_target@" == "sparc-rtems@rtems_api@"
|
|
%define build_sim --disable-sim
|
|
%endif
|
|
%if "@tool_target@" == "h8300-rtems@rtems_api@"
|
|
%define build_sim --disable-sim
|
|
%endif
|
|
%if "%{gdb_version}" >= "6.8.50"
|
|
%if "@tool_target@" == "m32c-rtems@rtems_api@"
|
|
%define build_sim --disable-sim
|
|
%endif
|
|
%endif
|
|
%if "@tool_target@" == "lm32-rtems@rtems_api@"
|
|
%define build_sim --disable-sim
|
|
%endif
|
|
%if "@tool_target@" == "mipstx39-rtems@rtems_api@"
|
|
%define build_sim --disable-sim
|
|
%endif
|
|
%endif
|
|
|
|
%if "%{gdb_version}" >= "6.6"
|
|
# suse
|
|
%if "%{?suse}" >= "10.3"
|
|
BuildRequires: libexpat-devel
|
|
%else
|
|
# Fedora/CentOS/Cygwin/MinGW
|
|
BuildRequires: %{_host_rpmprefix}expat-devel
|
|
%endif
|
|
%endif
|
|
|
|
%if "%{gdb_version}" < "6.7"
|
|
%if "%{_build}" != "%{_host}"
|
|
BuildRequires: %{_host_rpmprefix}termcap-devel
|
|
%endif
|
|
%endif
|
|
BuildRequires: %{_host_rpmprefix}readline-devel
|
|
BuildRequires: %{_host_rpmprefix}ncurses-devel
|
|
|
|
%if %build_infos
|
|
# Required for building the infos
|
|
BuildRequires: /sbin/install-info
|
|
BuildRequires: texinfo >= 4.2
|
|
%endif
|
|
|
|
%if %build_infos
|
|
|
|
Requires: @rpmprefix@gdb-common
|
|
%endif
|
|
|
|
@SOURCES@
|
|
|
|
%description
|
|
GDB for target @tool_target@
|