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

4.104.114.84.9
Last change on this file since 793bad2 was 793bad2, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 23, 2006 at 2:17:48 PM

Rename *base packages into gcc*-common

  • Property mode set to 100644
File size: 1.6 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}
10License:        Distributable
11
12Provides:       @rpmprefix@rtems4.7-base-newlib = %{newlib_version}-%{release}
13Obsoletes:      @rpmprefix@rtems4.7-base-newlib < %{newlib_version}-%{release}
14Provides:       @rpmprefix@rtems-base-newlib = %{newlib_version}-%{release}
15Obsoletes:      @rpmprefix@rtems-base-newlib < %{newlib_version}-%{release}
16
17Provides:       @rpmprefix@rtems4.7-base-libc = %{newlib_version}-%{release}
18Obsoletes:      @rpmprefix@rtems4.7-base-libc < %{newlib_version}-%{release}
19Provides:       @rpmprefix@rtems-base-libc = %{newlib_version}-%{release}
20Obsoletes:      @rpmprefix@rtems-base-libc < %{newlib_version}-%{release}
21
22
23Requires(post):         /sbin/install-info
24Requires(preun):        /sbin/install-info
25
26%description -n @rpmprefix@newlib-common
27newlib files that are shared by all targets.
28
29%files -n @rpmprefix@newlib-common
30%defattr(-,root,root)
31%sysdir %{_infodir}
32%ghost %{_infodir}/dir
33%{_infodir}/libc.info*
34%{_infodir}/libm.info*
35
36%post -n @rpmprefix@newlib-common
37  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz
38  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz
39
40%preun -n @rpmprefix@newlib-common
41if [ $1 -eq 0 ]; then
42  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz
43  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz
44fi
45
46%endif
47%endif
Note: See TracBrowser for help on using the repository browser.