* Thu Dec 31 2009 Dan Kenigsberg <danken@cs.technion.ac.il> - 1.1-1
- Rebase to upstream version 1.1
This commit is contained in:
parent
b037699699
commit
fce2e08f70
71
hspell.spec
71
hspell.spec
@ -1,38 +1,25 @@
|
|||||||
Summary: A Hebrew spell checker
|
Summary: A Hebrew spell checker
|
||||||
Name: hspell
|
Name: hspell
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Release: 13%{?dist}
|
Release: 1%{?dist}
|
||||||
URL: http://ivrix.org.il/projects/spell-checker/
|
URL: http://hspell.ivrix.org.il
|
||||||
Source: http://ivrix.org.il/projects/spell-checker/hspell-%{version}.tar.gz
|
Source: http://hspell.ivrix.org.il/hspell-%{version}.tar.gz
|
||||||
# No version specified.
|
License: GPLv2
|
||||||
License: GPL+
|
|
||||||
Group: Applications/Text
|
Group: Applications/Text
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
Obsoletes: hspell-fat
|
|
||||||
Provides: hspell-fat = %{version}-%{release}
|
|
||||||
Patch0: hspell-1.0.sharedlib.patch
|
Patch0: hspell-1.0.sharedlib.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hspell is a Hebrew SPELLer . It currently provides a mostly spell-like
|
Hspell is a Hebrew SPELLer and morphological analizer. It provides a mostly
|
||||||
interface (gives the list of wrong words in the input text), but can also
|
spell-like interface (gives the list of wrong words in the input text), but can
|
||||||
suggest corrections (-c). It also provides a true (yet incomplete)
|
also suggest corrections (-c). It also provides a true (yet incomplete)
|
||||||
morphological analizer (-l), that prints all known meanings of a Hebrew
|
morphological analizer (-l), that prints all known meanings of a Hebrew string.
|
||||||
string.
|
|
||||||
|
|
||||||
On typical documents Hspell recognizes the majority of correct words. However,
|
|
||||||
users must take into account that it still will not recognize *all* the correct
|
|
||||||
words; The dictionary is still not complete, and this situation will continue
|
|
||||||
to improve in the next releases. On the other hand, barring bugs Hspell should
|
|
||||||
not recognize incorrect words - extreme attention has been given to the
|
|
||||||
correctness and consistency of the dictionary.
|
|
||||||
|
|
||||||
%description -l he
|
%description -l he
|
||||||
Hspell הוא מאיית עברי, המספק (בינתיים) מנשק דמוי-spell - פולט רשימה של המילים
|
Hspell הוא מאיית ומנתח צורני עברי, המספק מנשק דמוי-spell - פולט רשימה של המילים
|
||||||
השגויות המופיעות בקלט. רשימת המילים שלנו נכבדת, אולם היא איננה שלמה עדיין - יש
|
השגויות המופיעות בקלט. Hspell מקפיד מאוד כללי האקדמיה העברית לכתיב חסר ניקוד
|
||||||
מילים תקניות שאינן מוכרות והן מדווחות כשגיאות. הקפדנו מאוד על-מנת שמילים שהוא
|
)"כתיב מלא"(. כמו כן, Hspell מספק (-l) מנתח מורפולוגי אשר מדפיס את כל
|
||||||
*כן* מכיר יאויתו נכונה על-פי כללי האקדמיה העברית לכתיב חסר ניקוד )"כתיב מלא"(.
|
|
||||||
כמו כן, Hspell מספק (-l) מנתח מורפולוגי אמתי (אם-כי לא שלם) אשר מדפיס את כל
|
|
||||||
המשמעויות האפשריות של מחרוזת אותיות עברית.
|
המשמעויות האפשריות של מחרוזת אותיות עברית.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
@ -57,15 +44,25 @@ Hebrew hunspell dictionaries.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .sharedlib.patch
|
%patch0 -p1 -b .sharedlib.patch
|
||||||
sed -i -e '/^\s\+strip\s/d' Makefile.in
|
/usr/bin/iconv -f hebrew -t utf8 -o WHATSNEW WHATSNEW
|
||||||
sed -i -e 's/gzip/gzip -n/g' Makefile.in
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-fatverb --enable-linginfo
|
%configure --enable-fatverb --enable-linginfo
|
||||||
make CFLAGS="$RPM_OPT_FLAGS"
|
make CFLAGS="$RPM_OPT_FLAGS" STRIP=:
|
||||||
|
make hunspell
|
||||||
export PATH=$PATH:.
|
cat >> hunspell/new_he.aff << EOF
|
||||||
make myspell
|
MAP 10
|
||||||
|
MAP ךכח
|
||||||
|
MAP םמ
|
||||||
|
MAP ןנ
|
||||||
|
MAP ףפ
|
||||||
|
MAP ץצ
|
||||||
|
MAP כק
|
||||||
|
MAP אע # for English
|
||||||
|
MAP גה # for Russian
|
||||||
|
MAP צס # for Arabic
|
||||||
|
MAP חכר # for French
|
||||||
|
EOF
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -73,9 +70,8 @@ make DESTDIR=%{buildroot} install
|
|||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libhspell.a
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libhspell.a
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||||
cp -p he.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.dic
|
cp -p hunspell/new_he.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.dic
|
||||||
echo -e "WORDCHARS \0340\0341\0342\0343\0344\0345\0346\0347\0350\0351\0352\0353\0354\0355\0356\0357\0360\0361\0362\0363\0364\0365\0366\0367\0370\0371\0372\042\047" >> he.aff
|
cp -p hunspell/new_he.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.aff
|
||||||
cp -p he.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.aff
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -101,7 +97,14 @@ rm -rf %{buildroot}
|
|||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%{_datadir}/myspell/*
|
%{_datadir}/myspell/*
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 31 2009 Dan Kenigsberg <danken@cs.technion.ac.il> - 1.1-1
|
||||||
|
- Rebase to upstream version 1.1
|
||||||
|
|
||||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-13
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-13
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user