156 lines
6.2 KiB
RPMSpec
156 lines
6.2 KiB
RPMSpec
Summary: A Hebrew spell checker
|
|
Name: hspell
|
|
Version: 1.0
|
|
Release: 10%{?dist}
|
|
URL: http://ivrix.org.il/projects/spell-checker/
|
|
Source: http://ivrix.org.il/projects/spell-checker/hspell-%{version}.tar.gz
|
|
# No version specified.
|
|
License: GPL+
|
|
Group: Applications/Text
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: zlib-devel
|
|
Obsoletes: hspell-fat
|
|
Provides: hspell-fat = %{version}-%{release}
|
|
Patch0: hspell-1.0.sharedlib.patch
|
|
|
|
%description
|
|
Hspell is a Hebrew SPELLer . It currently provides a mostly spell-like
|
|
interface (gives the list of wrong words in the input text), but can also
|
|
suggest corrections (-c). It also provides a true (yet incomplete)
|
|
morphological analizer (-l), that prints all known meanings of a Hebrew
|
|
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
|
|
Hspell הוא מאיית עברי, המספק (בינתיים) מנשק דמוי-spell - פולט רשימה של המילים
|
|
השגויות המופיעות בקלט. רשימת המילים שלנו נכבדת, אולם היא איננה שלמה עדיין - יש
|
|
מילים תקניות שאינן מוכרות והן מדווחות כשגיאות. הקפדנו מאוד על-מנת שמילים שהוא
|
|
*כן* מכיר יאויתו נכונה על-פי כללי האקדמיה העברית לכתיב חסר ניקוד )"כתיב מלא"(.
|
|
כמו כן, Hspell מספק (-l) מנתח מורפולוגי אמתי (אם-כי לא שלם) אשר מדפיס את כל
|
|
המשמעויות האפשריות של מחרוזת אותיות עברית.
|
|
|
|
%package devel
|
|
Summary: Library and include files for Hspell, the hebrew spell checker
|
|
Group: Applications/Text
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Library and include files for applications that want to use Hspell.
|
|
|
|
%description -l he devel
|
|
ספרייה וקובצי כותרת עבור יישומים שרוצים להשתמש ב-Hspell.
|
|
|
|
%package -n hunspell-he
|
|
Summary: Hebrew hunspell dictionaries
|
|
Group: Applications/Text
|
|
Requires: hunspell
|
|
|
|
%description -n hunspell-he
|
|
Hebrew hunspell dictionaries.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -p1 -b .sharedlib.patch
|
|
sed -i -e '/^\s\+strip\s/d' Makefile.in
|
|
sed -i -e 's/gzip/gzip -n/g' Makefile.in
|
|
|
|
%build
|
|
%configure --enable-fatverb --enable-linginfo
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export PATH=$PATH:.
|
|
make myspell
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make DESTDIR=%{buildroot} install
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libhspell.a
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
cp -p 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 he.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.aff
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE README WHATSNEW COPYING
|
|
%{_bindir}/hspell
|
|
%{_bindir}/hspell-i
|
|
%{_bindir}/multispell
|
|
%{_libdir}/libhspell.so.0
|
|
%{_mandir}/man1/hspell.1*
|
|
%{_datadir}/hspell/
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*.h
|
|
%{_libdir}/libhspell.so
|
|
%{_mandir}/man3/hspell.3*
|
|
|
|
%files -n hunspell-he
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
%{_datadir}/myspell/*
|
|
|
|
%changelog
|
|
* Thu Jul 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-10
|
|
- fix license tag
|
|
|
|
* Wed May 14 2008 Caolan McNamara <caolanm@redhat.com> - 1.0-9
|
|
- Resolves: rhbz#313231 build hspell.so instead of a .a
|
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-8
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Tue May 22 2007 Dan Kenigsberg <danken@cs.technion.ac.il> 1.0-7
|
|
- Move the hunspell-he dictionaries into hspell package (Bug #240696).
|
|
Mostly applying Caolan McNamara's patch #155078.
|
|
* Sun Feb 11 2007 Dan Kenigsberg <danken@cs.technion.ac.il> 1.0-6
|
|
- Use gzip -n to exclude MTIME from compressed data and resolve bug #228171
|
|
* Tue Sep 11 2006 Dan Kenigsberg <danken@cs.technion.ac.il> 1.0-5
|
|
- Rebuild for Fedora Extras 6
|
|
* Sun Jul 9 2006 Dan Kenigsberg <danken@cs.technion.ac.il> 1.0-4
|
|
- bump version to mend upgrade path. Bug #197125
|
|
* Sat May 20 2006 Dan Kenigsberg <danken@cs.technion.ac.il> 1.0-3
|
|
- do not strip the binary, create useful defuginfo package (Bug #192437).
|
|
* Sun May 15 2006 Dan Kenigsberg <danken@cs.technion.ac.il> 1.0-2
|
|
- new upstream release.
|
|
- Hebrew description converted to utf8.
|
|
* Tue Feb 28 2006 Dan Kenigsberg <danken@cs.technion.ac.il> 0.9-7
|
|
- Rebuild for Fedora Extras 5
|
|
* Mon Sep 26 2005 Dan Kenigsberg <danken@cs.technion.ac.il> 0.9-6
|
|
- Add the text of the GPL to the binary package. It seems that I'll do anything
|
|
to make my sponsor Tom happy.
|
|
* Thu Sep 23 2005 Dan Kenigsberg <danken@cs.technion.ac.il> 0.9-5
|
|
- According to Tom's request, distribute the fat version.
|
|
- Add short Hebrew description to the devel package.
|
|
* Thu Sep 20 2005 Dan Kenigsberg <danken@cs.technion.ac.il> 0.9-4
|
|
- Distribute the "slim" flavor, as I suspect it is better suited for the casual
|
|
user (even though I personally enjoy the chubby morphological analizer).
|
|
* Mon Sep 19 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9-3
|
|
- minor spec file cleanups, eliminate "fat" variant
|
|
* Thu Sep 15 2005 Dan Kenigsberg <danken@cs.technion.ac.il> 0.9-2
|
|
- version 0.9, some magic to silence rpmlint
|
|
* Fri Jun 4 2004 Dan Kenigsberg <danken@cs.technion.ac.il> 0.8-1
|
|
- Some cleanups, and a devel package
|
|
* Fri Dec 20 2003 Dan Kenigsberg <danken@cs.technion.ac.il> 0.7-1
|
|
- Changes for version 0.7
|
|
* Tue Jul 29 2003 Dan Kenigsberg <danken@cs.technion.ac.il> 0.6-1
|
|
- Tiny changes for the C frontend
|
|
* Fri May 2 2003 Dan Kenigsberg <danken@cs.technion.ac.il> 0.5-1
|
|
- create the "fat" variant
|
|
* Mon Feb 17 2003 Dan Kenigsberg <danken@cs.technion.ac.il> 0.3-2
|
|
- The release includes only the compressed database.
|
|
- Added signature, and some other minor changes.
|
|
* Sun Jan 5 2003 Tzafrir Cohen <tzafrir@technion.ac.il> 0.2-1
|
|
- Initial build.
|