source: rtems/contrib/crossrpms/gcc/base-gcc.add @ 86a30d0

4.104.114.84.95
Last change on this file since 86a30d0 was 86a30d0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 22, 2007 at 7:08:30 AM

Various patches from rtems-4-8-testing branch.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1%if %build_infos
2# ==============================================================
3# @rpmprefix@gcc-common
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
14%description -n @rpmprefix@gcc-common
15
16GCC files that are shared by all targets.
17
18%files -n @rpmprefix@gcc-common
19%defattr(-,root,root)
20%sysdir %{_infodir}
21%ghost %{_infodir}/dir
22%{_infodir}/cpp.info*
23%{_infodir}/cppinternals.info*
24%{_infodir}/gcc.info*
25%{_infodir}/gccint.info*
26%if "%{gcc_version}" >= "3.4"
27%{_infodir}/gccinstall.info*
28%endif
29
30%sysdir %{_mandir}
31%if "%{gcc_version}" < "3.4"
32%sysdir %{_mandir}/man1
33%{_mandir}/man1/cpp.1*
34%{_mandir}/man1/gcov.1*
35%endif
36%sysdir %{_mandir}/man7
37%{_mandir}/man7/fsf-funding.7*
38%{_mandir}/man7/gfdl.7*
39%{_mandir}/man7/gpl.7*
40
41%post -n @rpmprefix@gcc-common
42  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
43  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
44  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
45  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
46%if "%{gcc_version}" >= "3.4"
47  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
48%endif
49
50%preun -n @rpmprefix@gcc-common
51if [ $1 -eq 0 ]; then
52  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
53  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
54  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
55  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
56%if "%{gcc_version}" >= "3.4"
57  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
58%endif
59fi
60
61%endif
Note: See TracBrowser for help on using the repository browser.