Changeset e9166f31 in rtems


Ignore:
Timestamp:
Apr 13, 2005, 6:21:06 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
689b94dd
Parents:
59788fa9
Message:

2005-04-13 Ralf Corsepius <ralf.corsepius@…>

  • gdb/gdb.add, gdb/target-gdb.add: Introduce %{_infodir}, %{_mandir}, %{_bindir}. Various minor fixes. Rename src.rpm into <target>-gdb. Disable sim for avr.
Location:
scripts/gdb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/gdb/gdb.add

    r59788fa9 re9166f31  
    33%define gdb_target      @target_alias@
    44
    5 Name:         %{rpmprefix}%{gdb_target}-gdb-collection
     5Name:         %{rpmprefix}%{gdb_target}-gdb
    66Release:      @Release@
    77License:      GPL/LGPL
     
    4444%define _sim    1
    4545
     46%if "%{gdb_target}" == "avr-rtems@osversion@"
     47%define _sim    0
     48%endif
    4649%if "%{gdb_target}" == "m68k-rtems@osversion@"
    4750%define _sim    0
     
    100103
    101104  # These come from other packages
    102   rm -rf $RPM_BUILD_ROOT%{_prefix}/info/bfd*
    103   rm -rf $RPM_BUILD_ROOT%{_prefix}/info/configure*
    104   rm -rf $RPM_BUILD_ROOT%{_prefix}/info/standards*
     105  rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
     106  rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
     107  rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
    105108 
    106109  # gzip info files
    107   gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
    108   gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null
    109 %if "%{gdb_version}" < "6.0"
    110   gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null
    111 %endif
     110  ls $RPM_BUILD_ROOT%{_infodir}/*.info \
     111    $RPM_BUILD_ROOT%{_infodir}/*.info-? \
     112    $RPM_BUILD_ROOT%{_infodir}/*.info-?? \
     113  | while read a; do \
     114    gzip -9qf $a 2>/dev/null; \
     115  done
    112116
    113117  # We don't ship info/dir
    114   rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir
     118  rm -f $RPM_BUILD_ROOT%{_infodir}/dir
     119
     120  # gzip man pages
     121  gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/*.? 2>/dev/null
  • scripts/gdb/target-gdb.add

    r59788fa9 re9166f31  
    22# %{gdb_target}-gdb
    33# =====================================================================
    4 
    5 %package -n %{rpmprefix}%{gdb_target}-gdb
    6 Summary:      rtems gdb for %{gdb_target}
    7 Group: %{rpmgroup}
    8 Requires: %{rpmprefix}rtems@osversion@-base-gdb
     4# %package -n %{rpmprefix}%{gdb_target}-gdb
     5# Summary:      rtems gdb for %{gdb_target}
     6# Group: %{rpmgroup}
     7# Requires: %{rpmprefix}rtems@osversion@-base-gdb
    98
    109%description -n %{rpmprefix}%{gdb_target}-gdb
     
    1615%files -n %{rpmprefix}%{gdb_target}-gdb
    1716%defattr(-,root,root)
    18 %doc %{_prefix}/man/man1/%{gdb_target}-gdb.1*
     17%doc %{_mandir}/man1/%{gdb_target}-gdb.1*
    1918%if "%_sim" == "1"
    20 %doc %{_prefix}/man/man1/%{gdb_target}-run.1*
     19%doc %{_mandir}/man1/%{gdb_target}-run.1*
    2120%endif
    2221%if "%{gdb_version}" >= "6.3"
    23 %{_prefix}/man/man1/%{gdb_target}-gdbtui.1*
     22%{_mandir}/man1/%{gdb_target}-gdbtui.1*
    2423%endif
    2524
    26 %dir %{_prefix}/bin
    27 %{_prefix}/bin/%{gdb_target}-gdb%{_exeext}
     25%dir %{_bindir}
     26%{_bindir}/%{gdb_target}-gdb%{_exeext}
    2827%if "%_sim" == "1"
    29 %{_prefix}/bin/%{gdb_target}-run%{_exeext}
     28%{_bindir}/%{gdb_target}-run%{_exeext}
    3029%endif
    3130%if "%{gdb_target}" == "sparc-rtems@osversion@"
    32 %{_prefix}/bin/%{gdb_target}-sis%{_exeext}
     31%{_bindir}/%{gdb_target}-sis%{_exeext}
    3332%endif
    3433%if "%{gdb_version}" >= "6.3"
    35 %{_prefix}/bin/%{gdb_target}-gdbtui
     34%{_bindir}/%{gdb_target}-gdbtui
    3635%endif
Note: See TracChangeset for help on using the changeset viewer.