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

4.9
Last change on this file since a181ab0 was 2733f945, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 28, 2008 at 10:10:09 PM

Add %sysdir %{_prefix} to cater rpm5.

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