parament -h reture value be 0
(cherry picked from commit 23c7a540abe81f77e7938e0bb164efe7f0453d3e)
This commit is contained in:
parent
82cc8e532f
commit
29cd1b8f7a
25
Parameter-h-correction.patch
Normal file
25
Parameter-h-correction.patch
Normal 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
|
||||||
|
|
||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user