Accepting request 393266 from GNOME:Factory
1 OBS-URL: https://build.opensuse.org/request/show/393266 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/enchant?expand=0&rev=27
This commit is contained in:
commit
93f5cca549
15
enchant-hunspell-1.4.0.patch
Normal file
15
enchant-hunspell-1.4.0.patch
Normal file
@ -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)
|
||||
{
|
@ -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
|
||||
|
||||
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user