File mingw64-gtkhtml4.spec of Package mingw64-gtkhtml4

#
# spec file for package mingw64-gtkhtml4
#
# 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-gtkhtml4
Version:        4.8.5
Release:        0
Summary:        Lightweight HTML rendering/printing/editing engine
License:        GPL-2.0-or-later and LGPL-2.1-or-later
Group:          Development/Libraries
Url:            ftp://ftp.gnome.org/pub/gnome/sources/gtkhtml
Source:         ftp://ftp.gnome.org/pub/gnome/sources/gtkhtml/4.4/gtkhtml-%{version}.tar.xz
#!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-gnome-icon-theme-devel
BuildRequires:  mingw64-gsettings-desktop-schemas-devel
BuildRequires:  mingw64-gtk3-devel
BuildRequires:  mingw64-iso-codes-devel
BuildRequires:  mingw64-libgnurx-devel
BuildRequires:  mingw64-libsoup-devel
BuildRequires:  xz
Requires:       %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
GtkHTML is a lightweight HTML rendering/printing/editing engine. It
was originally based on KHTMLW, part of the KDE project, but is now
being developed independently.

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

%description devel
GtkHTML is a lightweight HTML rendering/printing/editing engine. It
was originally based on KHTMLW, part of the KDE project, but is now
being developed independently.

This package contains all necessary include files and libraries needed
to develop applications that require these.

%package -n mingw64-libgtkhtml-4_0-0
Summary:        Lightweight HTML rendering/printing/editing engine
Group:          Development/Libraries
Provides:       %{name} = %{version}

%description -n mingw64-libgtkhtml-4_0-0
GtkHTML is a lightweight HTML rendering/printing/editing engine. It
was originally based on KHTMLW, part of the KDE project, but is now
being developed independently.

%package -n mingw64-libgtkhtml-editor-4_0-0
Summary:        Lightweight HTML rendering/printing/editing engine
Group:          Development/Libraries

%description -n mingw64-libgtkhtml-editor-4_0-0
GtkHTML is a lightweight HTML rendering/printing/editing engine. It
was originally based on KHTMLW, part of the KDE project, but is now
being developed independently.

%_mingw64_debug_package

%lang_package -n %{name} -r mingw64-libgtkhtml-4_0-0

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

%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
(cd %{buildroot}%{_mingw64_bindir} \
	&& mv gtkhtml-editor-test.exe \
	gtkhtml-editor-test4.exe )

%find_lang gtkhtml-4.0

%files -n mingw64-libgtkhtml-4_0-0
%defattr(-,root,root)
%{_mingw64_bindir}/libgtkhtml-4.0-0.dll
%{_mingw64_datadir}/gtkhtml-4.0/gtkhtml-editor-builder.ui
%{_mingw64_datadir}/gtkhtml-4.0/gtkhtml-editor-manager.ui
%{_mingw64_datadir}/gtkhtml-4.0/keybindingsrc.emacs
%{_mingw64_datadir}/gtkhtml-4.0/icons

%files -n mingw64-libgtkhtml-editor-4_0-0
%defattr(-,root,root)
%{_mingw64_bindir}/libgtkhtml-editor-4.0-0.dll

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

%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/gtkhtml-editor-test*.exe
%{_mingw64_includedir}/libgtkhtml-4.0/gtkhtml
%{_mingw64_includedir}/libgtkhtml-4.0/editor
%{_mingw64_libdir}/libgtkhtml-4.0.dll.a
%{_mingw64_libdir}/libgtkhtml-editor-4.0.dll.a
%{_mingw64_libdir}/pkgconfig/libgtkhtml-4.0.pc
%{_mingw64_libdir}/pkgconfig/gtkhtml-editor-4.0.pc

%changelog
openSUSE Build Service is sponsored by