source: rtems/contrib/crossrpms/binutils/base-binutils.add @ 9ce762b

4.104.114.84.9
Last change on this file since 9ce762b was 9ce762b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 29, 2007 at 2:51:40 AM

Abandon binutils < 2.13.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1%if %build_infos
2# ==============================================================
3# @rpmprefix@binutils-common
4# ==============================================================
5%package -n @rpmprefix@binutils-common
6Summary:      Base package for RTEMS binutils
7Group: Development/Tools
8Requires(post):         /sbin/install-info
9Requires(preun):        /sbin/install-info
10
11Provides:       @rpmprefix@rtems4.7-base-binutils = %{binutils_version}-%{release}
12Obsoletes:      @rpmprefix@rtems4.7-base-binutils < %{binutils_version}-%{release}
13Provides:       @rpmprefix@rtems-base-binutils = %{binutils_version}-%{release}
14Obsoletes:      @rpmprefix@rtems-base-binutils < %{binutils_version}-%{release}
15
16%description -n @rpmprefix@binutils-common
17
18RTEMS is an open source operating system for embedded systems.
19
20This is the base for binutils regardless of target CPU.
21
22%post -n @rpmprefix@binutils-common
23  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
24  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
25  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
26  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
27  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
28%if "%{binutils_version}" > "2.17"
29  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
30%endif
31
32%preun -n @rpmprefix@binutils-common
33if [ $1 -eq 0 ]; then
34  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
35  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
36  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
37  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
38  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
39%if "%{binutils_version}" > "2.17"
40  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
41%endif
42fi
43
44%files -n @rpmprefix@binutils-common
45%defattr(-,root,root)
46%sysdir %{_infodir}
47%ghost %{_infodir}/dir
48%{_infodir}/as.info*
49%{_infodir}/bfd.info*
50%{_infodir}/binutils.info*
51%{_infodir}/ld.info*
52%{_infodir}/standards.info*
53%if "%{binutils_version}" > "2.17"
54%{_infodir}/gprof.info*
55%endif
56
57%sysdir %{_prefix}/share
58%sysdir %{_prefix}/share/locale
59%endif
60
Note: See TracBrowser for help on using the repository browser.