Changeset 01309994 in rtems


Ignore:
Timestamp:
May 3, 2005, 1:37:35 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
855db41
Parents:
894a6b22
Message:

Misc. %infodir/dir handling changes.

Location:
scripts
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • scripts/gccnewlib/base-g77.add

    r894a6b22 r01309994  
    77Group: %{rpmgroup}
    88Requires: rtems-base-gcc
     9Requires(post): /sbin/install-info
     10Requires(preun): /sbin/install-info
    911
    1012%description -n %{rpmprefix}rtems@osversion@-base-g77
     
    1618%defattr(-,root,root)
    1719%dir %{_infodir}
     20%ghost %{_infodir}/dir
    1821%{_infodir}/g77.info*.gz
    1922
     
    2326
    2427%post -n %{rpmprefix}rtems@osversion@-base-g77
    25   if test -d %{_infodir};
    26   then
    27     rm -f %{_infodir}/dir
    28     f=`find %{_infodir} -name '*.info.gz'`
    29     test -n "$f" && for i in $f; do
    30       install-info $i %{_infodir}/dir
    31     done
    32   fi
     28  /sbin/install-info --infodir=%{_infodir} %{_infodir}/g77.info.gz
    3329
    34 %postun -n %{rpmprefix}rtems@osversion@-base-g77
    35   if test -d %{_infodir};
    36   then
    37     rm -f %{_infodir}/dir
    38     f=`find %{_infodir} -name '*.info.gz'`
    39     test -n "$f" && for i in $f; do
    40       install-info $i %{_infodir}/dir
    41     done
    42   fi
     30%preun -n %{rpmprefix}rtems@osversion@-base-g77
     31if [ $1 -eq 0 ]; then
     32  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/g77.info.gz
     33fi
    4334
    4435%endif
  • scripts/gccnewlib/base-gcc.add

    r894a6b22 r01309994  
    77
    88Requires(post):         /sbin/install-info
    9 Requires(postun):       /sbin/install-info
     9Requires(preun):        /sbin/install-info
    1010
    1111%description -n %{rpmprefix}rtems@osversion@-base-gcc
     
    1818%defattr(-,root,root)
    1919%dir %{_infodir}
     20%ghost %{_infodir}/dir
    2021%{_infodir}/cpp.info*
    2122%{_infodir}/cppinternals.info*
     
    5253%endif
    5354
    54 %postun -n %{rpmprefix}rtems@osversion@-base-gcc
     55%preun -n %{rpmprefix}rtems@osversion@-base-gcc
    5556if [ $1 -eq 0 ]; then
    5657  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/cpp.info.gz
  • scripts/gccnewlib/base-gcj.add

    r894a6b22 r01309994  
    88
    99Requires(post):         /sbin/install-info
    10 Requires(postun):       /sbin/install-info
     10Requires(preun):        /sbin/install-info
    1111
    1212%description -n %{rpmprefix}rtems@osversion@-base-gcj
     
    2424
    2525%dir %{_infodir}
     26%ghost %{_infodir}/dir
    2627%{_infodir}/gcj.info*
    2728%if "%{gcc_version}" >= "3.3"
     
    5253%endif
    5354
    54 %postun -n %{rpmprefix}rtems@osversion@-base-gcj
     55%preun -n %{rpmprefix}rtems@osversion@-base-gcj
    5556if [ $1 -eq 0 ]; then
    5657/sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gcj.info*
  • scripts/gccnewlib/base-gfortran.add

    r894a6b22 r01309994  
    88
    99Requires(post):         /sbin/install-info
    10 Requires(postun):       /sbin/install-info
     10Requires(preun):        /sbin/install-info
    1111
    1212%description -n %{rpmprefix}rtems@osversion@-base-gfortran
     
    1818%defattr(-,root,root)
    1919%dir %{_infodir}
     20%ghost %{_infodir}/dir
    2021%{_infodir}/gfortran.info*.gz
    2122
     
    2728  /sbin/install-info --infodir=%{_infodir} %{_infodir}/gfortran.info.gz
    2829
    29 %postun -n %{rpmprefix}rtems@osversion@-base-gfortran
     30%preun -n %{rpmprefix}rtems@osversion@-base-gfortran
    3031if [ $1 -eq 0 ]; then
    3132  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gfortran.info.gz
  • scripts/gccnewlib/base-gnat.add

    r894a6b22 r01309994  
    88
    99Requires(post):         /sbin/install-info
    10 Requires(postun):       /sbin/install-info
     10Requires(preun):        /sbin/install-info
    1111
    1212%description -n %{rpmprefix}rtems@osversion@-base-gnat
     
    2121
    2222%dir %{_infodir}
     23%ghost %{_infodir}/dir
    2324%{_infodir}/gnat*
    2425
     
    2829  /sbin/install-info --infodir=%{_infodir} %{_infodir}/gnat_ugn_unw.info.gz
    2930
    30 %postun -n %{rpmprefix}rtems@osversion@-base-gnat
     31%preun -n %{rpmprefix}rtems@osversion@-base-gnat
    3132if [ $1 -eq 0 ]; then
    3233  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gnat_rm.info.gz
  • scripts/gdb/base-gdb.add

    r894a6b22 r01309994  
    77Group: %{rpmgroup}
    88Requires(post):         /sbin/install-info
    9 Requires(postun):       /sbin/install-info
     9Requires(preun):        /sbin/install-info
    1010
    1111%description -n %{rpmprefix}rtems@osversion@-base-gdb
     
    1919
    2020%dir %{_infodir}
     21%ghost %{_infodir}/dir
    2122%{_infodir}/gdb.info*
    2223
     
    5152%endif
    5253
    53 %postun -n %{rpmprefix}rtems@osversion@-base-gdb
     54%preun -n %{rpmprefix}rtems@osversion@-base-gdb
    5455if [ $1 -eq 0 ]; then
    5556  /sbin/install-info --delete --infodir=%{_infodir} %{_infodir}/gdb.info.gz
  • scripts/gdb/gdb.add

    r894a6b22 r01309994  
    5454%endif
    5555%if "%{gdb_target}" == "powerpc-rtems@osversion@"
    56 %define _sim    0
     56%define _sim    1
    5757%endif
    5858%if "%{gdb_target}" == "sparc-rtems@osversion@"
     
    134134  # Don't care about it, anymore
    135135  rm -rf $RPM_BUILD_ROOT%{_infodir}/readline.info*
     136
     137  rm -f $RPM_BUILD_ROOT%{_infodir}/dir
     138  touch $RPM_BUILD_ROOT%{_infodir}/dir
    136139 
    137140  # gzip info files
     
    143146  done
    144147
    145   # We don't ship info/dir
    146   rm -f $RPM_BUILD_ROOT%{_infodir}/dir
    147 
    148148  # gzip man pages
    149149  gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/*.? 2>/dev/null
Note: See TracChangeset for help on using the changeset viewer.