File mingw64-enchant.spec of Package mingw64-enchant

#
# spec file for package mingw64-enchant
#
# Copyright (c) 2017 SUSE LINUX 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-enchant
Version:        1.6.1
Release:        0
Summary:        MinGW Windows port of an Enchanting Spell Checking Library
License:        LGPL-2.1-or-later
Group:          Development/Libraries
Url:            http://www.abisource.com/
Source0:        http://ftp.gnome.org/pub/gnome/sources/enchant/%{version}/enchant-%{version}.tar.gz
Source1000:     %{name}-rpmlintrc
#!BuildIgnore: post-build-checks
BuildRequires:  m4
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-hunspell-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
MinGW Windows port of an Enchanting Spell Checking Library.
A library that wraps around other spell checking back-ends.

%package devel
Summary:        MinGW Windows port of an Enchanting Spell Checking Library (development files)
Group:          Development/Libraries

%description devel
MinGW Windows port of an Enchanting Spell Checking Library (development files).
A library that wraps around other spell checking back-ends.
This package contains all necessary include files and libraries needed
to develop applications that require enchant.

%_mingw64_debug_package

%prep
%setup -q -n enchant-%{version}

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
# The default value for the module dir will be a unixy distro path,
# something that very likely does not exist on Windows. With -U, it will
# default to ./lib/enchant instead.
%{_mingw64_configure} CPPFLAGS=-UENCHANT_GLOBAL_MODULE_DIR \
	--enable-shared --disable-static \
	--enable-ispell --enable-myspell --with-system-myspell \
	--disable-aspell --disable-voikko --disable-uspell \
	--disable-hspell --disable-zemberek
%{_mingw64_make}

%install
%{_mingw64_makeinstall}

rm -rf %{buildroot}%{_mingw64_libdir}/enchant/*.dll.a
rm -rf %{buildroot}%{_mingw64_libdir}/enchant/*.la

%files
%defattr(-,root,root)
%{_mingw64_bindir}/enchant.exe
%{_mingw64_bindir}/enchant-lsmod.exe
%{_mingw64_bindir}/libenchant.dll
%{_mingw64_libdir}/enchant/libenchant_*.dll
%{_mingw64_datadir}/enchant/enchant.ordering
%{_mingw64_mandir}/man1/enchant.1*

%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libenchant.dll.a
%{_mingw64_libdir}/pkgconfig/enchant.pc
%{_mingw64_includedir}/enchant

%changelog
openSUSE Build Service is sponsored by