Ignore:
Timestamp:
Oct 10, 2007, 6:52:31 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
d14963b
Parents:
c9274ae
Message:

update to gdb-6.6.90.

File:
1 edited

Legend:

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

    rc9274ae r5a9f372  
    1414%endif
    1515
    16 %define gdb_version 6.5
    17 %define gdb_rpmvers %{expand:%(echo 6.5 | tr - _)}
     16%define gdb_version 6.6.90
     17%define gdb_rpmvers %{expand:%(echo 6.6.90 | tr - _)}
    1818
    1919Name:           rtems-4.9-sparc-rtems4.9-gdb
     
    3333%endif
    3434%endif
    35 # Required for building the infos
    36 BuildRequires:  /sbin/install-info
    37 BuildRequires:  texinfo >= 4.2
    3835%if "sparc-rtems4.9" == "sparc-rtems4.9"
    3936BuildRequires:  libtermcap-devel
    4037%endif
    4138BuildRequires:  ncurses-devel
    42 
    43 Requires:       rtems-4.9-gdb-common
    4439
    4540Source0:        ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
     
    7974
    8075  make all
    81   make info
    8276  cd ..
    8377
     
    9791    install
    9892
    99   make prefix=$RPM_BUILD_ROOT%{_prefix} \
    100     bindir=$RPM_BUILD_ROOT%{_bindir} \
    101     includedir=$RPM_BUILD_ROOT%{_includedir} \
    102     libdir=$RPM_BUILD_ROOT%{_libdir} \
    103     infodir=$RPM_BUILD_ROOT%{_infodir} \
    104     mandir=$RPM_BUILD_ROOT%{_mandir} \
    105     install-info
    10693%endif
    10794
    108   rm -f $RPM_BUILD_ROOT%{_infodir}/dir
    109   touch $RPM_BUILD_ROOT%{_infodir}/dir
    110 
    111 # These come from other packages
    112   rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
    113   rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
    114   rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
     95# Conflict with a native gdb's infos
     96  rm -rf $RPM_BUILD_ROOT%{_infodir}
    11597
    11698# We don't ship host files
     
    178160%{_bindir}/sparc-rtems4.9-*
    179161
    180 # ==============================================================
    181 # rtems-4.9-gdb-common
    182 # ==============================================================
    183 %package -n rtems-4.9-gdb-common
    184 Summary:      Base package for RTEMS gdbs
    185 Group: Development/Tools
    186 Requires(post):         /sbin/install-info
    187 Requires(preun):        /sbin/install-info
    188 
    189 %description -n rtems-4.9-gdb-common
    190 
    191 GDB files shared by all targets.
    192 
    193 %post -n rtems-4.9-gdb-common
    194   /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
    195 %if "%{gdb_version}" < "6.3"
    196   /sbin/install-info --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || :
    197 %endif
    198   /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
    199   /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
    200   /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
    201 
    202 %preun -n rtems-4.9-gdb-common
    203 if [ $1 -eq 0 ]; then
    204   /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
    205 %if "%{gdb_version}" < "6.3"
    206   /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || :
    207 %endif
    208   /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
    209   /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
    210   /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
    211 fi
    212 
    213 %files -n rtems-4.9-gdb-common
    214 %defattr(-,root,root)
    215 %dir %{_infodir}
    216 %ghost %{_infodir}/dir
    217 %{_infodir}/gdb.info*
    218 
    219 # FIXME: When had mmalloc.info been removed?
    220 %if "%{gdb_version}" < "6.3"
    221 %{_infodir}/mmalloc.info*
    222 %endif
    223 %{_infodir}/gdbint.info*
    224 %{_infodir}/stabs.info*
    225 %{_infodir}/annotate.info*
    226 
Note: See TracChangeset for help on using the changeset viewer.