rebuild for hunspell 1.4.0

This commit is contained in:
Caolán McNamara 2016-04-18 12:29:48 +01:00
parent 1a1123daff
commit 3bd95c25d0
2 changed files with 21 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Summary: An Enchanting Spell Checking Library
Name: enchant
Version: 1.6.0
Release: 13%{?dist}
Release: 14%{?dist}
Epoch: 1
Group: System Environment/Libraries
License: LGPLv2+
@ -14,6 +14,8 @@ 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.
@ -45,6 +47,7 @@ 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
@ -86,6 +89,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/enchant/*.la
rm -r $RPM_BUILD_ROOT
%changelog
* Mon Apr 18 2016 Caolán McNamara <caolanm@redhat.com> - 1:1.6.0-14
- rebuild for hunspell 1.4.0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.6.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

View File

@ -0,0 +1,14 @@
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)
{