From a6090e79acc94788e318a4700ce3d620b0ea482e Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Aug 10 2009 11:50:32 +0000 Subject: fix installation with --excludedocs option (#515911) --- diff --git a/aspell.spec b/aspell.spec index 6fd122e..b3bbffb 100644 --- a/aspell.spec +++ b/aspell.spec @@ -1,7 +1,7 @@ Summary: A spelling checker Name: aspell Version: 0.60.6 -Release: 6%{?dist} +Release: 7%{?dist} Epoch: 12 License: LGPLv2 and MIT Group: Applications/Text @@ -76,22 +76,30 @@ chmod 644 ${RPM_BUILD_ROOT}%{_bindir}/aspell-import %find_lang %{name} -%post +%post /sbin/ldconfig -/sbin/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || : +if [ -f %{_infodir}/tar.info.gz ]; then + /sbin/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || : +fi %post devel -/sbin/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || : +if [ -f %{_infodir}/tar.info.gz ]; then + /sbin/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || : +fi -%preun +%preun if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir + if [ -f %{_infodir}/aspell.info.gz ]; then + /sbin/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir || : + fi fi exit 0 %preun devel if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir + if [ -f %{_infodir}/aspell.info.gz ]; then + /sbin/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir || : + fi fi exit 0 @@ -130,6 +138,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/pspell-config.1* %changelog +* Mon Aug 10 2009 Ivana Varekova - 12:0.60.6-7 +- fix installation with --excludedocs option (#515911) + * Fri Jul 24 2009 Fedora Release Engineering - 12:0.60.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild