+# TODO:
+# $ LC_ALL=C hunspell -d hu_HU foo
+# Hunspell has been compiled without Ncurses user interface.
Summary: Hunspell - a spell checker and morphological analyzer library
Summary(hu.UTF-8): Hunspell egy helyesírás-ellenőrző és morfológiai elemző könyvtár és program
Summary(pl.UTF-8): hunspell - biblioteka do sprawdzania pisowni i analizy morfologicznej
Name: hunspell
-Version: 1.2.8
-Release: 1
+Version: 1.3.2
+Release: 2
License: MPL v1.1 or GPL v2+ or LGPL v2.1+
Group: Libraries
-Source0: http://dl.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
-# Source0-md5: 1177af54a09e320d2c24015f29c3a93e
+Source0: http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
+# Source0-md5: 3121aaf3e13e5d88dfff13fb4a5f1ab8
Patch0: %{name}-as-needed.patch
URL: http://hunspell.sourceforge.net/
BuildRequires: autoconf >= 2.59
BuildRequires: automake
+BuildRequires: gettext-devel
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:1.5
BuildRequires: ncurses-devel >= 5.0
Requires: %{name} = %{version}-%{release}
%description tools
-This package contains munch and unmunch programs.
+This package contains hunspell utilities, including munch and unmunch.
%description tools -l pl.UTF-8
-Ten pakiet zawiera programy munch i unmunch.
+Ten pakiet zawiera narzędzia dla hunspella, w tym programy munch i
+unmunch.
%package devel
Summary: Files for developing with hunspell
%description devel
Includes and definitions for developing with hunspell.
+%description devel -l hu.UTF-8
+Header-fájlok és definíciók hunspell-lel való fejlesztéshez.
+
%description devel -l pl.UTF-8
Pliki nagłówkowe i definicje do programowania z użyciem hunspella.
%description static
Static hunspell library.
+%description static -l hu.UTF-8
+Hunspell statikus könyvtár.
+
%description static -l pl.UTF-8
Statyczna biblioteka hunspella.
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/libhunspell-1.2.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libhunspell.so.1
+ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libhunspell-1.3.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libhunspell.so.1
%find_lang %{name}
-rm -f $RPM_BUILD_ROOT%{_bindir}/example
-
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/hunspell
%attr(755,root,root) %{_bindir}/hunzip
%attr(755,root,root) %{_bindir}/hzip
-%attr(755,root,root) %{_libdir}/libhunspell-*.*.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhunspell-*.*.so.0
+%attr(755,root,root) %{_libdir}/libhunspell-1.3.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhunspell-1.3.so.0
%attr(755,root,root) %{_libdir}/libhunspell.so.1
%{_mandir}/man1/hunzip.1*
%{_mandir}/man1/hzip.1*
%files tools
%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/affixcompress
%attr(755,root,root) %{_bindir}/analyze
%attr(755,root,root) %{_bindir}/chmorph
+%attr(755,root,root) %{_bindir}/ispellaff2myspell
+%attr(755,root,root) %{_bindir}/makealias
%attr(755,root,root) %{_bindir}/munch
%attr(755,root,root) %{_bindir}/unmunch
+%attr(755,root,root) %{_bindir}/wordforms
+%attr(755,root,root) %{_bindir}/wordlist2hunspell
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libhunspell-*.*.so
-%{_libdir}/libhunspell-*.*.la
+%attr(755,root,root) %{_libdir}/libhunspell-1.3.so
+%{_libdir}/libhunspell-1.3.la
%{_libdir}/libparsers.a
-%{_includedir}/%{name}
-%{_includedir}/munch.h
-%{_includedir}/unmunch.h
+%{_includedir}/hunspell
%{_pkgconfigdir}/hunspell.pc
%{_mandir}/man3/hunspell.3*
%files static
%defattr(644,root,root,755)
-%{_libdir}/libhunspell-*.*.a
+%{_libdir}/libhunspell-1.3.a