2008-02-19 04:36:30 +01:00
|
|
|
#
|
2010-10-07 22:09:29 +02:00
|
|
|
# spec file for package hunspell (Version 1.2.12)
|
2008-02-19 04:36:30 +01:00
|
|
|
#
|
2010-02-22 15:32:07 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-02-19 04:36:30 +01:00
|
|
|
#
|
2008-08-15 23:55:25 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-02-19 04:36:30 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Hunspell - a spell checker and morphological analyzer library
|
|
|
|
|
|
|
|
Name: hunspell
|
2010-10-07 22:09:29 +02:00
|
|
|
Version: 1.2.12
|
|
|
|
Release: 1
|
2009-12-21 23:19:56 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MPL ..
|
2008-02-19 04:36:30 +01:00
|
|
|
Group: System/Libraries
|
2008-07-09 18:50:24 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2009-12-21 23:19:56 +01:00
|
|
|
Source1: baselibs.conf
|
2010-10-07 22:09:29 +02:00
|
|
|
Patch0: %name-disable-fortify.patch
|
2008-02-19 04:36:30 +01:00
|
|
|
Url: http://hunspell.sourceforge.net/
|
|
|
|
BuildRequires: autoconf >= 2.59
|
|
|
|
BuildRequires: ncurses-devel >= 5.0
|
2010-04-24 17:21:03 +02:00
|
|
|
BuildRequires: automake gcc-c++ libstdc++-devel libtool pkg-config readline-devel
|
2008-02-19 04:36:30 +01:00
|
|
|
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:
|
|
|
|
--------
|
2010-10-07 22:09:29 +02:00
|
|
|
Németh László nemeth (at) OpenOffice.org
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%package tools
|
2009-12-21 23:19:56 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MPL ..
|
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:
|
|
|
|
--------
|
2010-10-07 22:09:29 +02:00
|
|
|
Németh László nemeth (at) OpenOffice.org
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%package devel
|
2009-12-21 23:19:56 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MPL ..
|
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:
|
|
|
|
--------
|
2010-10-07 22:09:29 +02:00
|
|
|
Németh László nemeth (at) OpenOffice.org
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%package static
|
2009-12-21 23:19:56 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MPL ..
|
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:
|
|
|
|
--------
|
2010-10-07 22:09:29 +02:00
|
|
|
Németh László nemeth (at) OpenOffice.org
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%prep
|
2008-06-23 22:00:33 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2010-02-22 15:32:07 +01:00
|
|
|
%patch0 -p0
|
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
|
2010-10-07 22:09:29 +02:00
|
|
|
install -m 644 src/tools/{,un}munch.h $RPM_BUILD_ROOT%{_includedir}
|
2008-02-19 04:36:30 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2010-02-22 15:32:07 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2008-02-19 04:36:30 +01:00
|
|
|
%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
|
2010-10-07 22:09:29 +02:00
|
|
|
%attr(755,root,root) %{_bindir}/affixcompress
|
|
|
|
%attr(755,root,root) %{_bindir}/ispellaff2myspell
|
|
|
|
%attr(755,root,root) %{_bindir}/makealias
|
|
|
|
%attr(755,root,root) %{_bindir}/wordforms
|
|
|
|
%attr(755,root,root) %{_bindir}/wordlist2hunspell
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%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
|