remove install-info from scriptlets

This commit is contained in:
Nikola Forró 2018-06-19 17:51:35 +02:00
parent a23e4d5a3b
commit 57bda953b4

View File

@ -1,7 +1,7 @@
Summary: Spell checker
Name: aspell
Version: 0.60.6.1
Release: 21%{?dist}
Release: 22%{?dist}
Epoch: 12
# LGPLv2+ .. common/gettext.h
# LGPLv2 .. modules/speller/default/phonet.hpp,
@ -31,8 +31,6 @@ Patch8: aspell-0.60.6.1-fix-back-on-empty-vector.patch
BuildRequires: gcc-c++
BuildRequires: chrpath, gettext, ncurses-devel, pkgconfig, perl-interpreter
Requires(pre): /sbin/install-info
Requires(preun): /sbin/install-info
%description
GNU Aspell is a spell checker designed to eventually replace Ispell. It can
@ -49,8 +47,6 @@ Summary: Libraries and header files for Aspell development
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: pkgconfig
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
%description devel
The aspell-devel package includes libraries
@ -106,28 +102,6 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1
%post
/sbin/ldconfig
if [ -f %{_infodir}/aspell.info.gz ]; then
/sbin/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || :
fi
%post devel
if [ -f %{_infodir}/aspell-dev.info.gz ]; then
/sbin/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || :
fi
%preun
if [ $1 = 0 ]; then
if [ -f %{_infodir}/aspell.info.gz ]; then
/sbin/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir || :
fi
fi
%preun devel
if [ $1 = 0 ]; then
if [ -f %{_infodir}/aspell-dev.info.gz ]; then
/sbin/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir || :
fi
fi
%postun -p /sbin/ldconfig
@ -159,6 +133,9 @@ fi
%{_mandir}/man1/pspell-config.1*
%changelog
* Tue Jun 19 2018 Nikola Forró <nforro@redhat.com> - 12:0.60.6.1-22
- remove install-info from scriptlets
* Wed Apr 04 2018 Nikola Forró <nforro@redhat.com> - 12:0.60.6.1-21
- resolves: #1562364
do not call back() on an empty vector