source: rtems/scripts/gcc3newlib/base-gnat.add @ 61f41e2

4.104.114.84.95
Last change on this file since 61f41e2 was 61f41e2, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 17, 2003 at 12:52:01 PM

2003-11-17 Ralf Corsepius <corsepiu@…>

  • gcc3newlib/gccnewlib.add: Add hacks to make gnatlib buildable.
  • gcc3newlib/base-gnat.add: Add info files.
  • Property mode set to 100644
File size: 1.3 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%{_prefix}/info/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%{_prefix}/info;
25  then
26    rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir
27    f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`
28    test -n "$f" && for i in $f; do
29      install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir
30    done
31  fi
32
33%postun -n %{rpmprefix}rtems@osversion@-base-gnat
34  if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;
35  then
36    rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir
37    f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`
38    test -n "$f" && for i in $f; do
39      install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir
40    done
41  fi
42%endif
43%endif
Note: See TracBrowser for help on using the repository browser.