source: rtems/contrib/crossrpms/gdb/install.add @ 84019c5

4.10
Last change on this file since 84019c5 was 84019c5, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/19/11 at 22:42:33

Sync with CVS-HEAD.

  • Property mode set to 100644
File size: 1.2 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# Bug in gdb-7.0, bogusly installs linux-only files
30  somethinguseful=0
31  for f in ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/syscalls/*.xml; do
32    case $f in
33    *linux.xml) rm -f $f;;
34    *.xml) somethinguseful=1;;
35    esac
36  done
37  if test $somethinguseful -eq 0; then
38    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/syscalls"
39  fi
40
41%if "{gdb_version}" >= "7.3"
42%if ! %{with python}
43# gdb-7.3 doesn't honor --without-python correctly
44  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/python
45%endif
46%endif
47  cd ..
48
Note: See TracBrowser for help on using the repository browser.