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
1 changed files with 19 additions and 6 deletions

View File

@ -3,7 +3,7 @@
Summary: Tools needed to create Texinfo format documentation files
Name: texinfo
Version: 4.13a
Release: 6%{?dist}
Release: 7%{?dist}
License: GPLv3+
Group: Applications/Publishing
Url: http://www.gnu.org/software/texinfo/
@ -84,23 +84,31 @@ mv ChangeLog_utf8 ChangeLog
rm -rf ${RPM_BUILD_ROOT}
%post
/sbin/install-info %{_infodir}/texinfo %{_infodir}/dir || :
if [ -f %{_infodir}/texinfo ]; then # --excludedocs?
/sbin/install-info %{_infodir}/texinfo %{_infodir}/dir || :
fi
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/texinfo %{_infodir}/dir || :
if [ -f %{_infodir}/texinfo ]; then # --excludedocs?
/sbin/install-info --delete %{_infodir}/texinfo %{_infodir}/dir || :
fi
fi
%post -n info
/sbin/install-info %{_infodir}/info-stnd.info %{_infodir}/dir
if [ -f %{_infodir}/info-stnd.info ]; then # --excludedocs?
/sbin/install-info %{_infodir}/info-stnd.info %{_infodir}/dir
fi
if [ -x /bin/sed ]; then
/bin/sed -i '/^This is.*produced by makeinfo.*from/d' %{_infodir}/dir || :
fi
%preun -n info
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/info-stnd.info %{_infodir}/dir \
|| :
if [ -f %{_infodir}/info-stnd.info ]; then # --excludedocs?
/sbin/install-info --delete %{_infodir}/info-stnd.info %{_infodir}/dir \
|| :
fi
fi
%post tex
@ -146,6 +154,11 @@ fi
%{_mandir}/man1/pdftexi2dvi.1*
%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
- Use lzma compressed upstream tarball.