LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File hunspell.spec of Package hunspell (Project devel:libraries:c_c++)

# spec file for package hunspell
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

%define ver     1.3
Name:           hunspell
Version:        1.3.3
Release:        0
Summary:        A spell checker and morphological analyzer library
License:        (GPL-2.0+ or LGPL-2.1+ or MPL-1.1+) and LGPL-2.1+
Group:          System/Libraries
Url:            http://hunspell.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/%{name}/Hunspell/%{version}/%{name}-%{version}.tar.gz
Source1:        baselibs.conf
Patch0:         hunspell-emacs-utf8.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel
BuildRequires:  libtool
BuildRequires:  ncurses-devel >= 5.0
BuildRequires:  pkg-config
BuildRequires:  readline-devel
Recommends:     %{name}-tools
Recommends:     unzip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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,
LibreOffice or OpenOffice.org UNO module.

%package tools
Summary:        Hunspell tools
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}

%description tools
This package contains munch and unmunch programs.

%package devel
Summary:        Files for developing with hunspell
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Requires:       libstdc++-devel
Requires:       pkgconfig

%description devel
Includes and definitions for developing with hunspell.

%setup -q

autoreconf -vi
%configure \
	--enable-nls \
	--disable-static \
	--disable-rpath \
	--with-ui \
make %{?_smp_mflags}

find %{buildroot} -type f -name "*.la" -delete -print
rm -f %{buildroot}%{_bindir}/example
install -m 644 src/tools/{,un}munch.h %{buildroot}%{_includedir}
ln -sf %{_libdir}/libhunspell-%{ver}.so.0.0.0 %{buildroot}%{_libdir}/libhunspell.so
%find_lang %{name}

make check %{?_smp_mflags}

%post	-p /sbin/ldconfig

%postun	-p /sbin/ldconfig

%files -f %{name}.lang
%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.0.0.0
%exclude %{_libdir}/libhunspell*.so
%dir %{_mandir}/hu
%dir %{_mandir}/hu/man1
%lang(hu) %{_mandir}/hu/man1/hunspell.1*

%files tools
%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
%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

%files devel