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

4.104.114.84.9
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
Line 
1%if %build_infos
2# ==============================================================
3# @rpmprefix@rtems4.7-base-gcc
4# ==============================================================
5%package -n @rpmprefix@gcc-common
6Summary:        Base package for rtems gcc and newlib C Library
7Group:          Development/Tools
8Version:        %{gcc_rpmvers}
9License:        GPL
10
11Requires(post):         /sbin/install-info
12Requires(preun):        /sbin/install-info
13
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
20
21GCC files that are shared by all targets.
22
23%files -n @rpmprefix@gcc-common
24%defattr(-,root,root)
25%sysdir %{_infodir}
26%ghost %{_infodir}/dir
27%{_infodir}/cpp.info*
28%{_infodir}/cppinternals.info*
29%{_infodir}/gcc.info*
30%{_infodir}/gccint.info*
31%if "%{gcc_version}" >= "3.4"
32%{_infodir}/gccinstall.info*
33%endif
34
35%sysdir %{_mandir}
36%if "%{gcc_version}" < "3.4"
37%sysdir %{_mandir}/man1
38%{_mandir}/man1/cpp.1*
39%{_mandir}/man1/gcov.1*
40%endif
41%sysdir %{_mandir}/man7
42%{_mandir}/man7/fsf-funding.7*
43%{_mandir}/man7/gfdl.7*
44%{_mandir}/man7/gpl.7*
45
46%post -n @rpmprefix@gcc-common
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 || :
51%if "%{gcc_version}" >= "3.4"
52  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
53%endif
54
55%preun -n @rpmprefix@gcc-common
56if [ $1 -eq 0 ]; then
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 || :
61%if "%{gcc_version}" >= "3.4"
62  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
63%endif
64fi
65
66%endif
Note: See TracBrowser for help on using the repository browser.