This commit is contained in:
commit
e569c686ce
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
hunspell-1.2.2b.tar.bz2
Normal file
3
hunspell-1.2.2b.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c94bbebf59c3703e4f279517ea3812a09af7c26af68502d461578380ee32f31d
|
||||
size 627400
|
22
hunspell-function_address.patch
Normal file
22
hunspell-function_address.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- src/hunspell/affixmgr.cxx
|
||||
+++ src/hunspell/affixmgr.cxx
|
||||
@@ -2464,7 +2464,7 @@
|
||||
sptr = sptr->getNextNE();
|
||||
}
|
||||
}
|
||||
- if (result) return mystrdup(result);
|
||||
+ if ( strlen(result) ) return mystrdup(result);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
--- src/hunspell/hunspell.cxx
|
||||
+++ src/hunspell/hunspell.cxx
|
||||
@@ -1392,7 +1392,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if (result && (*result)) {
|
||||
+ if ( strlen(result) && ( *result)) {
|
||||
// word reversing wrapper for complex prefixes
|
||||
if (complexprefixes) {
|
||||
if (utf8) reverseword_utf(result); else reverseword(result);
|
10
hunspell-uninitialised.patch
Normal file
10
hunspell-uninitialised.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/hunspell/affixmgr.cxx
|
||||
+++ src/hunspell/affixmgr.cxx
|
||||
@@ -3757,6 +3757,7 @@
|
||||
// split affix header line into pieces
|
||||
|
||||
int np = 0;
|
||||
+ nl = '\0';
|
||||
piece = mystrsep(&tp, 0);
|
||||
while (piece) {
|
||||
if (*piece != '\0') {
|
8
hunspell.changes
Normal file
8
hunspell.changes
Normal file
@ -0,0 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 7 18:11:11 CET 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)
|
||||
|
156
hunspell.spec
Normal file
156
hunspell.spec
Normal file
@ -0,0 +1,156 @@
|
||||
#
|
||||
# spec file for package hunspell (Version 1.2.1.9)
|
||||
#
|
||||
# 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
|
||||
Version: 1.2.1.9
|
||||
Release: 1
|
||||
License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
|
||||
Group: System/Libraries
|
||||
Source0: %{name}-1.2.2b.tar.bz2
|
||||
Patch1: %{name}-uninitialised.patch
|
||||
Patch2: %{name}-function_address.patch
|
||||
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émeth László nemeth (at) OpenOffice.org
|
||||
|
||||
%package tools
|
||||
Summary: Hunspell tools
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description tools
|
||||
This package contains munch and unmunch programs.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Németh László nemeth (at) OpenOffice.org
|
||||
|
||||
%package devel
|
||||
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émeth László nemeth (at) OpenOffice.org
|
||||
|
||||
%package static
|
||||
Summary: Static hunspell library
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
Static hunspell library.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Németh László nemeth (at) OpenOffice.org
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-1.2.2b
|
||||
%patch1
|
||||
%patch2
|
||||
|
||||
%build
|
||||
%{__libtoolize}
|
||||
%{__aclocal} -I m4
|
||||
%{__autoconf}
|
||||
%{__automake}
|
||||
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*
|
||||
%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
|
||||
* 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)
|
Loading…
Reference in New Issue
Block a user