4.104.115
Last change
on this file since 2b22160f 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
|
Rev | Line | |
---|
[59c3dfe] | 1 | %install |
---|
[6d71a6f3] | 2 | %if "%{_prefix}" != "/usr" |
---|
| 3 | export PATH="%{_bindir}:${PATH}" |
---|
| 4 | %endif |
---|
[59c3dfe] | 5 | rm -rf $RPM_BUILD_ROOT |
---|
| 6 | |
---|
| 7 | cd build |
---|
[aa005877] | 8 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
[59c3dfe] | 9 | |
---|
[e8a6236] | 10 | %if %build_infos |
---|
[59c3dfe] | 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* |
---|
[13501927] | 18 | %else |
---|
| 19 | # Conflict with a native gdb's infos |
---|
| 20 | rm -rf $RPM_BUILD_ROOT%{_infodir} |
---|
[59c3dfe] | 21 | %endif |
---|
| 22 | |
---|
| 23 | # We don't ship host files |
---|
| 24 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty* |
---|
| 25 | |
---|
[aa005877] | 26 | # host library, installed to a bogus directory |
---|
| 27 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a |
---|
| 28 | |
---|
[2b22160f] | 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 | |
---|
[59c3dfe] | 43 | cd .. |
---|
| 44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.