rebuild for hunspell 1.5.4

This commit is contained in:
Caolán McNamara 2016-12-13 13:08:15 +00:00
parent 3bd95c25d0
commit 2588d2890d
2 changed files with 4 additions and 18 deletions

View File

@ -1,7 +1,7 @@
Summary: An Enchanting Spell Checking Library
Name: enchant
Version: 1.6.0
Release: 14%{?dist}
Release: 15%{?dist}
Epoch: 1
Group: System Environment/Libraries
License: LGPLv2+
@ -14,8 +14,6 @@ BuildRequires: libvoikko-devel
BuildRequires: automake, libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Patch1: hunspell-1.4.0-has-no-limit.patch
%description
A library that wraps other spell checking backends.
@ -47,7 +45,6 @@ Libraries, headers, and support files necessary to compile applications using li
%prep
%setup -q
%patch1 -p1
%build
%configure --enable-myspell --with-myspell-dir=/usr/share/myspell --disable-static --disable-ispell --disable-hspell --disable-zemberek
@ -89,6 +86,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/enchant/*.la
rm -r $RPM_BUILD_ROOT
%changelog
* Tue Dec 13 2016 Caolán McNamara <caolanm@redhat.com> - 1:1.6.0-15
- rebuild for hunspell 1.5.4
* Mon Apr 18 2016 Caolán McNamara <caolanm@redhat.com> - 1:1.6.0-14
- rebuild for hunspell 1.4.0

View File

@ -1,14 +0,0 @@
diff -ru enchant-1.6.0-orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp
--- enchant-1.6.0-orig/src/myspell/myspell_checker.cpp 2016-04-18 12:25:00.094614256 +0100
+++ enchant-1.6.0/src/myspell/myspell_checker.cpp 2016-04-18 12:26:09.108569576 +0100
@@ -148,6 +148,10 @@
g_iconv_close(m_translate_out);
}
+#ifndef MAXWORDLEN
+# define MAXWORDLEN 100
+#endif
+
bool
MySpellChecker::checkWord(const char *utf8Word, size_t len)
{