Changeset d8fa12c in rtems


Ignore:
Timestamp:
Apr 20, 2005, 7:24:58 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
4279a35
Parents:
b17dd93
Message:

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

  • gdb/base-gdb.add, gdb/gdb.add, gdb/target-gdb.add: Use mkdir -p. Introduce %{_includedir}, %{_libdir}. Remove superfluous %doc.
Location:
scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • scripts/ChangeLog

    rb17dd93 rd8fa12c  
     12005-04-20      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * gdb/base-gdb.add, gdb/gdb.add, gdb/target-gdb.add:
     4        Use mkdir -p. Introduce %{_includedir}, %{_libdir}. Remove
     5        superfluous %doc.
     6
    172005-04-20      Ralf Corsepius <ralf.corsepius@rtems.org>
    28
  • scripts/gdb/base-gdb.add

    rb17dd93 rd8fa12c  
    1717
    1818%dir %{_infodir}
    19 %doc %{_infodir}/gdb.info*
     19%{_infodir}/gdb.info*
     20
    2021# FIXME: When had mmalloc.info been removed?
    2122%if "%{gdb_version}" < "6.3"
    22 %doc %{_infodir}/mmalloc.info*
     23%{_infodir}/mmalloc.info*
    2324%endif
    2425# FIXME: When had gdbint and stabs been introduced?
    2526%if "%{gdb_version}" >= "5.0"
    26 %doc %{_infodir}/gdbint.info*
    27 %doc %{_infodir}/stabs.info*
    28 %endif
    29 # gdb 4.18 installed this, gdb 5.0 does not
    30 %if "%{gdb_version}" < "5.0"
    31 %doc %{_infodir}/readline.info*
     27%{_infodir}/gdbint.info*
     28%{_infodir}/stabs.info*
    3229%endif
    3330
    3431%if "{gdb_version}" >= "6.0"
    35 %doc %{_infodir}/annotate.info*
     32%{_infodir}/annotate.info*
    3633%endif
    3734
    38 %dir %{_prefix}/man
    39 %dir %{_prefix}/man/man1
    40 
    41 # %dir %{_prefix}/include
    42 # We install libbfd from binutils
    43 # %{_prefix}/include/bfd.h
    44 # %{_prefix}/include/bfdlink.h
    45 
    46 %dir %{_prefix}/lib
    47 # We install libbfd from binutils
    48 # %{_prefix}/lib/libbfd*
    49 # We use libiberty from gcc
    50 # %{_prefix}/lib/libiberty*
     35%dir %{_mandir}
     36%dir %{_mandir}/man1
    5137
    5238%post -n %{rpmprefix}rtems@osversion@-base-gdb
    53   if test -d $RPM_INSTALL_PREFIX/rtems/info;
     39  if test -d %{_infodir};
    5440  then
    55     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    56     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     41    rm -f %{_infodir}/dir
     42    f=`find %{_infodir} -name '*.info.gz'`
    5743    test -n "$f" && for i in $f; do
    58       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     44      install-info $i %{_infodir}/dir
    5945    done
    6046  fi
    6147
    6248%postun -n %{rpmprefix}rtems@osversion@-base-gdb
    63   if test -d $RPM_INSTALL_PREFIX/rtems/info;
     49  if test -d %{_infodir};
    6450  then
    65     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    66     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     51    rm -f %{_infodir}/dir
     52    f=`find %{_infodir} -name '*.info.gz'`
    6753    test -n "$f" && for i in $f; do
    68       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     54      install-info $i %{_infodir}/dir
    6955    done
    7056  fi
  • scripts/gdb/gdb.add

    rb17dd93 rd8fa12c  
    8787%endif
    8888
    89 test -d build || mkdir build
     89  mkdir -p build
    9090  cd build
    9191  export PATH="%{_bindir}:${PATH}"
     
    9494    --target=%{gdb_target} \
    9595    --prefix=%{_prefix} --bindir=%{_bindir} \
     96    --includedir=%{_includedir} --libdir=%{_libdir} \
    9697    --mandir=%{_mandir} --infodir=%{_infodir} \
    9798    --verbose $simargs \
     
    107108  make prefix=$RPM_BUILD_ROOT%{_prefix} \
    108109    bindir=$RPM_BUILD_ROOT%{_bindir} \
     110    includedir=$RPM_BUILD_ROOT%{_includedir} \
     111    libdir=$RPM_BUILD_ROOT%{_libdir} \
    109112    infodir=$RPM_BUILD_ROOT%{_infodir} \
    110113    mandir=$RPM_BUILD_ROOT%{_mandir} \
     
    112115  make prefix=$RPM_BUILD_ROOT%{_prefix} \
    113116    bindir=$RPM_BUILD_ROOT%{_bindir} \
     117    includedir=$RPM_BUILD_ROOT%{_includedir} \
     118    libdir=$RPM_BUILD_ROOT%{_libdir} \
    114119    infodir=$RPM_BUILD_ROOT%{_infodir} \
    115120    mandir=$RPM_BUILD_ROOT%{_mandir} \
     
    117122
    118123  # host files
    119   rm -rf $RPM_BUILD_ROOT%{_prefix}/include/*.h
    120   rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/lib*a
     124  rm -rf $RPM_BUILD_ROOT%{_includedir}/*.h
     125  rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*a
    121126
    122127  # These come from other packages
     
    124129  rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
    125130  rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
     131
     132  # gdb 4.18 installed this, later versions don't
     133  # Don't care about it, anymore
     134  rm -rf $RPM_BUILD_ROOT%{_infodir}/readline.info*
    126135 
    127136  # gzip info files
  • scripts/gdb/target-gdb.add

    rb17dd93 rd8fa12c  
    1515%files -n %{rpmprefix}%{gdb_target}-gdb
    1616%defattr(-,root,root)
    17 %doc %{_mandir}/man1/%{gdb_target}-gdb.1*
     17%{_mandir}/man1/%{gdb_target}-gdb.1*
    1818%if "%_sim" == "1"
    19 %doc %{_mandir}/man1/%{gdb_target}-run.1*
     19%{_mandir}/man1/%{gdb_target}-run.1*
    2020%endif
    2121%if "%{gdb_version}" >= "6.3"
Note: See TracChangeset for help on using the changeset viewer.