2003-01-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* gdb/gdb.add: Remove header, broken cdn-X configuration,
	%clean, Replace @exe_ext@ with %{_exeext}.
	* gdb/mkspec.in: Remove exe_ext.
	* gdb/target-gdb.add: Replace @exe_ext@ with %{_exeext}.
	* gdb/Makefile.am: Use $(top_builddir)/common/common.add,
	$(top_builddir)/common/clean.add, header.add.
	* gcc3newlib/base-gcj.add: Replace @exe_ext@ with %{_exeext}.
	* cpukit/mkspec.in: Remove exe_ext.
	* binutils/Makefile.am: Use $(top_builddir)/common/common.add,
	$(top_builddir)/common/clean.add, header.add.
This commit is contained in:
Ralf Corsepius
2003-01-31 05:32:20 +00:00
parent 491b8b2e7a
commit 9c8ee7b2bd
8 changed files with 30 additions and 32 deletions

View File

@@ -4,7 +4,11 @@
MKSPEC = $(SHELL) ./mkspec
SUBPACKAGES = gdb.add base-gdb.add target-gdb.add
SUBPACKAGES = header.add
SUBPACKAGES += $(top_builddir)/common/common.add
SUBPACKAGES += gdb.add
SUBPACKAGES += $(top_builddir)/common/clean.add
SUBPACKAGES += base-gdb.add target-gdb.add
noinst_DATA = gdb.spec.in

View File

@@ -1,16 +1,3 @@
#
# spec file for package rtems
#
# Copyright (c) 1999 OARCorp, Huntsville, AL
#
# please send bugfixes or comments to joel@OARcorp.com
#
%define _prefix @prefix@
%define _defaultbuildroot %{_tmppath}/%{name}-%{version}
Vendor: OAR Corporation
Distribution: Linux
Name: @target_alias@-gdb-collection
Release: @Release@
License: GPL/LGPL
@@ -62,7 +49,8 @@ cd gdb-@gdb_version@
%build
test -d build || mkdir build
cd build
../gdb-@gdb_version@/configure --target=@target_alias@ \
../gdb-@gdb_version@/configure \
--target=@target_alias@ \
--verbose --prefix=%{_prefix} @extra_configure_arguments@ \
--disable-nls
@@ -87,8 +75,3 @@ test -d build || mkdir build
gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null
gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null
%clean
# let rpm --clean remove BuildRoot iif using the default BuildRoot
test "$RPM_BUILD_ROOT" = "%{_defaultbuildroot}" && \
rm -rf $RPM_BUILD_ROOT

View File

@@ -6,7 +6,6 @@
RTEMS_DIR=`dirname $0`/@top_srcdir@
CFG=../setup.cache
exe_ext=@EXEEXT@
specsrc=${RTEMS_DIR}/gdb/gdb.spec.in
@@ -72,5 +71,4 @@ sed -e "s%@Release\@%${gdb_rpm_release}%g" \
-e "s%@gdb_version\@%${gdb_version}%g" \
-e "s%@gdb_patch_version\@%${gdb_patch_version}%g" \
-e "s%@extra_configure_arguments\@%${extra_configure_arguments}%g" \
-e "s%@exe_ext\@%${exe_ext}%g" \
< ${specsrc}

View File

@@ -20,8 +20,8 @@ This is the GNU gdb for RTEMS targetting @target_alias@.
%doc %{_prefix}/man/man1/@target_alias@-run.1*
%dir %{_prefix}/bin
%{_prefix}/bin/@target_alias@-gdb@exe_ext@
%{_prefix}/bin/@target_alias@-run@exe_ext@
%{_prefix}/bin/@target_alias@-gdb%{_exeext}
%{_prefix}/bin/@target_alias@-run%{_exeext}
%if "@target_alias@" == "sparc-rtems"
%{_prefix}/bin/@target_alias@-sis@exe_ext@
%{_prefix}/bin/@target_alias@-sis%{_exeext}
%endif