.gear/rules | 2 + .gear/tags/list | 1 + hunspell.pc.in | 2 +- hunspell.spec | 137 +++++++++++++++++++++++++++++++++++++++++++++++ src/hunspell/Makefile.am | 12 ++--- src/parsers/Makefile.am | 4 +- src/tools/Makefile.am | 10 ++-- 7 files changed, 154 insertions(+), 14 deletions(-) diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..4b0460c --- /dev/null +++ b/.gear/rules @@ -0,0 +1,2 @@ +tar: v@version@:. +diff: v@version@:. . diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..0300c73 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +2969be996acad84b91ab3875b1816636fe61a40e v1.7.2 diff --git a/hunspell.pc.in b/hunspell.pc.in index 7c9e287..1ef972c 100644 --- a/hunspell.pc.in +++ b/hunspell.pc.in @@ -6,5 +6,5 @@ includedir=@includedir@ Name: hunspell Description: Hunspell spellchecking library Version: @VERSION@ -Libs: -L${libdir} -lhunspell-@HUNSPELL_VERSION_MAJOR@.@HUNSPELL_VERSION_MINOR@ +Libs: -L${libdir} -lhunspell Cflags: -I${includedir}/hunspell diff --git a/hunspell.spec b/hunspell.spec new file mode 100644 index 0000000..26375a7 --- /dev/null +++ b/hunspell.spec @@ -0,0 +1,137 @@ +Name: hunspell +Summary: Hunspell is a spell checker and morphological analyzer +Version: 1.7.2 +Release: alt1 +License: LGPL +Group: Text tools +URL: http://hunspell.sourceforge.net/ +Packager: Valery Inozemtsev + +Source: %name-%version.tar +Patch: %name-%version-%release.patch + +BuildRequires: gcc-c++ libncursesw-devel libreadline-devel + +%description +Hunspell is a spell checker and morphological analyzer 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. + +%package -n lib%name +Summary: Hunspell is a spell checker and morphological analyzer library +Group: System/Libraries + +%description -n lib%name +Hunspell is a spell checker and morphological analyzer library designed for +languages with rich morphology and complex word compounding or character encoding. + +%package -n lib%name-devel +Summary: Files for developing with hunspell +Group: Development/C++ + +%description -n lib%name-devel +Includes and definitions for developing with hunspell + +%package utils +Summary: Morphological utilities provided with hunspell +Group: Text tools + +%description utils +Morphological utilities and dictionary formatr converters provided with +hunspell. + +%prep +%setup -q +%patch -p1 + +%build +%autoreconf +%configure \ + --disable-static \ + --with-ui \ + --with-readline +%make_build + +%install +%make DESTDIR=%buildroot install + +mkdir -p %buildroot%_datadir/myspell + +%find_lang %name + +%files -f %name.lang +%doc AUTHORS license.hunspell license.myspell NEWS THANKS +%_bindir/%name +%_man1dir/%name.1* +%_man5dir/%name.5* + +%files -n lib%name +%_libdir/*.so.* +%_datadir/myspell + +%files -n lib%name-devel +%_includedir/%name +%_bindir/*munch +%_bindir/h*zip +%_libdir/*.so +%_pkgconfigdir/hunspell.pc +%_man1dir/h*zip.1* +%_man3dir/%name.3* + +%files utils +%_bindir/analyze +%_bindir/affixcompress +%_bindir/chmorph +%_bindir/ispellaff2myspell +%_bindir/makealias +%_bindir/wordforms +%_bindir/wordlist2hunspell + +%changelog +* Wed Aug 09 2023 Valery Inozemtsev 1.7.2-alt1 +- 1.7.2 + +* Tue Nov 27 2018 Valery Inozemtsev 1.7.0-alt1 +- 1.7.0 + +* Tue Sep 11 2018 Valery Inozemtsev 1.6.2-alt1 +- 1.6.2 (closes: #35377) + +* Mon Feb 07 2011 Valery Inozemtsev 1.3.1-alt1 +- 1.3.1 + +* Sun Jan 30 2011 Valery Inozemtsev 1.2.14-alt1 +- 1.2.14 + +* Sat Oct 23 2010 Valery Inozemtsev 1.2.12-alt2 +- rebuild + +* Thu Sep 09 2010 Valery Inozemtsev 1.2.12-alt1 +- 1.2.12 +- new subpackage: hunspell-utils with morpholgical analyzer + and dictionary format converters (Kirill Maslinsky) + +* Mon May 03 2010 Valery Inozemtsev 1.2.10-alt1 +- 1.2.10 + +* Wed Feb 11 2009 Valery Inozemtsev 1.2.8-alt1 +- 1.2.8 + +* Sat Nov 22 2008 Valery Inozemtsev 1.2.7-alt3 +- removed obsolete %%post_ldconfig/%%postun_ldconfig calls + +* Sat Nov 08 2008 Valery Inozemtsev 1.2.7-alt2 +- fixed dictionaries path + +* Wed Sep 03 2008 Valery Inozemtsev 1.2.7-alt1 +- 1.2.7 + +* Sat Dec 29 2007 Valery Inozemtsev 1.2.1-alt1 +- 1.2.1 + +* Sat Aug 25 2007 Valery Inozemtsev 1.1.10-alt1 +- 1.1.10 + +* Tue Jul 24 2007 Valery Inozemtsev 1.1.8.2-alt1 +- initial build diff --git a/src/hunspell/Makefile.am b/src/hunspell/Makefile.am index 7b57ffb..36976c7 100644 --- a/src/hunspell/Makefile.am +++ b/src/hunspell/Makefile.am @@ -1,18 +1,18 @@ -lib_LTLIBRARIES = libhunspell-1.7.la -libhunspell_1_7_includedir = $(includedir)/hunspell -libhunspell_1_7_la_SOURCES=affentry.cxx affentry.hxx affixmgr.cxx affixmgr.hxx \ +lib_LTLIBRARIES = libhunspell.la +libhunspell_includedir = $(includedir)/hunspell +libhunspell_la_SOURCES=affentry.cxx affentry.hxx affixmgr.cxx affixmgr.hxx \ atypes.hxx baseaffix.hxx csutil.cxx csutil.hxx \ filemgr.cxx filemgr.hxx hashmgr.cxx hashmgr.hxx \ htypes.hxx hunspell.cxx hunspell.h hunspell.hxx \ hunzip.cxx hunzip.hxx langnum.hxx \ phonet.cxx phonet.hxx replist.cxx replist.hxx \ suggestmgr.cxx suggestmgr.hxx utf_info.hxx w_char.hxx -nodist_libhunspell_1_7_la_SOURCES=hunvisapi.h +nodist_libhunspell_la_SOURCES=hunvisapi.h -libhunspell_1_7_include_HEADERS=hunspell.hxx hunspell.h hunvisapi.h \ +libhunspell_include_HEADERS=hunspell.hxx hunspell.h hunvisapi.h \ w_char.hxx atypes.hxx -libhunspell_1_7_la_LDFLAGS=-no-undefined -version-info 0:1:0 +libhunspell_la_LDFLAGS=-no-undefined -version-info 2:1 AM_CXXFLAGS=$(CFLAG_VISIBILITY) -DBUILDING_LIBHUNSPELL diff --git a/src/parsers/Makefile.am b/src/parsers/Makefile.am index 8eb9f7a..fb4f06e 100644 --- a/src/parsers/Makefile.am +++ b/src/parsers/Makefile.am @@ -14,5 +14,5 @@ testparser_SOURCES=firstparser.cxx firstparser.hxx xmlparser.cxx \ textparser.cxx textparser.hxx htmlparser.cxx \ htmlparser.hxx odfparser.hxx odfparser.cxx -# need mystrrep() -LDADD = ../hunspell/libhunspell-1.7.la +# need mystrdup() +LDADD = ../hunspell/libhunspell.la diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am index 1786e8e..769b4a0 100644 --- a/src/tools/Makefile.am +++ b/src/tools/Makefile.am @@ -4,24 +4,24 @@ AM_CPPFLAGS=-I${top_builddir}/src/hunspell -I${top_srcdir}/src/hunspell -I${top_ hzip_SOURCES=hzip.cxx hunzip_SOURCES=hunzip.cxx -hunzip_LDADD = ../hunspell/libhunspell-1.7.la +hunzip_LDADD = ../hunspell/libhunspell.la munch_SOURCES=munch.cxx munch.h unmunch_SOURCES=unmunch.cxx unmunch.h example_SOURCES=example.cxx -example_LDADD = ../hunspell/libhunspell-1.7.la +example_LDADD = ../hunspell/libhunspell.la hunspell_SOURCES=hunspell.cxx nodist_hunspell_SOURCES= ../../config.h hunspell_LDADD = @LIBINTL@ @LIBICONV@ ../parsers/libparsers.a \ - ../hunspell/libhunspell-1.7.la @CURSESLIB@ @READLINELIB@ + ../hunspell/libhunspell.la @CURSESLIB@ @READLINELIB@ analyze_SOURCES=analyze.cxx -analyze_LDADD = ../hunspell/libhunspell-1.7.la +analyze_LDADD = ../hunspell/libhunspell.la chmorph_SOURCES=chmorph.cxx -chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.7.la +chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell.la noinst_PROGRAMS=example