take locale for default dictionary
This commit is contained in:
parent
85c4bdbda7
commit
3e5b8c604b
@ -12,7 +12,7 @@
|
|||||||
+ else {
|
+ else {
|
||||||
+ int len = strlen(dicname);
|
+ int len = strlen(dicname);
|
||||||
+ for (int i = 0; i < len; ++i) {
|
+ for (int i = 0; i < len; ++i) {
|
||||||
+ if (dicname[i] == '_') && (i+2 < len) {
|
+ if ((dicname[i] == '_') && (i+2 < len)) {
|
||||||
+ dicname[i+2] = 0;
|
+ dicname[i+2] = 0;
|
||||||
+ break;
|
+ break;
|
||||||
+ }
|
+ }
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Name: hunspell
|
Name: hunspell
|
||||||
Summary: Hunspell is a spell checker and morphological analyzer library
|
Summary: Hunspell is a spell checker and morphological analyzer library
|
||||||
Version: 1.1.4
|
Version: 1.1.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://hunspell.sourceforge.net/
|
URL: http://hunspell.sourceforge.net/
|
||||||
@ -9,6 +9,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|||||||
License: LGPL
|
License: LGPL
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
Patch0: hunspell-1.1.4-sharedlibs.patch
|
Patch0: hunspell-1.1.4-sharedlibs.patch
|
||||||
|
Patch1: hunspell-1.1.4-defaultdictfromlang.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hunspell is a spell checker and morphological analyzer library and program
|
Hunspell is a spell checker and morphological analyzer library and program
|
||||||
@ -27,6 +28,7 @@ Includes and definitions for developing with hunspell
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .sharedlibs.patch
|
%patch0 -p1 -b .sharedlibs.patch
|
||||||
|
%patch1 -p1 -b .defaultdictfromlang.patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
libtoolize --automake --force
|
libtoolize --automake --force
|
||||||
@ -77,5 +79,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_bindir}/unmunch
|
%{_bindir}/unmunch
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 29 2006 Caolan McNamara <caolanm@redhat.com> - 1.1.4-2
|
||||||
|
- add hunspell-1.1.4-defaultdictfromlang.patch to take locale as default
|
||||||
|
dictionary
|
||||||
|
|
||||||
* Wed Oct 25 2006 Caolan McNamara <caolanm@redhat.com> - 1.1.4-1
|
* Wed Oct 25 2006 Caolan McNamara <caolanm@redhat.com> - 1.1.4-1
|
||||||
- initial version
|
- initial version
|
||||||
|
Loading…
Reference in New Issue
Block a user