summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-09-01 03:48:10 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-09-01 03:48:10 +0000
commitd783a1ee75e84d9ebb31cffb0ec387ca374ef335 (patch)
treee6ddc9f8336308997a4494d19295b1dc001f8c37 /contrib
parent2011-08-31 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-d783a1ee75e84d9ebb31cffb0ec387ca374ef335.tar.bz2
Move python into package specific subdir.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/gdb/build.add1
-rw-r--r--contrib/crossrpms/gdb/gdb.add21
-rw-r--r--contrib/crossrpms/gdb/install.add8
-rw-r--r--contrib/crossrpms/gdb/target-gdb.add1
4 files changed, 9 insertions, 22 deletions
diff --git a/contrib/crossrpms/gdb/build.add b/contrib/crossrpms/gdb/build.add
index 7771f7f926..ba4478d74c 100644
--- a/contrib/crossrpms/gdb/build.add
+++ b/contrib/crossrpms/gdb/build.add
@@ -19,6 +19,7 @@
%{?with_system_readline:--with-system-readline} \
--with-expat \
%{?with_python:--with-python}%{!?with_python:--without-python} \
+ --with-gdb-datadir=%{_datadir}/@tool_target@-gdb \
--with-sysroot=%{_prefix}/@tool_target@/sys-root \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add
index bf3d61f73d..4b4bef829d 100644
--- a/contrib/crossrpms/gdb/gdb.add
+++ b/contrib/crossrpms/gdb/gdb.add
@@ -12,7 +12,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
@@ -23,24 +23,16 @@ 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 "@tool_target@" == "powerpc-rtems@rtems_api@"
%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
%endif
%if "@tool_target@" == "sparc-rtems@rtems_api@"
@@ -85,18 +77,13 @@ BuildRequires: %{_host_rpmprefix}expat-devel
%{?with_system_readline: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
+%endif
@SOURCES@
%description
diff --git a/contrib/crossrpms/gdb/install.add b/contrib/crossrpms/gdb/install.add
index f8d0d1a586..182c846f5c 100644
--- a/contrib/crossrpms/gdb/install.add
+++ b/contrib/crossrpms/gdb/install.add
@@ -26,24 +26,22 @@
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-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}/@tool_target@-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}/@tool_target@-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}/@tool_target@-gdb/python
%endif
%endif
cd ..
diff --git a/contrib/crossrpms/gdb/target-gdb.add b/contrib/crossrpms/gdb/target-gdb.add
index 84cb7cf6b6..88789ad854 100644
--- a/contrib/crossrpms/gdb/target-gdb.add
+++ b/contrib/crossrpms/gdb/target-gdb.add
@@ -15,6 +15,7 @@ GNU gdb targetting @tool_target@.
%defattr(-,root,root)
%sysdir %{_prefix}
%sysdir %{_prefix}/share
+%{?with_python:%{_datadir}/@tool_target@-gdb}
%sysdir %{_mandir}
%sysdir %{_mandir}/man1