- Added triggers for install-info (bug #225609).

- Resolves: rhbz#225609
This commit is contained in:
Tim Waugh 2007-02-05 17:45:29 +00:00
parent cf8618825f
commit d6551a761f

View File

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