Summary: Hspell - a free Hebrew spell checker
Summary(pl): Hspell - wolnodostêpny program do kontroli pisowni hebrajskiej
Name: hspell
-Version: 0.8
+Version: 1.0
Release: 1
License: GPL
Group: Applications/Text
# Source0Download: http://ivrix.org.il/projects/spell-checker/download.html
Source0: http://ivrix.org.il/projects/spell-checker/%{name}-%{version}.tar.gz
-# Source0-md5: 67f402162bdb4f5e7b3099572de1342e
+# Source0-md5: 3e12fa383c2cfd430918d115f33f9841
URL: http://ivrix.org.il/projects/spell-checker/
+BuildRequires: awk
BuildRequires: rpm-perlprov
+BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
w wiêkszo¶ci zgodny ze spellem interfejs (podaj±cy listê b³êdnych s³ów
w tek¶cie wej¶ciowym), ale mo¿e tak¿e sugerowaæ poprawki (-c).
+%package devel
+Summary: Header files and static hspell library
+Summary(pl): Pliki nag³ówkowe i biblioteka statyczna hspell
+Group: Development/Libraries
+Requires: zlib-devel
+# doesn't require base (until shared library is made)
+
+%description devel
+Header files and static hspell (Hebrew SPELLer) library.
+
+%description devel -l pl
+Pliki nag³ówkowe i biblioteka statyczna hspell (do kontroli
+pisowni w jêzyku hebrajskim).
+
%prep
%setup -q
+sed -i -e 's|#!.*|#!/bin/awk -f|g' wzip
%build
%configure
%{__make} \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags} -DDICTIONARY_BASE=\\\"%{_datadir}/hebrew.wgz\\\"" \
+ CFLAGS="%{rpmcflags} -fPIC -DDICTIONARY_BASE=\\\"%{_datadir}/hebrew.wgz\\\"" \
LDFLAGS="%{rpmldflags}"
%install
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*
-%{_mandir}/man3/*
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libhspell.a
+%{_includedir}/*.h
+%{_mandir}/man3/hspell.3*