summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/crossrpms/gdb')
-rw-r--r--contrib/crossrpms/gdb/base-gdb.add68
-rw-r--r--contrib/crossrpms/gdb/build.add23
-rw-r--r--contrib/crossrpms/gdb/gdb.add33
-rw-r--r--contrib/crossrpms/gdb/install.add49
-rw-r--r--contrib/crossrpms/gdb/prep.add8
-rw-r--r--contrib/crossrpms/gdb/rpm-install.add32
-rw-r--r--contrib/crossrpms/gdb/target-gdb.add23
7 files changed, 0 insertions, 236 deletions
diff --git a/contrib/crossrpms/gdb/base-gdb.add b/contrib/crossrpms/gdb/base-gdb.add
deleted file mode 100644
index b01fa13c0e..0000000000
--- a/contrib/crossrpms/gdb/base-gdb.add
+++ /dev/null
@@ -1,68 +0,0 @@
-%if %build_infos
-# ==============================================================
-# @rpmprefix@gdb-common
-# ==============================================================
-%package -n @rpmprefix@gdb-common
-Summary: Base package for RTEMS gdbs
-Group: Development/Tools
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
-Provides: @rpmprefix@rtems4.7-base-gdb = %{gdb_version}-%{release}
-Obsoletes: @rpmprefix@rtems4.7-base-gdb < %{gdb_version}-%{release}
-Provides: @rpmprefix@rtems-base-gdb = %{gdb_version}-%{release}
-Obsoletes: @rpmprefix@rtems-base-gdb < %{gdb_version}-%{release}
-
-%description -n @rpmprefix@gdb-common
-
-GDB files shared by all targets.
-
-%post -n @rpmprefix@gdb-common
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
-%if "%{gdb_version}" < "6.3"
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || :
-%endif
-%if "%{gdb_version}" >= "5.0"
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
-%endif
-%if "{gdb_version}" >= "6.0"
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-%endif
-
-%preun -n @rpmprefix@gdb-common
-if [ $1 -eq 0 ]; then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
-%if "%{gdb_version}" < "6.3"
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || :
-%endif
-%if "%{gdb_version}" >= "5.0"
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
-%endif
-%if "{gdb_version}" >= "6.0"
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
-%endif
-fi
-
-%files -n @rpmprefix@gdb-common
-%defattr(-,root,root)
-%sysdir %{_infodir}
-%ghost %{_infodir}/dir
-%{_infodir}/gdb.info*
-
-# FIXME: When had mmalloc.info been removed?
-%if "%{gdb_version}" < "6.3"
-%{_infodir}/mmalloc.info*
-%endif
-# FIXME: When had gdbint and stabs been introduced?
-%if "%{gdb_version}" >= "5.0"
-%{_infodir}/gdbint.info*
-%{_infodir}/stabs.info*
-%endif
-
-%if "{gdb_version}" >= "6.0"
-%{_infodir}/annotate.info*
-%endif
-
-%endif
diff --git a/contrib/crossrpms/gdb/build.add b/contrib/crossrpms/gdb/build.add
deleted file mode 100644
index cbc375d15b..0000000000
--- a/contrib/crossrpms/gdb/build.add
+++ /dev/null
@@ -1,23 +0,0 @@
-%build
- mkdir -p build
- cd build
- CFLAGS="$RPM_OPT_FLAGS" \
- ../gdb-%{gdb_version}/configure \
- --build=%_build --host=%_host \
- --target=@tool_target@ \
- --verbose --disable-nls \
- --without-included-gettext \
- --disable-win32-registry \
- --disable-werror \
- --enable-sim \
- --with-sysroot=%{_prefix}/@tool_target@/sys-root \
- --prefix=%{_prefix} --bindir=%{_bindir} \
- --includedir=%{_includedir} --libdir=%{_libdir} \
- --mandir=%{_mandir} --infodir=%{_infodir}
-
- make all
-%if %build_infos
- make info
-%endif
- cd ..
-
diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add
deleted file mode 100644
index 4dfc69f7a5..0000000000
--- a/contrib/crossrpms/gdb/gdb.add
+++ /dev/null
@@ -1,33 +0,0 @@
-%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@%{?dist}
-License: GPL/LGPL
-URL: http://sources.redhat.com/gdb
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-%if "%{gdb_version}" >= "6.6"
-BuildRequires: expat-devel
-%endif
-%if %build_infos
-# Required for building the infos
-BuildRequires: /sbin/install-info
-BuildRequires: texinfo >= 4.2
-%endif
-%if "@tool_target@" == "sparc-rtems4.7"
-BuildRequires: libtermcap-devel
-%endif
-BuildRequires: ncurses-devel
-%if %build_infos
-
-Requires: @rpmprefix@gdb-common
-%endif
-
-@SOURCES@
-
-%description
-GDB for target @tool_target@
diff --git a/contrib/crossrpms/gdb/install.add b/contrib/crossrpms/gdb/install.add
deleted file mode 100644
index 2881252ee2..0000000000
--- a/contrib/crossrpms/gdb/install.add
+++ /dev/null
@@ -1,49 +0,0 @@
-%install
- rm -rf $RPM_BUILD_ROOT
-
- cd build
-%if "%{gdb_version}" >= "6.3"
- make DESTDIR=$RPM_BUILD_ROOT install
-%else
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- install
-
-%if %build_infos
- make prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- infodir=$RPM_BUILD_ROOT%{_infodir} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- install-info
-%endif
-%endif
-
-%if %build_infos
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- touch $RPM_BUILD_ROOT%{_infodir}/dir
-
-# These come from other packages
- rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
- rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
-%else
-# Conflict with a native gdb's infos
- rm -rf $RPM_BUILD_ROOT%{_infodir}
-%endif
-
-# We don't ship host files
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
-
-%if "%{gdb_version}" >= "6.4"
-# host library, installed to a bogus directory
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a
-%endif
-
- cd ..
-
diff --git a/contrib/crossrpms/gdb/prep.add b/contrib/crossrpms/gdb/prep.add
deleted file mode 100644
index 8ceb63ea4a..0000000000
--- a/contrib/crossrpms/gdb/prep.add
+++ /dev/null
@@ -1,8 +0,0 @@
-%prep
-%setup -q -c -T -n %{name}-%{version}
-
-%setup -q -D -T -n %{name}-%{version} -a0
-cd gdb-%{gdb_version}
-%{?PATCH0:%patch0 -p1}
-cd ..
-
diff --git a/contrib/crossrpms/gdb/rpm-install.add b/contrib/crossrpms/gdb/rpm-install.add
deleted file mode 100644
index 07efd8fe29..0000000000
--- a/contrib/crossrpms/gdb/rpm-install.add
+++ /dev/null
@@ -1,32 +0,0 @@
-# Extract %%__os_install_post into os_install_post~
-cat << \EOF > os_install_post~
-%__os_install_post
-EOF
-
-# Generate customized brp-*scripts
-cat os_install_post~ | while read a x y; do
-case $a in
-# Prevent brp-strip* from trying to handle foreign binaries
-*/brp-strip*)
- b=$(basename $a)
- sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
- chmod a+x $b
- ;;
-%if "%{_prefix}" != "/usr"
-# Fix up brp-compress to handle %%_prefix != /usr
-*/brp-compress*)
- b=$(basename $a)
- sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
- chmod a+x $b
- ;;
-%endif
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
-%if "%{_prefix}" != "/usr"
- -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
-%endif
-< os_install_post~ > os_install_post
-%define __os_install_post . ./os_install_post
-
diff --git a/contrib/crossrpms/gdb/target-gdb.add b/contrib/crossrpms/gdb/target-gdb.add
deleted file mode 100644
index 090c1073e8..0000000000
--- a/contrib/crossrpms/gdb/target-gdb.add
+++ /dev/null
@@ -1,23 +0,0 @@
-# ==============================================================
-# @tool_target@-gdb
-# ==============================================================
-# %package -n @rpmprefix@@tool_target@-gdb
-# Summary: rtems gdb for @tool_target@
-# Group: Development/Tools
-# %if %build_infos
-# Requires: @rpmprefix@gdb-common
-# %endif
-
-%description -n @rpmprefix@@tool_target@-gdb
-
-GNU gdb targetting @tool_target@.
-
-%files -n @rpmprefix@@tool_target@-gdb
-%defattr(-,root,root)
-%sysdir %{_mandir}
-%sysdir %{_mandir}/man1
-%{_mandir}/man1/@tool_target@-*.1*
-
-%sysdir %{_bindir}
-%{_bindir}/@tool_target@-*
-