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/
#
%define __strip %{_mingw64_strip}
%define __objdump %{_mingw64_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw64_findrequires}
%define __find_provides %{_mingw64_findprovides}
%define __os_install_post %{_mingw64_debug_install_post} \
%{_mingw64_install_post}
Name: mingw64-hunspell
Version: 1.3.2
Release: 0
Summary: Hunspell - a spell checker and morphological analyzer library
License: LGPL-2.1+ or GPL-2.0+ or MPL-1.1
Group: System/Libraries
Url: http://hunspell.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: hunspell-1.3.2-canonicalhost.patch
BuildArch: noarch
#!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}
%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 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 -qn "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=$RPM_BUILD_ROOT install
%find_lang hunspell
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_mingw64_bindir}/libhunspell-1.3-0.dll
%files lang -f hunspell.lang
%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/libhunspell-1.3.dll.a
%{_mingw64_includedir}/hunspell/
%exclude %{_mingw64_libdir}/libparsers.a
%{_mingw64_libdir}/pkgconfig/hunspell.pc
%{_mingw64_mandir}/man3/hunspell.3*
%{_mingw64_mandir}/man4/hunspell.4*
%{_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