File mingw64-hunspell.spec of Package mingw64-hunspell

#
# spec file for package mingw64-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/
#


Name:           mingw64-hunspell
Version:        1.3.3
Release:        0
Summary:        Hunspell - a spell checker and morphological analyzer library
License:        LGPL-2.1+ or GPL-2.0+ or MPL-1.1
Group:          Development/Libraries/C and C++
Url:            http://hunspell.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz
Patch0:         hunspell-1.3.3-canonicalhost.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libintl-devel
Requires:       %{name}-lang >= %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw64_package_header_debug
BuildArch:      noarch

%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.

%package -n mingw64-libhunspell-1_3-0
Summary:        MinGW Windows port of the hunspell checker
Group:          System/Libraries
Obsoletes:      mingw64-hunspell
Provides:       mingw64-hunspell

%description -n mingw64-libhunspell-1_3-0
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.

%package devel
Summary:        Files for developing with hunspell
Group:          Development/Libraries

%description devel
Includes and definitions for developing with hunspell.

%package tools
Summary:        Hunspell tools
Group:          Development/Libraries

%description tools
This package contains munch and unmunch programs.

%_mingw64_debug_package

%lang_package

%prep
%setup -q -n "hunspell-%{version}"
%patch0 -p1 -b .canonicalhost

%build
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --disable-static --enable-shared
make %{?_smp_mflags} || %{_mingw64_make}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%find_lang hunspell

%files -n mingw64-libhunspell-1_3-0
%defattr(-,root,root,-)
%{_mingw64_bindir}/libhunspell-1.3-0.dll

%files lang -f hunspell.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/libhunspell-1.3.dll.a
%{_mingw64_includedir}/hunspell/
%{_mingw64_libdir}/pkgconfig/hunspell.pc
%{_mingw64_mandir}/man3/hunspell.3*
%{_mingw64_mandir}/man5/hunspell.5*
%{_mingw64_mandir}/hu/man?

%files tools
%defattr(-,root,root,-)
#posix shell scripts
%{_mingw64_bindir}/affixcompress
%{_mingw64_bindir}/ispellaff2myspell
%{_mingw64_bindir}/makealias
%{_mingw64_bindir}/wordforms
%{_mingw64_bindir}/wordlist2hunspell
#native binaries
%{_mingw64_bindir}/analyze.exe
%{_mingw64_bindir}/chmorph.exe
%{_mingw64_bindir}/hunspell.exe
%{_mingw64_bindir}/hunzip.exe
%{_mingw64_bindir}/hzip.exe
%{_mingw64_bindir}/munch.exe
%{_mingw64_bindir}/unmunch.exe
%{_mingw64_mandir}/man1/hunspell.1*
%{_mingw64_mandir}/man1/hunzip.1*
%{_mingw64_mandir}/man1/hzip.1*

%changelog
openSUSE Build Service is sponsored by