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

4.104.114.84.95
Last change on this file since 664d8b71 was 664d8b71, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 12, 2005 at 3:17:39 PM

New.

  • Property mode set to 100644
File size: 1.2 KB
Line 
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
9%description -n %{rpmprefix}rtems@osversion@-base-gnat
10RTEMS is an open source operating system for embedded systems.
11
12This is the gcc/gnat tools for the gcc/gnat compiler
13
14%files -n %{rpmprefix}rtems@osversion@-base-gnat
15%defattr(-,root,root)
16%dir %{_prefix}/bin
17
18%if "%{gcc_version}" >= "3.3"
19%{_infodir}/gnat*
20%endif
21
22%if "%{gcc_version}" >= "3.3"
23%post -n %{rpmprefix}rtems@osversion@-base-gnat
24  if test -d $RPM_INSTALL_PREFIX%{_infodir};
25  then
26    rm -f $RPM_INSTALL_PREFIX%{_infodir}/dir
27    f=`find $RPM_INSTALL_PREFIX%{_infodir} -name '*.info.gz'`
28    test -n "$f" && for i in $f; do
29      install-info $i $RPM_INSTALL_PREFIX%{_infodir}/dir
30    done
31  fi
32
33%postun -n %{rpmprefix}rtems@osversion@-base-gnat
34  if test -d $RPM_INSTALL_PREFIX%{_infodir};
35  then
36    rm -f $RPM_INSTALL_PREFIX%{_infodir}/dir
37    f=`find $RPM_INSTALL_PREFIX%{_infodir} -name '*.info.gz'`
38    test -n "$f" && for i in $f; do
39      install-info $i $RPM_INSTALL_PREFIX%{_infodir}/dir
40    done
41  fi
42%endif
43%endif
Note: See TracBrowser for help on using the repository browser.