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

4.104.114.84.9
Last change on this file since d183ac2a was d183ac2a, checked in by Ralf Corsepius <ralf.corsepius@…>, on May 25, 2007 at 8:39:01 AM

Add gprof.info handling.

  • Property mode set to 100644
File size: 2.6 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%if "%{binutils_version}" < "2.13"
32  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gasp.info.gz || :
33%endif
34
35%preun -n @rpmprefix@binutils-common
36if [ $1 -eq 0 ]; then
37  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
38  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
39  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
40  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
41  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
42%if "%{binutils_version}" > "2.17"
43  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
44%endif
45%if "%{binutils_version}" < "2.13"
46  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gasp.info.gz || :
47%endif
48fi
49
50%files -n @rpmprefix@binutils-common
51%defattr(-,root,root)
52%sysdir %{_infodir}
53%ghost %{_infodir}/dir
54%{_infodir}/as.info*
55%{_infodir}/bfd.info*
56%{_infodir}/binutils.info*
57%{_infodir}/ld.info*
58%{_infodir}/standards.info*
59%if "%{binutils_version}" > "2.17"
60%{_infodir}/gprof.info*
61%endif
62%if "%{binutils_version}" < "2.13"
63%{_infodir}/gasp.info*
64%endif
65
66%sysdir %{_prefix}/share
67%sysdir %{_prefix}/share/locale
68%endif
69
Note: See TracBrowser for help on using the repository browser.