!32 [sync] PR-30: parament -h reture value be 0

From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2024-04-25 06:10:45 +00:00 committed by Gitee
commit 1ee66a9041
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From 342825209d78399cfb5f1be72afc546aa4ba4d1a Mon Sep 17 00:00:00 2001
From: zhangxianting <zhangxianting@uniontech.com>
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

View File

@ -1,12 +1,12 @@
Name: enchant2 Name: enchant2
Version: 2.6.7 Version: 2.6.7
Release: 2 Release: 3
Summary: Generic spell checking library Summary: Generic spell checking library
License: LGPLv2+ License: LGPLv2+
URL: https://github.com/AbiWord/enchant URL: https://github.com/AbiWord/enchant
Source0: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz Source0: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
Patch0: Add-with-hunspell-dir-parameters.patch 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 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 %doc %{_defaultdocdir}/%{name}/enchant-lsmod-2.html
%changelog %changelog
* Wed Apr 3 2024 zhangxianting <zhangxianting@uniontech.com> - 2.6.7-3
- parament -h reture value be 0
* Tue Apr 2 2024 liyanan <liyanan61@h-partners.com> - 2.6.7-2 * Tue Apr 2 2024 liyanan <liyanan61@h-partners.com> - 2.6.7-2
- Add -with-hunspell-dir parameters - Add -with-hunspell-dir parameters