source: rtems/contrib/crossrpms/gcc/base-gcc.add @ 64ccc152

4.104.114.84.95
Last change on this file since 64ccc152 was 64ccc152, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 16, 2007 at 8:31:33 AM

Ignore errors on install-info.

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[e8a6236]1%if %build_infos
[b3a8c23b]2# ==============================================================
[1ac7a00]3# @rpmprefix@rtems4.7-base-gcc
[b3a8c23b]4# ==============================================================
[793bad2]5%package -n @rpmprefix@gcc-common
[b3a8c23b]6Summary:        Base package for rtems gcc and newlib C Library
[4fa25687]7Group:          Development/Tools
[740d8240]8Version:        %{gcc_rpmvers}
[b3a8c23b]9License:        GPL
10
11Requires(post):         /sbin/install-info
12Requires(preun):        /sbin/install-info
13
[793bad2]14Provides:       @rpmprefix@rtems4.7-base-gcc = %{gcc_version}-%{release}
15Obsoletes:      @rpmprefix@rtems4.7-base-gcc < %{gcc_rpmvers}-%{release}
16Provides:       @rpmprefix@rtems-base-gcc = %{gcc_version}-%{release}
17Obsoletes:      @rpmprefix@rtems-base-gcc < %{gcc_rpmvers}-%{release}
18
19%description -n @rpmprefix@gcc-common
[b3a8c23b]20
[e3bd4a3]21GCC files that are shared by all targets.
[b3a8c23b]22
[793bad2]23%files -n @rpmprefix@gcc-common
[b3a8c23b]24%defattr(-,root,root)
[c3af37c]25%sysdir %{_infodir}
[b3a8c23b]26%ghost %{_infodir}/dir
27%{_infodir}/cpp.info*
28%{_infodir}/cppinternals.info*
29%{_infodir}/gcc.info*
[ce1402f]30%{_infodir}/gccint.info*
[b3a8c23b]31%if "%{gcc_version}" >= "3.4"
32%{_infodir}/gccinstall.info*
33%endif
34
[c3af37c]35%sysdir %{_mandir}
[b3a8c23b]36%if "%{gcc_version}" < "3.4"
[c3af37c]37%sysdir %{_mandir}/man1
[b3a8c23b]38%{_mandir}/man1/cpp.1*
39%{_mandir}/man1/gcov.1*
40%endif
[c3af37c]41%sysdir %{_mandir}/man7
[b3a8c23b]42%{_mandir}/man7/fsf-funding.7*
43%{_mandir}/man7/gfdl.7*
44%{_mandir}/man7/gpl.7*
45
[793bad2]46%post -n @rpmprefix@gcc-common
[64ccc152]47  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
48  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz :
49  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
50  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
[b3a8c23b]51%if "%{gcc_version}" >= "3.4"
[64ccc152]52  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
[b3a8c23b]53%endif
54
[793bad2]55%preun -n @rpmprefix@gcc-common
[b3a8c23b]56if [ $1 -eq 0 ]; then
[64ccc152]57  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
58  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
59  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
60  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
[b3a8c23b]61%if "%{gcc_version}" >= "3.4"
[64ccc152]62  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
[b3a8c23b]63%endif
64fi
65
66%endif
Note: See TracBrowser for help on using the repository browser.