source: rtems/scripts/gccnewlib/base-gnat.add @ f078d21

4.104.114.84.95
Last change on this file since f078d21 was f078d21, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 27, 2005 at 11:28:34 AM

2005-04-27 Ralf Corsepius <ralf.corsepius@…>

  • gccnewlib/base-gfortran.add: Fix broken install-info.
  • gccnewlib/base-gnat.add, gccnewlib/target-gnat.add: Adaptations to gcc-4.0.0. Install infos using FC conventions.
  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[664d8b71]1%if %build_gnat
2# ==============================================================
3# rtems-base-gnat
4# ==============================================================
5%package -n %{rpmprefix}rtems@osversion@-base-gnat
6Summary:        gcc/gnat tools
7Group: %{rpmgroup}
8
[f078d21]9Requires(post):         /sbin/install-info
10Requires(postun):       /sbin/install-info
11
[664d8b71]12%description -n %{rpmprefix}rtems@osversion@-base-gnat
13RTEMS is an open source operating system for embedded systems.
14
15This is the gcc/gnat tools for the gcc/gnat compiler
16
17%files -n %{rpmprefix}rtems@osversion@-base-gnat
18%defattr(-,root,root)
[f078d21]19%if "%{gcc_version}" >= "4.0"
[1eb65053]20%dir %{_bindir}
[f078d21]21%{_bindir}/vxaddr2line%{_exeext}
22%endif
[664d8b71]23
24%if "%{gcc_version}" >= "3.3"
25%{_infodir}/gnat*
26%endif
27
28%if "%{gcc_version}" >= "3.3"
29%post -n %{rpmprefix}rtems@osversion@-base-gnat
[f078d21]30  /sbin/install-info --infodir=%{_infodir} %{_infodir}/gnat_rm.info.gz
31  /sbin/install-info --infodir=%{_infodir} %{_infodir}/gnat-style.info.gz
32  /sbin/install-info --infodir=%{_infodir} %{_infodir}/gnat_ugn_unw.info.gz
[664d8b71]33
34%postun -n %{rpmprefix}rtems@osversion@-base-gnat
[f078d21]35if [ $1 -eq 0 ]; then
36  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gnat_rm.info.gz
37  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gnat-style.info.gz
38  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gnat_ugn_unw.info.gz
39fi
[664d8b71]40%endif
41%endif
Note: See TracBrowser for help on using the repository browser.