diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-09 04:13:49 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-09 04:13:49 +0000 |
commit | 365dd6265f4e96150628ec9925da1166c14b3f2f (patch) | |
tree | 65bb6f725d20b4e32364b2f77ca39616cc08a8c2 /contrib | |
parent | Bump GDB_RPMREL. (diff) | |
download | rtems-365dd6265f4e96150628ec9925da1166c14b3f2f.tar.bz2 |
Regenerate.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec index 7e69652025..63351204df 100644 --- a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec +++ b/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec @@ -52,7 +52,7 @@ Name: rtems-4.10-bfin-rtems4.10-gdb Summary: Gdb for target bfin-rtems4.10 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 10%{?dist} +Release: 11%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -187,6 +187,20 @@ cd .. # host library, installed to a bogus directory rm -f ${RPM_BUILD_ROOT}%{_libdir}/libbfin-rtems4.10-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 + 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" + fi +%endif + cd .. # Extract %%__os_install_post into os_install_post~ |