File mingw32-gtkspell.spec of Package mingw32-gtkspell

#
# spec file for package mingw32-gtkspell
#
# 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:           mingw32-gtkspell
Version:        2.0.16
Release:        0
Summary:        GTK2 Spell Checker Interface Library
License:        GPL-2.0-only
Group:          Development/Libraries/GNOME
Url:            http://gtkspell.sourceforge.net/
Source0:        http://gtkspell.sourceforge.net/download/gtkspell-%{version}.tar.gz
Patch0:         gtkspell-2.0.16-windows.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  glib2-devel
BuildRequires:  gperf
BuildRequires:  gtk-doc
BuildRequires:  intltool >= 0.35.0
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-enchant-devel
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-glib2-devel
BuildRequires:  mingw32-gtk2-devel
#!BuildIgnore: post-build-checks
Requires:       %{name}-lang >= %{version}
Requires:       mingw32-enchant
%_mingw32_package_header_debug
BuildArch:      noarch

%description
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a
GtkTextView widget.  Right-clicking a misspelled word pops up a menu of
suggested replacements.

GtkSpell is a library, to be used by your software.
GtkSpell depends on GTK+ 2.0 (of course), and also on Enchant
library, which can be found at http://www.abisource.com/projects/enchant/ .

For more information, see http://gtkspell.sf.net .

%package -n mingw32-libgtkspell0
Summary:        GTK2 Spell Checker Interface Library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw32-libgtkspell0
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a
GtkTextView widget.  Right-clicking a misspelled word pops up a menu of
suggested replacements.

%package devel
Summary:        Library for highlighting of misspelled words in a GtkTextView widget
Group:          Development/Libraries/C and C++

%description devel
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a
GtkTextView widget.  Right-clicking a misspelled word pops up a menu of
suggested replacements.

%_mingw32_debug_package

%lang_package

%prep
%setup -q -n gtkspell-%{version}
%patch -P 0 -p1 -b .windows

%build
libtoolize --force --copy --install
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} --disable-gtk-doc --disable-static --enable-shared
%{_mingw32_make}

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

%files -n mingw32-libgtkspell0
%defattr(-,root,root)
%{_mingw32_bindir}/libgtkspell-0.dll

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

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/gtkspell-2.0
%{_mingw32_libdir}/libgtkspell.dll.a
%{_mingw32_libdir}/pkgconfig/gtkspell-2.0.pc
%{_mingw32_datadir}/gtk-doc/html/gtkspell

%changelog
openSUSE Build Service is sponsored by