[emacs] Check the presence of hunspell before checking for aspell (rhbz#713600)

Karel Klíč kklic at fedoraproject.org
Wed Nov 16 10:16:21 UTC 2011


commit 24eae4d152e010cc47f60def78728f25deb23eb6
Author: Karel Klic <kklic at redhat.com>
Date:   Wed Nov 16 11:16:12 2011 +0100

    Check the presence of hunspell before checking for aspell (rhbz#713600)

 emacs-spellchecker.patch |   15 +++++++++++++++
 emacs.spec               |    8 +++++++-
 2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/emacs-spellchecker.patch b/emacs-spellchecker.patch
new file mode 100644
index 0000000..e6b48d0
--- /dev/null
+++ b/emacs-spellchecker.patch
@@ -0,0 +1,15 @@
+diff -up emacs-23.3/lisp/textmodes/ispell.el.spellcheck emacs-23.3/lisp/textmodes/ispell.el
+--- emacs-23.3/lisp/textmodes/ispell.el.spellcheck	2011-11-16 10:54:57.363513864 +0100
++++ emacs-23.3/lisp/textmodes/ispell.el	2011-11-16 10:55:17.209577635 +0100
+@@ -348,9 +348,9 @@ Must be greater than 1."
+   :group 'ispell)
+ 
+ (defcustom ispell-program-name
+-  (or (locate-file "aspell"   exec-path exec-suffixes 'file-executable-p)
++  (or (locate-file "hunspell" exec-path exec-suffixes 'file-executable-p)
++      (locate-file "aspell"   exec-path exec-suffixes 'file-executable-p)
+       (locate-file "ispell"   exec-path exec-suffixes 'file-executable-p)
+-      (locate-file "hunspell" exec-path exec-suffixes 'file-executable-p)
+       "ispell")
+   "Program invoked by \\[ispell-word] and \\[ispell-region] commands."
+   :type 'string
diff --git a/emacs.spec b/emacs.spec
index 40ecaba..a5717b5 100644
--- a/emacs.spec
+++ b/emacs.spec
@@ -3,7 +3,7 @@ Summary: GNU Emacs text editor
 Name: emacs
 Epoch: 1
 Version: 23.3
-Release: 12%{?dist}
+Release: 13%{?dist}
 License: GPLv3+
 URL: http://www.gnu.org/software/emacs/
 Group: Applications/Editors
@@ -30,6 +30,8 @@ Patch4: emacs-23.1-xdg.patch
 # Fix rhbz#595546
 # Upstream: http://emacsbugs.donarmstrong.com/cgi/bugreport.cgi?bug=6158
 Patch6: emacs-23.2-hideshow-comment.patch
+# rhbz#713600
+Patch7: emacs-spellchecker.patch
 BuildRequires: atk-devel, cairo-devel, freetype-devel, fontconfig-devel, dbus-devel, giflib-devel, glibc-devel, gtk2-devel, libpng-devel
 BuildRequires: libjpeg-devel, libtiff-devel, libX11-devel, libXau-devel, libXdmcp-devel, libXrender-devel, libXt-devel
 BuildRequires: libXpm-devel, ncurses-devel, xorg-x11-proto-devel, zlib-devel
@@ -151,6 +153,7 @@ packages that add functionality to Emacs.
 %patch0 -p1 -b .glibc-open-macro
 %patch4 -p1 -b .xdg
 %patch6 -p0 -b .hideshow-comment
+%patch7 -p1 -b .spellchecker
 
 # Install site-lisp files
 cp %SOURCE7 %SOURCE10 site-lisp
@@ -430,6 +433,9 @@ update-desktop-database &> /dev/null || :
 %dir %{_datadir}/emacs/site-lisp/site-start.d
 
 %changelog
+* Wed Nov 16 2011 Karel Klíč <kklic at redhat.com> - 1:23.3-13
+- Check the presence of hunspell before checking for aspell (rhbz#713600)
+
 * Mon Nov 14 2011 Karel Klíč <kklic at redhat.com> - 1:23.3-12
 - Rebuild (rhbz#751154, rhbz#752936)
 


More information about the scm-commits mailing list