Fix errors installing texinfo/info with --excludedocs

This commit is contained in:
vcrhonek 2009-09-02 13:31:02 +00:00
parent a00b82ca99
commit fd48b1830c

View File

@ -3,7 +3,7 @@
Summary: Tools needed to create Texinfo format documentation files Summary: Tools needed to create Texinfo format documentation files
Name: texinfo Name: texinfo
Version: 4.13a Version: 4.13a
Release: 6%{?dist} Release: 7%{?dist}
License: GPLv3+ License: GPLv3+
Group: Applications/Publishing Group: Applications/Publishing
Url: http://www.gnu.org/software/texinfo/ Url: http://www.gnu.org/software/texinfo/
@ -84,24 +84,32 @@ mv ChangeLog_utf8 ChangeLog
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
%post %post
if [ -f %{_infodir}/texinfo ]; then # --excludedocs?
/sbin/install-info %{_infodir}/texinfo %{_infodir}/dir || : /sbin/install-info %{_infodir}/texinfo %{_infodir}/dir || :
fi
%preun %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
if [ -f %{_infodir}/texinfo ]; then # --excludedocs?
/sbin/install-info --delete %{_infodir}/texinfo %{_infodir}/dir || : /sbin/install-info --delete %{_infodir}/texinfo %{_infodir}/dir || :
fi fi
fi
%post -n info %post -n info
if [ -f %{_infodir}/info-stnd.info ]; then # --excludedocs?
/sbin/install-info %{_infodir}/info-stnd.info %{_infodir}/dir /sbin/install-info %{_infodir}/info-stnd.info %{_infodir}/dir
fi
if [ -x /bin/sed ]; then if [ -x /bin/sed ]; then
/bin/sed -i '/^This is.*produced by makeinfo.*from/d' %{_infodir}/dir || : /bin/sed -i '/^This is.*produced by makeinfo.*from/d' %{_infodir}/dir || :
fi fi
%preun -n info %preun -n info
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
if [ -f %{_infodir}/info-stnd.info ]; then # --excludedocs?
/sbin/install-info --delete %{_infodir}/info-stnd.info %{_infodir}/dir \ /sbin/install-info --delete %{_infodir}/info-stnd.info %{_infodir}/dir \
|| : || :
fi fi
fi
%post tex %post tex
%{_bindir}/texconfig-sys rehash 2> /dev/null || : %{_bindir}/texconfig-sys rehash 2> /dev/null || :
@ -146,6 +154,11 @@ fi
%{_mandir}/man1/pdftexi2dvi.1* %{_mandir}/man1/pdftexi2dvi.1*
%changelog %changelog
* Wed Sep 2 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 4.13a-7
- Fix errors installing texinfo/info with --excludedocs
Resolves: #515909
Resolves: #515938
* Wed Aug 12 2009 Ville Skyttä <ville.skytta@iki.fi> - 4.13a-6 * Wed Aug 12 2009 Ville Skyttä <ville.skytta@iki.fi> - 4.13a-6
- Use lzma compressed upstream tarball. - Use lzma compressed upstream tarball.