summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-09-01 03:55:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-09-01 03:55:47 +0000
commitac620ef8558d47da49b03fbba28ff76fd7bcd0cb (patch)
treef1756cdbbcd673b37a8d60a70c6c6fa6c011361f /contrib
parentgdb-7.3 (diff)
downloadrtems-ac620ef8558d47da49b03fbba28ff76fd7bcd0cb.tar.bz2
Regenerate.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/rtems4.11/arm-eabi/rtems-4.11-arm-rtemseabi4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec23
-rw-r--r--contrib/crossrpms/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec41
-rw-r--r--contrib/crossrpms/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec37
-rw-r--r--contrib/crossrpms/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec37
16 files changed, 278 insertions, 304 deletions
diff --git a/contrib/crossrpms/rtems4.11/arm-eabi/rtems-4.11-arm-rtemseabi4.11-gdb.spec b/contrib/crossrpms/rtems4.11/arm-eabi/rtems-4.11-arm-rtemseabi4.11-gdb.spec
index ab08e564ef..7fa190de21 100644
--- a/contrib/crossrpms/rtems4.11/arm-eabi/rtems-4.11-arm-rtemseabi4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/arm-eabi/rtems-4.11-arm-rtemseabi4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-arm-rtemseabi4.11-gdb
Summary: Gdb for target arm-rtemseabi4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/arm-rtemseabi4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libarm-rtemseabi4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/arm-rtemseabi4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/arm-rtemseabi4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/arm-rtemseabi4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting arm-rtemseabi4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/arm-rtemseabi4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
index 953158b45c..2f491c528b 100644
--- a/contrib/crossrpms/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-arm-rtems4.11-gdb
Summary: Gdb for target arm-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/arm-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libarm-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting arm-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/arm-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
index 4619d076a5..cd87d5db93 100644
--- a/contrib/crossrpms/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-avr-rtems4.11-gdb
Summary: Gdb for target avr-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/avr-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libavr-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting avr-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/avr-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
index 6726c36f38..8e24c10cc3 100644
--- a/contrib/crossrpms/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
@@ -59,7 +59,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{_host_rpmprefix}gcc
-%define build_sim --enable-sim
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,9 +86,6 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
-
-
BuildRequires: rtems-4.11-bfin-rtems4.11-binutils
BuildRequires: texinfo
@@ -140,6 +129,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/bfin-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -163,24 +153,22 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libbfin-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.11-gdb/syscalls"
fi
-%endif
%if "{gdb_version}" >= "7.3"
%if ! %{with python}
# gdb-7.3 doesn't honor --without-python correctly
- rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gdb/python
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.11-gdb/python
%endif
%endif
cd ..
@@ -233,6 +221,7 @@ GNU gdb targetting bfin-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/bfin-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
index d344f98c4a..334be0f7ab 100644
--- a/contrib/crossrpms/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-h8300-rtems4.11-gdb
Summary: Gdb for target h8300-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -98,14 +90,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -146,6 +139,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/h8300-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -175,20 +169,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libh8300-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -239,6 +237,7 @@ GNU gdb targetting h8300-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/h8300-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
index 4423c9d73e..9546727661 100644
--- a/contrib/crossrpms/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-i386-rtems4.11-gdb
Summary: Gdb for target i386-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/i386-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libi386-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting i386-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/i386-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
index 097ddb3cf8..5171a079ec 100644
--- a/contrib/crossrpms/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-lm32-rtems4.11-gdb
Summary: Gdb for target lm32-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -98,14 +90,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -146,6 +139,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/lm32-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -175,20 +169,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/liblm32-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -239,6 +237,7 @@ GNU gdb targetting lm32-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/lm32-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
index 089dc61bb6..61ac9c2734 100644
--- a/contrib/crossrpms/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-m32c-rtems4.11-gdb
Summary: Gdb for target m32c-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -98,14 +90,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -146,6 +139,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/m32c-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -175,20 +169,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32c-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -239,6 +237,7 @@ GNU gdb targetting m32c-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/m32c-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
index 86910263ab..0749212087 100644
--- a/contrib/crossrpms/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-m32r-rtems4.11-gdb
Summary: Gdb for target m32r-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/m32r-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32r-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting m32r-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/m32r-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
index 15d0dbed25..f72c0df748 100644
--- a/contrib/crossrpms/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-m68k-rtems4.11-gdb
Summary: Gdb for target m68k-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/m68k-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm68k-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting m68k-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/m68k-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
index 0dac85e3c3..d73b82c7f6 100644
--- a/contrib/crossrpms/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-mips-rtems4.11-gdb
Summary: Gdb for target mips-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/mips-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmips-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting mips-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/mips-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
index 70cc3976db..0b7e9de7f4 100644
--- a/contrib/crossrpms/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-mipstx39-rtems4.11-gdb
Summary: Gdb for target mipstx39-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -98,14 +90,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -146,6 +139,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/mipstx39-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -175,20 +169,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmipstx39-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -239,6 +237,7 @@ GNU gdb targetting mipstx39-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/mipstx39-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
index fd6d25c661..b9801b0e92 100644
--- a/contrib/crossrpms/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-powerpc-rtems4.11-gdb
Summary: Gdb for target powerpc-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,23 +70,15 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
%if "%{_build}" != "%{_host}"
# psim doesn't support Cdn-X
-%define build_sim --disable-sim
+%global build_sim --disable-sim
%else
-%define build_sim --enable-sim --enable-sim-trace
+%global build_sim --enable-sim --enable-sim-trace
%endif
# suse
@@ -100,14 +92,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -148,6 +141,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/powerpc-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -177,20 +171,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpowerpc-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -241,6 +239,7 @@ GNU gdb targetting powerpc-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/powerpc-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
index 05b17ea1ca..5f07294bde 100644
--- a/contrib/crossrpms/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-sh-rtems4.11-gdb
Summary: Gdb for target sh-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/sh-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsh-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting sh-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/sh-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
index f722b2d402..a62e0acf08 100644
--- a/contrib/crossrpms/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-sparc-rtems4.11-gdb
Summary: Gdb for target sparc-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -98,14 +90,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -146,6 +139,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/sparc-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -175,20 +169,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsparc-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -239,6 +237,7 @@ GNU gdb targetting sparc-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/sparc-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1
diff --git a/contrib/crossrpms/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec b/contrib/crossrpms/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
index 701f5a437e..642811f191 100644
--- a/contrib/crossrpms/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
+++ b/contrib/crossrpms/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
@@ -45,21 +45,21 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 7.2
-%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
+%define gdb_version 7.3
+%define gdb_rpmvers %{expand:%(echo 7.3 | tr - _)}
Name: rtems-4.11-sparc64-rtems4.11-gdb
Summary: Gdb for target sparc64-rtems4.11
Group: Development/Tools
Version: %{gdb_rpmvers}
-Release: 2%{?dist}
+Release: 1%{?dist}
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
+%global build_sim --enable-sim
# Whether to build against system readline
# Default: yes
@@ -70,15 +70,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Can't build python Cdn-X
%bcond_with python
%else
-%if "%{gdb_version}" >= "7.3"
-# Python support is broken
-%bcond_with python
-%elseif "%{gdb_version}" >= "6.8.50"
%bcond_without python
-%else
-# python is unsupported
-%bcond_with python
-%endif
%endif
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
@@ -94,14 +86,15 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
BuildRequires: %{_host_rpmprefix}ncurses-devel
-
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
-
-
Requires: rtems-4.11-gdb-common
+%if "%{gdb_version}" == "7.3"
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3a.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.3-rtems4.11-20110831.diff
+%endif
%if "%{gdb_version}" == "7.2"
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100907.diff
@@ -142,6 +135,7 @@ cd ..
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/sparc64-rtems4.11-gdb \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
--mandir=%{_mandir} --infodir=%{_infodir}
@@ -171,20 +165,24 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsparc64-rtems4.11-sim.a
-%if "%{gdb_version}" >= "7.0"
# Bug in gdb-7.0, bogusly installs linux-only files
somethinguseful=0
- for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/sparc64-rtems4.11-gdb/syscalls/*.xml; do
case $f in
*linux.xml) rm -f $f;;
*.xml) somethinguseful=1;;
esac
done
if test $somethinguseful -eq 0; then
- rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sparc64-rtems4.11-gdb/syscalls"
fi
-%endif
+%if "{gdb_version}" >= "7.3"
+%if ! %{with python}
+# gdb-7.3 doesn't honor --without-python correctly
+ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sparc64-rtems4.11-gdb/python
+%endif
+%endif
cd ..
# Extract %%__os_install_post into os_install_post~
@@ -235,6 +233,7 @@ GNU gdb targetting sparc64-rtems4.11.
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/share
+%{?with_python:%{_datadir}/sparc64-rtems4.11-gdb}
%dir %{_mandir}
%dir %{_mandir}/man1