Fix Requires and info post script

This commit is contained in:
vcrhonek 2008-05-29 11:44:05 +00:00
parent 04154794e3
commit 66e5bd9561

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.12 Version: 4.12
Release: 1%{?dist} Release: 2%{?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/
@ -12,6 +12,7 @@ Source1: info-dir
Source2: texi2pdf.man Source2: texi2pdf.man
Patch0: texinfo-4.12-zlib.patch Patch0: texinfo-4.12-zlib.patch
Requires(post): /sbin/install-info Requires(post): /sbin/install-info
Requires(post): /bin/sed
Requires(preun): /sbin/install-info Requires(preun): /sbin/install-info
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel, ncurses-devel BuildRequires: zlib-devel, ncurses-devel
@ -90,8 +91,8 @@ if [ $1 = 0 ]; then
fi fi
%post -n info %post -n info
/sbin/install-info %{_infodir}/info-stnd.info %{_infodir}/dir || : /sbin/install-info %{_infodir}/info-stnd.info %{_infodir}/dir
sed -i 's/^This is.*produced by makeinfo.*from/d/' /usr/share/info/dir /bin/sed -i '/^This is.*produced by makeinfo.*from/d' %{_infodir}/dir || :
%preun -n info %preun -n info
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
@ -142,6 +143,9 @@ fi
%{_mandir}/man1/pdftexi2dvi.1* %{_mandir}/man1/pdftexi2dvi.1*
%changelog %changelog
* Thu May 29 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 4.12-2
- Fix Requires and info post script
* Wed May 14 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 4.12-1 * Wed May 14 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 4.12-1
- Update to texinfo-4.12 - Update to texinfo-4.12
- Remove description ("This is...") from /usr/share/info/dir in info - Remove description ("This is...") from /usr/share/info/dir in info