source: rtems/contrib/crossrpms/gcc/base-newlib.add @ fb85f5a

4.104.115
Last change on this file since fb85f5a was fb85f5a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/26/09 at 04:55:44

Add NEWLIB_RELEASE, %{newlib_release}.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1%if %build_infos
2%if %build_newlib
3# ==============================================================
4# @rpmprefix@newlib-common
5# ==============================================================
6%package -n @rpmprefix@newlib-common
7Summary:        Base package for RTEMS newlib C Library
8Group:          Development/Tools
9Version:        %{newlib_version}
10Release:        %{newlib_release}
11License:        Distributable
12
13Requires(post):         /sbin/install-info
14Requires(preun):        /sbin/install-info
15
16%description -n @rpmprefix@newlib-common
17newlib files that are shared by all targets.
18
19%files -n @rpmprefix@newlib-common
20%defattr(-,root,root)
21%sysdir %{_infodir}
22%ghost %{_infodir}/dir
23%{_infodir}/libc.info*
24%{_infodir}/libm.info*
25
26%post -n @rpmprefix@newlib-common
27  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
28  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
29
30%preun -n @rpmprefix@newlib-common
31if [ $1 -eq 0 ]; then
32  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
33  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
34fi
35
36%endif
37%endif
Note: See TracBrowser for help on using the repository browser.