Changeset e6bb55e in rtems


Ignore:
Timestamp:
Apr 26, 2005, 1:45:33 PM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1c23f166
Parents:
3e66bcf
Message:

Install infos using FC conventions.

Location:
scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • scripts/binutils/base-binutils.add

    r3e66bcf re6bb55e  
    55Summary:      base package for rtems binutils
    66Group: %{rpmgroup}
    7 PreReq:         /sbin/install-info
     7Requires(post):         /sbin/install-info
     8Requires(postun):       /sbin/install-info
    89
    910%description -n %{rpmprefix}rtems@osversion@-base-binutils
     
    1415
    1516%post -n %{rpmprefix}rtems@osversion@-base-binutils
    16   if test -d %{_infodir};
    17   then
    18     rm -f %{_infodir}/dir
    19     f=`find %{_infodir} -name '*.info.gz'`
    20     test x"$f" != x"" && for i in $f; do
    21       /sbin/install-info $i %{_infodir}/dir
    22     done
    23   fi
     17  /sbin/install-info --infodir=%{_infodir} %{_infodir}/as.info.gz
     18  /sbin/install-info --infodir=%{_infodir} %{_infodir}/bfd.info.gz
     19  /sbin/install-info --infodir=%{_infodir} %{_infodir}/binutils.info.gz
     20  /sbin/install-info --infodir=%{_infodir} %{_infodir}/ld.info.gz
     21  /sbin/install-info --infodir=%{_infodir} %{_infodir}/standards.info.gz
     22%if "%{binutils_version}" < "2.13"
     23  /sbin/install-info --infodir=%{_infodir} %{_infodir}/gasp.info.gz
     24%endif
    2425
    2526%postun -n %{rpmprefix}rtems@osversion@-base-binutils
    26   if test -d %{_infodir};
    27   then
    28     rm -f %{_infodir}/dir
    29     f=`find %{_infodir} -name '*.info.gz'`
    30     test x"$f" != x"" && for i in $f; do
    31       /sbin/install-info $i %{_infodir}/dir
    32     done
    33   fi
     27if [ $1 -eq 0 ]; then
     28  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/as.info.gz
     29  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/bfd.info.gz
     30  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/binutils.info.gz
     31  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/ld.info.gz
     32  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/standards.info.gz
     33%if "%{binutils_version}" < "2.13"
     34  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gasp.info.gz
     35%endif
     36fi
    3437
    3538%files -n %{rpmprefix}rtems@osversion@-base-binutils
  • scripts/binutils/binutils.add

    r3e66bcf re6bb55e  
    8888%endif
    8989
     90  rm -f $RPM_BUILD_ROOT%{_infodir}/dir
     91
    9092# gzip info files
    9193  ls $RPM_BUILD_ROOT%{_infodir}/*.info \
     
    9698  done
    9799
    98 # We assume that info/dir exists when building the RPMs
    99   rm -f $RPM_BUILD_ROOT%{_infodir}/dir
    100   f=`find $RPM_BUILD_ROOT%{_infodir} -name '*.info.gz'`
    101   test x"$f" != x"" && for i in $f; do
    102     /sbin/install-info $i $RPM_BUILD_ROOT%{_infodir}/dir
    103   done
    104 
    105100# gzip man pages
    106101  gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/*.? 2>/dev/null
  • scripts/gdb/base-gdb.add

    r3e66bcf re6bb55e  
    66Summary:      base package for rtems gdb
    77Group: %{rpmgroup}
     8Requires(post):         /sbin/install-info
     9Requires(postun):       /sbin/install-info
    810
    911%description -n %{rpmprefix}rtems@osversion@-base-gdb
     
    3739
    3840%post -n %{rpmprefix}rtems@osversion@-base-gdb
    39   if test -d %{_infodir};
    40   then
    41     rm -f %{_infodir}/dir
    42     f=`find %{_infodir} -name '*.info.gz'`
    43     test -n "$f" && for i in $f; do
    44       install-info $i %{_infodir}/dir
    45     done
    46   fi
     41  /sbin/install-info --infodir=%{_infodir} %{_infodir}/gdb.info.gz
     42%if "%{gdb_version}" < "6.3"
     43  /sbin/install-info --infodir=%{_infodir} %{_infodir}/mmalloc.info.gz
     44%endif
     45%if "%{gdb_version}" >= "5.0"
     46  /sbin/install-info --infodir=%{_infodir} %{_infodir}/gdbint.info.gz
     47  /sbin/install-info --infodir=%{_infodir} %{_infodir}/stabs.info.gz
     48%endif
     49%if "{gdb_version}" >= "6.0"
     50  /sbin/install-info --infodir=%{_infodir} %{_infodir}/annotate.info.gz
     51%endif
    4752
    4853%postun -n %{rpmprefix}rtems@osversion@-base-gdb
    49   if test -d %{_infodir};
    50   then
    51     rm -f %{_infodir}/dir
    52     f=`find %{_infodir} -name '*.info.gz'`
    53     test -n "$f" && for i in $f; do
    54       install-info $i %{_infodir}/dir
    55     done
    56   fi
     54if [ $1 -eq 0 ]; then
     55  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gdb.info.gz
     56%if "%{gdb_version}" < "6.3"
     57  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/mmalloc.info.gz
     58%endif
     59%if "%{gdb_version}" >= "5.0"
     60  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gdbint.info.gz
     61  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/stabs.info.gz
     62%endif
     63%if "{gdb_version}" >= "6.0"
     64  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/annotate.info.gz
     65%endif
     66fi
Note: See TracChangeset for help on using the changeset viewer.