From cb63bf024cf9bbdd747615575d298143ffaa000a Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 31 Mar 2008 04:42:24 +0000 Subject: [PATCH] BR: %{_host_rpmprefix}readline-devel. BR: %{_host_rpmprefix}ncurses-devel. BR: %{_host_rpmprefix}termcap-devel for gdb < 6.6. --- contrib/crossrpms/gdb/gdb.add | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add index cb773f10c4..22aa0d075b 100644 --- a/contrib/crossrpms/gdb/gdb.add +++ b/contrib/crossrpms/gdb/gdb.add @@ -34,8 +34,14 @@ BuildRequires: texinfo >= 4.2 %if "@tool_target@" == "sparc-rtems4.9" BuildConflicts: libtermcap-devel termcap-devel %endif -BuildRequires: readline-devel -BuildRequires: ncurses-devel +%if "%{gdb_version}" < "6.6" +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}termcap-devel +%endif +%endif +BuildRequires: %{_host_rpmprefix}readline-devel +BuildRequires: %{_host_rpmprefix}ncurses-devel + %if %build_infos Requires: @rpmprefix@gdb-common