take locale for default dictionary

This commit is contained in:
Caolan McNamara 2006-11-29 19:52:35 +00:00
parent 85c4bdbda7
commit 3e5b8c604b
2 changed files with 8 additions and 2 deletions

View File

@ -12,7 +12,7 @@
+ else {
+ int len = strlen(dicname);
+ for (int i = 0; i < len; ++i) {
+ if (dicname[i] == '_') && (i+2 < len) {
+ if ((dicname[i] == '_') && (i+2 < len)) {
+ dicname[i+2] = 0;
+ break;
+ }

View File

@ -1,7 +1,7 @@
Name: hunspell
Summary: Hunspell is a spell checker and morphological analyzer library
Version: 1.1.4
Release: 1%{?dist}
Release: 2%{?dist}
Source: %{name}-%{version}.tar.gz
Group: System Environment/Libraries
URL: http://hunspell.sourceforge.net/
@ -9,6 +9,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
License: LGPL
BuildRequires: libtool
Patch0: hunspell-1.1.4-sharedlibs.patch
Patch1: hunspell-1.1.4-defaultdictfromlang.patch
%description
Hunspell is a spell checker and morphological analyzer library and program
@ -27,6 +28,7 @@ Includes and definitions for developing with hunspell
%prep
%setup -q
%patch0 -p1 -b .sharedlibs.patch
%patch1 -p1 -b .defaultdictfromlang.patch
%build
libtoolize --automake --force
@ -77,5 +79,9 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/unmunch
%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
- initial version