Ignore:
Timestamp:
Oct 11, 2007, 8:31:50 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
c57316a
Parents:
777d259b
Message:

gdb-6.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec

    r777d259b rdf16b8bf  
    1414%endif
    1515
    16 %define gdb_version 6.6.90
    17 %define gdb_rpmvers %{expand:%(echo 6.6.90 | tr - _)}
     16%define gdb_version 6.7
     17%define gdb_rpmvers %{expand:%(echo 6.7 | tr - _)}
    1818
    1919Name:           rtems-4.9-sparc-rtems4.9-gdb
     
    3333%endif
    3434%endif
     35# Required for building the infos
     36BuildRequires:  /sbin/install-info
     37BuildRequires:  texinfo >= 4.2
    3538%if "sparc-rtems4.9" == "sparc-rtems4.9"
    3639BuildRequires:  libtermcap-devel
    3740%endif
    3841BuildRequires:  ncurses-devel
     42
     43Requires:       rtems-4.9-gdb-common
    3944
    4045Source0:        ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
     
    4550%if "%{gdb_version}" == "6.6"
    4651Patch0:         gdb-6.6-rtems4.8-20070306.diff
     52%endif
     53%if "%{gdb_version}" == "6.7"
     54Patch0:         gdb-6.7-rtems4.9-20071011.diff
    4755%endif
    4856
     
    7482
    7583  make all
     84  make info
    7685  cd ..
    7786
     
    91100    install
    92101
    93 %endif
    94 
    95 # Conflict with a native gdb's infos
    96   rm -rf $RPM_BUILD_ROOT%{_infodir}
     102  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     103    bindir=$RPM_BUILD_ROOT%{_bindir} \
     104    includedir=$RPM_BUILD_ROOT%{_includedir} \
     105    libdir=$RPM_BUILD_ROOT%{_libdir} \
     106    infodir=$RPM_BUILD_ROOT%{_infodir} \
     107    mandir=$RPM_BUILD_ROOT%{_mandir} \
     108    install-info
     109%endif
     110
     111  rm -f $RPM_BUILD_ROOT%{_infodir}/dir
     112  touch $RPM_BUILD_ROOT%{_infodir}/dir
     113
     114# These come from other packages
     115  rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
     116  rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
     117  rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
    97118
    98119# We don't ship host files
     
    160181%{_bindir}/sparc-rtems4.9-*
    161182
     183# ==============================================================
     184# rtems-4.9-gdb-common
     185# ==============================================================
     186%package -n rtems-4.9-gdb-common
     187Summary:      Base package for RTEMS gdbs
     188Group: Development/Tools
     189Requires(post):         /sbin/install-info
     190Requires(preun):        /sbin/install-info
     191
     192%description -n rtems-4.9-gdb-common
     193
     194GDB files shared by all targets.
     195
     196%post -n rtems-4.9-gdb-common
     197  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
     198%if "%{gdb_version}" < "6.3"
     199  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || :
     200%endif
     201  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
     202  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
     203  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
     204
     205%preun -n rtems-4.9-gdb-common
     206if [ $1 -eq 0 ]; then
     207  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
     208%if "%{gdb_version}" < "6.3"
     209  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || :
     210%endif
     211  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
     212  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
     213  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
     214fi
     215
     216%files -n rtems-4.9-gdb-common
     217%defattr(-,root,root)
     218%dir %{_infodir}
     219%ghost %{_infodir}/dir
     220%{_infodir}/gdb.info*
     221
     222# FIXME: When had mmalloc.info been removed?
     223%if "%{gdb_version}" < "6.3"
     224%{_infodir}/mmalloc.info*
     225%endif
     226%{_infodir}/gdbint.info*
     227%{_infodir}/stabs.info*
     228%{_infodir}/annotate.info*
     229
Note: See TracChangeset for help on using the changeset viewer.