source: rtems/contrib/crossrpms/gdb/install.add @ d03b469

4.104.115
Last change on this file since d03b469 was 2b22160f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/07/09 at 06:49:32

Hack around gdb >= 7.0 trying to globally install syscall/*linux.xml.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1%install
2%if "%{_prefix}" != "/usr"
3  export PATH="%{_bindir}:${PATH}"
4%endif
5  rm -rf $RPM_BUILD_ROOT
6
7  cd build
8  make DESTDIR=$RPM_BUILD_ROOT install
9
10%if %build_infos
11  rm -f $RPM_BUILD_ROOT%{_infodir}/dir
12  touch $RPM_BUILD_ROOT%{_infodir}/dir
13
14# These come from other packages
15  rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
16  rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
17  rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
18%else
19# Conflict with a native gdb's infos
20  rm -rf $RPM_BUILD_ROOT%{_infodir}
21%endif
22
23# We don't ship host files
24  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
25
26# host library, installed to a bogus directory
27  rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a
28
29%if "%{gdb_version}" >= "7.0"
30# Bug in gdb-7.0, bogusly installs linux-only files
31  somethinguseful=0
32  for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
33    case $f in
34    *linux.xml) rm -f $f;;
35    *.xml) somethinguseful=1;;
36    esac
37  done
38  if test $somethinguseful -eq 0; then
39    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
40  fi
41%endif
42
43  cd ..
44
Note: See TracBrowser for help on using the repository browser.