diff --git a/enchant-hunspell-1.4.0.patch b/enchant-hunspell-1.4.0.patch new file mode 100644 index 0000000..60f1ef6 --- /dev/null +++ b/enchant-hunspell-1.4.0.patch @@ -0,0 +1,15 @@ +Index: enchant-1.6.0/src/myspell/myspell_checker.cpp +=================================================================== +--- enchant-1.6.0.orig/src/myspell/myspell_checker.cpp ++++ enchant-1.6.0/src/myspell/myspell_checker.cpp +@@ -148,6 +148,10 @@ MySpellChecker::~MySpellChecker() + g_iconv_close(m_translate_out); + } + ++#ifndef MAXWORDLEN ++# define MAXWORDLEN 100 ++#endif ++ + bool + MySpellChecker::checkWord(const char *utf8Word, size_t len) + { diff --git a/enchant.changes b/enchant.changes index b9f9eef..ade61f1 100644 --- a/enchant.changes +++ b/enchant.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 2 06:51:04 UTC 2016 - dimstar@opensuse.org + +- Add enchant-hunspell-1.4.0.patch: Fix build against + hunspell 1.4.0, where MAXWORDLEN is no longer exported. + ------------------------------------------------------------------- Tue Mar 26 13:04:28 UTC 2013 - mmeister@suse.com diff --git a/enchant.spec b/enchant.spec index e5b1ce4..7abc041 100644 --- a/enchant.spec +++ b/enchant.spec @@ -1,7 +1,7 @@ # # spec file for package enchant # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,8 @@ Group: Productivity/Text/Spell Url: http://www.abisource.com/ Source: http://www.abisource.com/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz Source1: baselibs.conf +# PATCH-FIX-UPSTREAM enchant-hunspell-1.4.0.patch dimstar@opensuse.org -- Fix build against hunspell 1.4.0, where WORDMAXLEN is no longer exported +Patch0: enchant-hunspell-1.4.0.patch BuildRequires: aspell-devel BuildRequires: dbus-1-glib-devel BuildRequires: gcc-c++ @@ -96,6 +98,7 @@ to develop applications that require these. %prep %setup -q +%patch0 -p1 %build %configure --with-pic \