summaryrefslogtreecommitdiffstats
path: root/scripts-ada/binutils
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-27 23:48:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-27 23:48:28 +0000
commit7150605481632dc6eed0ed31dd1b8d5a2e556c9b (patch)
treeeda6d03bb5bee4bab6a27bc3997167bea1a383b2 /scripts-ada/binutils
parent1b2b923432292f84073bcfa85997438b8fdcd7e8 (diff)
downloadrtems-7150605481632dc6eed0ed31dd1b8d5a2e556c9b.tar.bz2
GNAT/RTEMS RPMs have built for the binutils/gnat/gcc combination
and appear to be close for gdb.
Diffstat (limited to 'scripts-ada/binutils')
-rw-r--r--scripts-ada/binutils/binutils.spec.in16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts-ada/binutils/binutils.spec.in b/scripts-ada/binutils/binutils.spec.in
index 9fffbd206e..abba6060ce 100644
--- a/scripts-ada/binutils/binutils.spec.in
+++ b/scripts-ada/binutils/binutils.spec.in
@@ -98,12 +98,21 @@ Authors:
if test -f $RPM_BUILD_ROOT/opt/gnatrtems/info/configure.info.gz;
then
-# These are only present in binutils >= 2.9.5
+# These common files are only present in binutils >= 2.9.5
find $RPM_BUILD_ROOT/opt/gnatrtems/info -name 'configure.*' | \
sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
else
touch ../files
fi
+# These target specific files are only present in binutils >= 2.9.5
+ if test -f /opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@;
+ then
+ echo /opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@ > ../files.target
+ else
+ touch ../files.target
+ fi
+
+
%post
if test -d $RPM_INSTALL_PREFIX/rtems/info;
@@ -155,7 +164,7 @@ Authors:
%dir /opt/gnatrtems/share
%dir /opt/gnatrtems/share/locale
-%files -n @target_alias@-gnat-binutils
+%files -n @target_alias@-gnat-binutils -f files.target
%doc /opt/gnatrtems/man/man1/@target_alias@-*.1
%dir /opt/gnatrtems/bin
@@ -169,7 +178,8 @@ Authors:
/opt/gnatrtems/bin/@target_alias@-objcopy@exe_ext@
/opt/gnatrtems/bin/@target_alias@-objdump@exe_ext@
/opt/gnatrtems/bin/@target_alias@-ranlib@exe_ext@
-/opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@
+# readelf is not in older binutils so get it from file list
+# /opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@
/opt/gnatrtems/bin/@target_alias@-size@exe_ext@
/opt/gnatrtems/bin/@target_alias@-strings@exe_ext@
/opt/gnatrtems/bin/@target_alias@-strip@exe_ext@