summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-11-01 05:58:05 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-11-01 05:58:05 +0000
commit25eda206eba7b68e1a6c32ebc35ca3e5593283a3 (patch)
treed893abd7ca2373bc123f02b5856e4d7dec68b5e3 /contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec
parentHard-code -lncurses instead of -ltinfo. (diff)
downloadrtems-25eda206eba7b68e1a6c32ebc35ca3e5593283a3.tar.bz2
gdb-6.7.1-4
Diffstat (limited to 'contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec')
-rw-r--r--contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec26
1 files changed, 20 insertions, 6 deletions
diff --git a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec
index e0373378e1..d2c6ca93fc 100644
--- a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec
@@ -13,22 +13,28 @@
%define _exeext %{nil}
%endif
-%define gdb_version 6.7
-%define gdb_rpmvers %{expand:%(echo 6.7 | tr - _)}
+%define gdb_version 6.7.1
+%define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)}
Name: rtems-4.9-sparc-rtems4.9-gdb
Summary: Gdb for target sparc-rtems4.9
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 4%{?dist}
License: GPL/LGPL
URL: http://sources.redhat.com/gdb
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if "%{gdb_version}" >= "6.6"
+# suse
%if "%{?suse}"
-BuildRequires: expat
-%else
+%if "%{?suse}" >= "10.3"
+BuildRequires: libexpat-devel
+%else
+BuildRequires: expat
+%endif
+%else
+# fedora/redhat
BuildRequires: expat-devel
%endif
%endif
@@ -36,8 +42,9 @@ BuildRequires: expat-devel
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
%if "sparc-rtems4.9" == "sparc-rtems4.9"
-BuildRequires: libtermcap-devel
+BuildConflicts: libtermcap-devel termcap-devel
%endif
+BuildRequires: readline-devel
BuildRequires: ncurses-devel
Requires: rtems-4.9-gdb-common
@@ -53,6 +60,9 @@ Patch0: gdb-6.6-rtems4.8-20070306.diff
%if "%{gdb_version}" == "6.7"
Patch0: gdb-6.7-rtems4.9-20071011.diff
%endif
+%if "%{gdb_version}" == "6.7.1"
+Patch0: gdb-6.7.1-rtems4.9-20071031.diff
+%endif
%description
GDB for target sparc-rtems4.9
@@ -76,6 +86,10 @@ cd ..
--disable-win32-registry \
--disable-werror \
--enable-sim \
+%if "%{gdb_version}" >= "6.6"
+ --with-system-readline \
+ --with-expat \
+%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}