source: rtems/contrib/crossrpms/gdb/install.add @ 84f86cb

4.104.114.95
Last change on this file since 84f86cb was e8a6236, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 20, 2006 at 4:40:41 PM

Replace %{build_infos} with %build_infos.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1%install
2  rm -rf $RPM_BUILD_ROOT
3
4  cd build
5%if "%{gdb_version}" >= "6.3"
6  make DESTDIR=$RPM_BUILD_ROOT install
7%else
8  make prefix=$RPM_BUILD_ROOT%{_prefix} \
9    bindir=$RPM_BUILD_ROOT%{_bindir} \
10    includedir=$RPM_BUILD_ROOT%{_includedir} \
11    libdir=$RPM_BUILD_ROOT%{_libdir} \
12    infodir=$RPM_BUILD_ROOT%{_infodir} \
13    mandir=$RPM_BUILD_ROOT%{_mandir} \
14    install
15
16%if %build_infos
17  make prefix=$RPM_BUILD_ROOT%{_prefix} \
18    bindir=$RPM_BUILD_ROOT%{_bindir} \
19    includedir=$RPM_BUILD_ROOT%{_includedir} \
20    libdir=$RPM_BUILD_ROOT%{_libdir} \
21    infodir=$RPM_BUILD_ROOT%{_infodir} \
22    mandir=$RPM_BUILD_ROOT%{_mandir} \
23    install-info
24%endif
25%endif
26
27%if %build_infos
28  rm -f $RPM_BUILD_ROOT%{_infodir}/dir
29  touch $RPM_BUILD_ROOT%{_infodir}/dir
30
31# These come from other packages
32  rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
33  rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
34  rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
35%else
36# Conflict with a native gdb's infos
37  rm -rf $RPM_BUILD_ROOT%{_infodir}
38%endif
39
40# We don't ship host files
41  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
42
43%if "%{gdb_version}" >= "6.4"
44# host library, installed to a bogus directory
45  rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a
46%endif
47
48  cd ..
49
Note: See TracBrowser for help on using the repository browser.