File mingw64-gtkhtml2.spec of Package mingw64-gtkhtml2

#
# spec file for package mingw64-gtkhtml2
#
# 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-gtkhtml2
Version:        3.32.2
Release:        0
Summary:        Library for HTML Support for Gtk2
License:        GPL-2.0+ and LGPL-2.1+
Group:          Development/Libraries
Url:            ftp://ftp.gnome.org/pub/gnome/sources/gtkhtml
Source:         ftp://ftp.gnome.org/pub/gnome/sources/gtkhtml/3.32/gtkhtml-%{version}.tar.bz2
Patch0:         gtkhtml-3.32.2-g_thread_init.patch
#!BuildIgnore: post-build-checks
BuildRequires:  gettext-tools >= 0.15
BuildRequires:  glib2-devel
BuildRequires:  intltool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-enchant-devel
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-gconf2-devel
BuildRequires:  mingw64-gnome-icon-theme-devel
BuildRequires:  mingw64-gtk2-devel
BuildRequires:  mingw64-iso-codes-devel
BuildRequires:  mingw64-libbonobo-devel
BuildRequires:  mingw64-libbonoboui-devel
BuildRequires:  mingw64-libgnomeui-devel
BuildRequires:  mingw64-libgnurx-devel
BuildRequires:  mingw64-libsoup-devel
Requires:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw64_package_header_debug
BuildArch:      noarch

%description
GtkHTML is a lightweight HTML rendering, printing, and editing engine.
It was originally based on KHTMLW, but is now being independently developed.

%package devel
Summary:        Library for HTML Support for Gtk2 (development files)
Group:          Development/Libraries

%description devel
GtkHTML is a lightweight HTML rendering, printing, and editing engine.
It was originally based on KHTMLW, but is now being independently developed.
This package contains all necessary include files and libraries needed
to develop applications that require GtkHTML.

%_mingw64_debug_package

%lang_package

%prep
%setup -q -n gtkhtml-%{version}
%patch0 -p1

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--enable-shared --disable-static \
	--disable-deprecated-warning-flags \
	--enable-compile-warnings=maximum
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%find_lang gtkhtml-3.14

%files
%defattr(-,root,root)
%{_mingw64_bindir}/gtkhtml-editor-test.exe
%{_mingw64_bindir}/libgtkhtml-3.14-19.dll
%{_mingw64_bindir}/libgtkhtml-editor-3.14-0.dll
%{_mingw64_datadir}/gtkhtml-3.14/gtkhtml-editor-builder.ui
%{_mingw64_datadir}/gtkhtml-3.14/gtkhtml-editor-manager.ui
%{_mingw64_datadir}/gtkhtml-3.14/keybindingsrc.emacs
%{_mingw64_datadir}/gtkhtml-3.14/icons

%files lang -f gtkhtml-3.14.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/libgtkhtml-3.14/gtkhtml
%{_mingw64_includedir}/libgtkhtml-3.14/editor
%{_mingw64_libdir}/libgtkhtml-3.14.dll.a
%{_mingw64_libdir}/libgtkhtml-editor-3.14.dll.a
%{_mingw64_libdir}/pkgconfig/libgtkhtml-3.14.pc
%{_mingw64_libdir}/pkgconfig/gtkhtml-editor-3.14.pc

%changelog
openSUSE Build Service is sponsored by