diff --git a/enchant.spec b/enchant.spec index 6cb2c00..fa890d5 100644 --- a/enchant.spec +++ b/enchant.spec @@ -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 - 1:1.6.0-14 +- rebuild for hunspell 1.4.0 + * Wed Feb 03 2016 Fedora Release Engineering - 1:1.6.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/hunspell-1.4.0-has-no-limit.patch b/hunspell-1.4.0-has-no-limit.patch new file mode 100644 index 0000000..0ecdb24 --- /dev/null +++ b/hunspell-1.4.0-has-no-limit.patch @@ -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) + {