diff --git a/Parameter-h-correction.patch b/Parameter-h-correction.patch new file mode 100644 index 0000000..c4a8a0f --- /dev/null +++ b/Parameter-h-correction.patch @@ -0,0 +1,25 @@ +From 342825209d78399cfb5f1be72afc546aa4ba4d1a Mon Sep 17 00:00:00 2001 +From: zhangxianting +Date: Fri, 29 Mar 2024 15:45:52 +0800 +Subject: [PATCH] Parameter -h correction + +--- + src/enchant.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/enchant.c b/src/enchant.c +index 42151e8..41e545d 100644 +--- a/src/enchant.c ++++ b/src/enchant.c +@@ -428,7 +428,7 @@ int main (int argc, char ** argv) + #endif + + int optchar; +- while ((optchar = getopt (argc, argv, ":d:p:alvLmB")) != -1) { ++ while ((optchar = getopt (argc, argv, ":d:p:alvLmBh")) != -1) { + switch (optchar) { + case 'd': + dictionary = optarg; /* Emacs calls ispell with '-d dictionary'. */ +-- +2.33.0 + diff --git a/enchant2.spec b/enchant2.spec index d1aac64..429246e 100644 --- a/enchant2.spec +++ b/enchant2.spec @@ -1,12 +1,12 @@ Name: enchant2 Version: 2.6.7 -Release: 2 +Release: 3 Summary: Generic spell checking library License: LGPLv2+ URL: https://github.com/AbiWord/enchant Source0: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz Patch0: Add-with-hunspell-dir-parameters.patch - +Patch1: Parameter-h-correction.patch BuildRequires: automake autoconf libtool gcc-c++ glib2-devel aspell-devel hunspell-devel libvoikko-devel @@ -99,6 +99,9 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g; %doc %{_defaultdocdir}/%{name}/enchant-lsmod-2.html %changelog +* Wed Apr 3 2024 zhangxianting - 2.6.7-3 +- parament -h reture value be 0 + * Tue Apr 2 2024 liyanan - 2.6.7-2 - Add -with-hunspell-dir parameters