2008-02-19 04:36:30 +01:00
|
|
|
|
#
|
2008-07-18 23:53:46 +02:00
|
|
|
|
# spec file for package hunspell (Version 1.2.6)
|
2008-02-19 04:36:30 +01:00
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
|
#
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Hunspell - a spell checker and morphological analyzer library
|
|
|
|
|
|
|
|
|
|
Name: hunspell
|
2008-07-18 23:53:46 +02:00
|
|
|
|
Version: 1.2.6
|
2008-06-23 22:00:33 +02:00
|
|
|
|
Release: 1
|
2008-02-19 04:36:30 +01:00
|
|
|
|
License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
|
|
|
|
|
Group: System/Libraries
|
2008-07-09 18:50:24 +02:00
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2008-02-19 04:36:30 +01:00
|
|
|
|
Url: http://hunspell.sourceforge.net/
|
|
|
|
|
BuildRequires: autoconf >= 2.59
|
|
|
|
|
BuildRequires: ncurses-devel >= 5.0
|
|
|
|
|
BuildRequires: automake gcc-c++ libstdc++-devel libtool readline-devel
|
|
|
|
|
Recommends: %{name}-tools
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Hunspell is a spell checker and morphological analyzer library and
|
|
|
|
|
program designed for languages with rich morphology and complex word
|
|
|
|
|
compounding or character encoding. Hunspell interfaces: Ispell-like
|
|
|
|
|
terminal interface using Curses library, Ispell pipe interface,
|
|
|
|
|
OpenOffice.org UNO module.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
N<EFBFBD>meth L<EFBFBD>szl<EFBFBD> nemeth (at) OpenOffice.org
|
|
|
|
|
|
|
|
|
|
%package tools
|
2008-04-14 01:32:05 +02:00
|
|
|
|
License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
|
2008-02-19 04:36:30 +01:00
|
|
|
|
Summary: Hunspell tools
|
|
|
|
|
Group: Development/Libraries/Other
|
2008-02-19 14:10:57 +01:00
|
|
|
|
Requires: %{name} = %{version}
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
This package contains munch and unmunch programs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
N<EFBFBD>meth L<EFBFBD>szl<EFBFBD> nemeth (at) OpenOffice.org
|
|
|
|
|
|
|
|
|
|
%package devel
|
2008-04-14 01:32:05 +02:00
|
|
|
|
License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
|
2008-02-19 04:36:30 +01:00
|
|
|
|
Summary: Files for developing with hunspell
|
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: libstdc++-devel pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Includes and definitions for developing with hunspell.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
N<EFBFBD>meth L<EFBFBD>szl<EFBFBD> nemeth (at) OpenOffice.org
|
|
|
|
|
|
|
|
|
|
%package static
|
2008-04-14 01:32:05 +02:00
|
|
|
|
License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
|
2008-02-19 04:36:30 +01:00
|
|
|
|
Summary: Static hunspell library
|
|
|
|
|
Group: Development/Libraries/Other
|
2008-02-19 14:10:57 +01:00
|
|
|
|
Requires: %{name}-devel = %{version}
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
|
|
%description static
|
|
|
|
|
Static hunspell library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
N<EFBFBD>meth L<EFBFBD>szl<EFBFBD> nemeth (at) OpenOffice.org
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-06-23 22:00:33 +02:00
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
#%patch1
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2008-04-20 16:38:48 +02:00
|
|
|
|
cp /usr/share/gettext/config.rpath .
|
|
|
|
|
AUTOPOINT=true autoreconf -fi
|
2008-02-19 04:36:30 +01:00
|
|
|
|
export CPPFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses"
|
|
|
|
|
%configure \
|
|
|
|
|
--with-ui \
|
|
|
|
|
--with-readline
|
|
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/example
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
|
%doc README README.myspell AUTHORS AUTHORS.myspell COPYING THANKS license.hunspell license.myspell
|
|
|
|
|
%attr(755,root,root) %{_bindir}/hunspell
|
|
|
|
|
%attr(755,root,root) %{_libdir}/libhunspell*.so*
|
|
|
|
|
%exclude %{_libdir}/libhunspell*.so
|
|
|
|
|
%dir %{_mandir}/hu
|
|
|
|
|
%dir %{_mandir}/hu/man1
|
|
|
|
|
%dir %{_mandir}/hu/man4
|
|
|
|
|
%{_mandir}/man1/hunspell.1*
|
|
|
|
|
%{_mandir}/man4/hunspell.4*
|
2008-06-23 22:00:33 +02:00
|
|
|
|
%{_mandir}/man1/hunzip.1*
|
|
|
|
|
%{_mandir}/man1/hzip.1*
|
|
|
|
|
%{_mandir}/man3/hunspell.3*
|
2008-02-19 04:36:30 +01:00
|
|
|
|
%lang(hu) %{_mandir}/hu/man1/hunspell.1*
|
|
|
|
|
%lang(hu) %{_mandir}/hu/man4/hunspell.4*
|
|
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
|
%attr(755,root,root) %{_bindir}/analyze
|
|
|
|
|
%attr(755,root,root) %{_bindir}/chmorph
|
|
|
|
|
%attr(755,root,root) %{_bindir}/munch
|
|
|
|
|
%attr(755,root,root) %{_bindir}/unmunch
|
|
|
|
|
%attr(755,root,root) %{_bindir}/hunzip
|
|
|
|
|
%attr(755,root,root) %{_bindir}/hzip
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
|
%attr(755,root,root) %{_libdir}/libhunspell-*.so
|
|
|
|
|
%{_libdir}/libhunspell-*.la
|
|
|
|
|
%{_libdir}/libparsers.a
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_includedir}/munch.h
|
|
|
|
|
%{_includedir}/unmunch.h
|
|
|
|
|
#%{_pkgconfigdir}/hunspell.pc
|
|
|
|
|
%{_libdir}/pkgconfig/hunspell.pc
|
|
|
|
|
|
|
|
|
|
%files static
|
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
|
%{_libdir}/libhunspell-*.a
|
|
|
|
|
|
|
|
|
|
%changelog
|
2008-07-18 23:53:46 +02:00
|
|
|
|
* Tue Jul 15 2008 lmichnovic@suse.cz
|
|
|
|
|
- update to version 1.2.6
|
|
|
|
|
* affentry.cxx: fixes of the affix rule matching algorithm
|
|
|
|
|
(affected only the sk_SK dictionary from all OO.o dictionaries)
|
|
|
|
|
- fix dot pattern + accented letters matching (if not Unicode)
|
|
|
|
|
- word-length conditions work again
|
|
|
|
|
* tests/condition.*: extended test for the fix.
|
|
|
|
|
* hashmgr.cxx: load multiword expressions: spaces may be parts
|
|
|
|
|
of the dictionary words again (but spaces also work as
|
|
|
|
|
morphological field separators: word word2 -> "word word2",
|
|
|
|
|
word po:noun -> "word").
|
|
|
|
|
* man/hunspell.4: updated manual
|
|
|
|
|
* tools/hunspell.cxx: add iconv character conversion support to
|
|
|
|
|
stemming and morphological analysis
|
2008-07-09 18:50:24 +02:00
|
|
|
|
* Wed Jul 09 2008 lmichnovic@suse.cz
|
|
|
|
|
- update to version 1.2.5
|
|
|
|
|
* fix affix rule condition checking of en_GB dictionary, also
|
|
|
|
|
morphological analysis by dictionaries with two-level suffixes
|
2008-06-23 22:00:33 +02:00
|
|
|
|
* Wed Jun 18 2008 lmichnovic@suse.cz
|
|
|
|
|
- update to version 1.2.4-2
|
|
|
|
|
with fixed comparison of char* pointer with a string literal
|
|
|
|
|
* Tue Jun 17 2008 lmichnovic@suse.cz
|
|
|
|
|
- version update Hunspell 1.2.4
|
|
|
|
|
* add free_list() for C, C++ interfaces to deallocate suggestion
|
|
|
|
|
lists
|
|
|
|
|
- Hunspell 1.2.3
|
|
|
|
|
* extended XML interface to use morphological functions by
|
|
|
|
|
standard spell checking interface, spell() and suggest().
|
|
|
|
|
See hunspell.3 manual page.
|
|
|
|
|
* default dash suggestions for compound words: newword-> new word and new-word
|
|
|
|
|
* new manual pages: hunspell.3, hzip.1, hunzip.1.
|
|
|
|
|
* bug fixes
|
|
|
|
|
- obsoletes all previous patches
|
2008-05-10 00:12:35 +02:00
|
|
|
|
* Fri May 09 2008 aj@suse.de
|
|
|
|
|
- Add baselibs.conf.
|
2008-05-06 22:20:13 +02:00
|
|
|
|
* Tue May 06 2008 coolo@suse.de
|
|
|
|
|
- fix build
|
2008-04-25 16:05:27 +02:00
|
|
|
|
* Wed Apr 23 2008 lmichnovic@suse.cz
|
|
|
|
|
- fixed libdir and includedir in pkg-config file [bnc#382638]
|
|
|
|
|
(hunspell-pkgconfig_libdir.patch)
|
2008-04-20 16:38:48 +02:00
|
|
|
|
* Tue Apr 15 2008 schwab@suse.de
|
|
|
|
|
- Avoid libtool namespace clash.
|
2008-04-14 01:32:05 +02:00
|
|
|
|
* Sun Apr 13 2008 lmichnovic@suse.cz
|
|
|
|
|
- update to 1.2.2 final
|
|
|
|
|
* extended dictionary (dic file) support to use multiple base and
|
|
|
|
|
special dictionaries.
|
|
|
|
|
* new and improved options of command line hunspell:
|
|
|
|
|
-m: morphological analysis or flag debug mode (without affix
|
|
|
|
|
rule data it signs the flag of the affix rules)
|
|
|
|
|
-s: stemming mode
|
|
|
|
|
-D: list available dictionaries and search path
|
|
|
|
|
-d: support extra dictionaries by comma separated list.
|
|
|
|
|
* forbidding in personal dictionary (with asterisk, / signs
|
|
|
|
|
affixation)
|
|
|
|
|
* new affix compression tool "affixcompress": compression tool
|
|
|
|
|
for large (millions of words) dictionaries.
|
|
|
|
|
* improved manual
|
2008-02-19 14:10:57 +01:00
|
|
|
|
* Tue Feb 19 2008 lmichnovic@suse.cz
|
|
|
|
|
- no need to require %%release
|
2008-02-19 04:36:30 +01:00
|
|
|
|
* Thu Feb 07 2008 lmichnovic@suse.cz
|
|
|
|
|
- initial version 1.2.2 beta
|
|
|
|
|
- fixed uninitilized variable (*uninitialised.patch)
|
|
|
|
|
- fixed using function address instead of value
|
|
|
|
|
(*function_address.patch)
|