%install %if "%{_prefix}" != "/usr" export PATH="%{_bindir}:${PATH}" %endif rm -rf $RPM_BUILD_ROOT cd build make DESTDIR=$RPM_BUILD_ROOT install %if %build_infos rm -f $RPM_BUILD_ROOT%{_infodir}/dir touch $RPM_BUILD_ROOT%{_infodir}/dir # These come from other packages rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd* rm -rf $RPM_BUILD_ROOT%{_infodir}/configure* rm -rf $RPM_BUILD_ROOT%{_infodir}/standards* %else # Conflict with a native gdb's infos rm -rf $RPM_BUILD_ROOT%{_infodir} %endif # We don't ship host files rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty* # host library, installed to a bogus directory rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a # Bug in gdb-7.0, bogusly installs linux-only files somethinguseful=0 for f in ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-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}/@tool_target@-gdb/syscalls" fi %if "{gdb_version}" >= "7.3" %if ! %{with python} # gdb-7.3 doesn't honor --without-python correctly rm -rf ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/python %endif %endif cd ..