From c5bdb024f503ab68b73a8a3927161ff03cc24fa6 Mon Sep 17 00:00:00 2001 From: traffic_millions Date: Tue, 25 Feb 2020 21:13:40 +0800 Subject: [PATCH] fix build err --- hunspell-en-fixbuild-err.patch | 24 ++++++++++++++++++++++++ hunspell-en.spec | 10 +++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 hunspell-en-fixbuild-err.patch diff --git a/hunspell-en-fixbuild-err.patch b/hunspell-en-fixbuild-err.patch new file mode 100644 index 0000000..001d52c --- /dev/null +++ b/hunspell-en-fixbuild-err.patch @@ -0,0 +1,24 @@ +From 7c24bdae102853ca3deebe2ac47daf4fba4003b4 Mon Sep 17 00:00:00 2001 +From: traffic_millions +Date: Tue, 25 Feb 2020 20:54:33 +0800 +Subject: [PATCH] hunspell-en: fix build err + +Signed-off-by: traffic_millions +--- + scowl/src/deaccent.hh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scowl/src/deaccent.hh b/scowl/src/deaccent.hh +index c670005..1419706 100644 +--- a/scowl/src/deaccent.hh ++++ b/scowl/src/deaccent.hh +@@ -1,5 +1,5 @@ + +-static const char deaccent_lookup[256] = { ++static const unsigned char deaccent_lookup[256] = { + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, +-- +1.8.3.1 + diff --git a/hunspell-en.spec b/hunspell-en.spec index 07cf51e..b74bdaa 100644 --- a/hunspell-en.spec +++ b/hunspell-en.spec @@ -1,11 +1,13 @@ Name: hunspell-en Version: 0.201910.06 -Release: 1 +Release: 2 Summary: English hunspell dictionaries License: LGPLv2+ and LGPLv2 and BSD URL: https://wordlist.sourceforge.net/ Source0: https://github.com/en-wl/wordlist/archive/rel-2019.10.06.tar.gz +Patch0001: hunspell-en-fixbuild-err.patch + BuildArch: noarch BuildRequires: git aspell zip dos2unix perl-Getopt-Long gcc-c++ Requires: hunspell @@ -61,6 +63,12 @@ popd %doc scowl/speller/aspell/doc/ChangeLog %changelog +* Tue Feb 25 2020 xiaoweiwei - 0.201910.06-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: fix build err + * Wed Jan 8 2020 songnannan - 0.201910.06-1 - Type:bugfix - ID:NA