diff --git a/bash.spec b/bash.spec index 29865e2..53ba1c0 100644 --- a/bash.spec +++ b/bash.spec @@ -37,6 +37,7 @@ Patch130: bash-infotags.patch Patch131: bash-cond-rmatch.patch Requires: mktemp Requires(post): ncurses +PreReq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: texinfo bison @@ -196,6 +197,10 @@ fi echo "/bin/sh" >> /etc/shells fi) < /etc/shells +if [ "$1" = 1 ]; then + [ -e %{_infodir}/bash.info.gz ] && /sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/bash.info.gz || : +fi + %postun if [ "$1" = 0 ]; then /bin/grep -v '^/bin/bash$' < /etc/shells | \ @@ -203,6 +208,14 @@ if [ "$1" = 0 ]; then /bin/mv /etc/shells.new /etc/shells fi +%triggerin -- info +[ -e %{_infodir}/bash.info.gz ] && /sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/bash.info.gz || : + +%triggerun -- info +if [ $2 -eq 0 ] ; then + [ -e %{_infodir}/bash.info.gz ] && /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/bash.info.gz || : +fi + %files -f %{name}.lang %defattr(-,root,root) %doc CHANGES COMPAT NEWS NOTES POSIX @@ -221,6 +234,7 @@ fi %changelog * Mon Feb 5 2007 Tim Waugh +- Added triggers for install-info (bug #225609). - Use full path to utilities in scriptlets (bug #225609). - Fix missing sh-bangs in example scripts (bug #225609). - Post requires ncurses (bug #224567).