2024-01-05 23:43:28 +01:00
|
|
|
Name: hspell
|
2024-01-05 23:43:28 +01:00
|
|
|
Version: 1.3
|
2024-01-05 23:43:28 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A Hebrew spell checker
|
|
|
|
Group: System/Internationalization
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
|
|
URL: http://hspell.ivrix.org.il/
|
|
|
|
Source: http://hspell.ivrix.org.il/hspell-%{version}.tar.gz
|
|
|
|
Patch0: hspell-1.0.sharedlib.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libz-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: lib%{name} = %{version}-%{release}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Hspell is a Hebrew Spell checker. 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.
|
|
|
|
Hspell was written by Nadav Har'El and Dan Kenigsberg.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Summary: Library for {name}, the hebrew spell checker
|
|
|
|
Group: System/Internationalization
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
Library for {name}, the hebrew spell checker.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Summary: Static library and include files for %{name}, the hebrew spell checker
|
|
|
|
Group: System/Internationalization
|
|
|
|
Requires: lib%{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
Static library and include files for applications that want to use %{name}.
|
|
|
|
|
|
|
|
%package -n hunspell-he
|
|
|
|
Summary: Hebrew hunspell dictionaries
|
|
|
|
Group: System/Internationalization
|
|
|
|
Requires: hunspell
|
|
|
|
|
|
|
|
%description -n hunspell-he
|
|
|
|
Hebrew hunspell dictionaries.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch0 -p1
|
|
|
|
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 \
|
|
|
|
--enable-shared
|
|
|
|
|
|
|
|
%make -j1
|
|
|
|
#CFLAGS="${CFLAGS:-%optflags}"
|
|
|
|
|
|
|
|
#export PATH=$PATH:.
|
|
|
|
make hunspell
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/myspell
|
|
|
|
cp -p he.dic %{buildroot}%{_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 %{buildroot}%{_datadir}/myspell/he_IL.aff
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/hspell
|
|
|
|
%{_bindir}/hspell-i
|
|
|
|
%{_bindir}/multispell
|
|
|
|
%{_mandir}/man1/hspell.1.gz
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libhspell.so.0
|
|
|
|
%{_datadir}/hspell/hebrew.wgz
|
|
|
|
%{_datadir}/hspell/hebrew.wgz.hints
|
|
|
|
%{_datadir}/hspell/hebrew.wgz.prefixes
|
|
|
|
%{_datadir}/hspell/hebrew.wgz.sizes
|
|
|
|
%{_datadir}/hspell/hebrew.wgz.desc
|
|
|
|
%{_datadir}/hspell/hebrew.wgz.stems
|
|
|
|
%doc COPYING README WHATSNEW
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/libhspell.a
|
|
|
|
%{_libdir}/libhspell.so
|
|
|
|
%{_mandir}/man3/hspell.3.gz
|
|
|
|
|
|
|
|
%files -n hunspell-he
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/myspell/he_IL.aff
|
|
|
|
%{_datadir}/myspell/he_IL.dic
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:43:28 +01:00
|
|
|
* Mon Dec 21 2015 Automatic Build System <autodist@mambasoft.it> 1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:43:28 +01:00
|
|
|
* Thu Aug 30 2012 Automatic Build System <autodist@mambasoft.it> 1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Feb 01 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1-1mamba
|
|
|
|
- update to 1.1
|
|
|
|
- libhspell: remove requirement for hspell
|
|
|
|
- move dictionary files from hspell to libhspell
|
|
|
|
|
|
|
|
* Tue Nov 04 2008 gil <puntogil@libero.it> 1.0-1mamba
|
|
|
|
- package created by autospec
|