with both c and obj-c sources within single library autotools fail to
decide on proper --tag= during linking and ultimately none is added
resulting in an error. clear things up by dropping applespell logic
never activated on linux anyway.
--- /dev/null
+--- enchant-1.6.1/src/Makefile.am.orig 2017-04-04 23:13:57.000000000 +0200
++++ enchant-1.6.1/src/Makefile.am 2023-04-02 00:02:38.807237432 +0200
+@@ -19,14 +19,6 @@
+ libenchant_includedir = $(includedir)/enchant
+ libenchant_include_HEADERS = enchant.h enchant-provider.h enchant++.h
+
+-if WITH_APPLESPELL
+-AM_CPPFLAGS += @APPLESPELL_CFLAGS@
+-libenchant_la_LIBADD += @APPLESPELL_LIBS@
+-libenchant_la_LDFLAGS += @APPLESPELL_LDFLAGS@
+-libenchant_la_SOURCES += enchant_cocoa.m enchant_cocoa.h
+-libenchant_include_HEADERS += enchant_cocoa.h
+-endif
+-
+ EXTRA_DIST=enchant.i
+
+ if OS_WIN32
# Source0-md5: 4110afe7d7010acbb5c69dd1214fa936
Patch0: hunspell-1.4.patch
Patch1: %{name}-sh.patch
+Patch2: disable-applespell.patch
URL: https://www.abisource.com/projects/enchant/
BuildRequires: aspell-devel >= 2:0.50.0
BuildRequires: autoconf >= 2.50
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}