File gtkhtml2.spec of Package gtkhtml2
#
# spec file for package gtkhtml2 (Version 3.32.1)
#
# Copyright (c) 2010 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 _name gtkhtml
Name: gtkhtml2
Version: 3.32.1
Release: 2
# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to < (here and in baselibs.conf)
License: GPLv2+ ; LGPLv2.1+
Summary: Lightweight HTML rendering/printing/editing engine
Url: http://www.gnome.org
Group: System/Libraries
Source: ftp://ftp.gnome.org/pub/gnome/sources/%{_name}/3.25/%{_name}-%{version}.tar.bz2
BuildRequires: enchant-devel
BuildRequires: fdupes
BuildRequires: gconf2-devel
BuildRequires: glib2-devel
BuildRequires: gnome-icon-theme
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: iso-codes-devel
BuildRequires: libsoup-devel
BuildRequires: translation-update-upstream
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 -n libgtkhtml-3_14-19
License: GPLv2+ ; LGPLv2.1+
Summary: Lightweight HTML rendering/printing/editing engine
Group: System/Libraries
Recommends: gtkhtml-3_14-lang
# For the lang package to be installable
Provides: gtkhtml-3_14 = %{version}
Provides: %{name} = %{version}
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 3.32.0 (when this provides/obsoletes was introduced)
Obsoletes: %{name} <= %{version}
%description -n libgtkhtml-3_14-19
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
License: GPLv2+ ; LGPLv2.1+
Summary: Lightweight HTML rendering/printing/editing engine -- Development Files
Group: Development/Libraries/GNOME
Requires: libgtkhtml-3_14-19 = %{version}
%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.
%lang_package -n gtkhtml-3_14
%prep
%setup -q -n %{_name}-%{version}
translation-update-upstream
%build
%{configure} \
--disable-static \
--disable-deprecated-warning-flags
%{__make} %{?jobs:-j%jobs}
%install
%{makeinstall}
%if 0%{suse_version} <= 1120
%{__rm} -rf %{buildroot}%{_datadir}/locale/en@shaw
%endif
# Remove the libtool archive files
%{__rm} %{buildroot}%{_libdir}/*.la
%find_lang gtkhtml-3.14
%fdupes %{buildroot}
%clean
%{__rm} -rf %{buildroot}
%post -n libgtkhtml-3_14-19 -p /sbin/ldconfig
%postun -n libgtkhtml-3_14-19 -p /sbin/ldconfig
%files -n libgtkhtml-3_14-19
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING TODO
%{_datadir}/gtkhtml-3.14/
%{_libdir}/libgtkhtml-3.14.so.*
%{_libdir}/libgtkhtml-editor-3.14.so.*
%files -n gtkhtml-3_14-lang -f gtkhtml-3.14.lang
%files devel
%defattr(-, root, root)
%{_bindir}/gtkhtml-editor-test
%{_includedir}/libgtkhtml-3.14/
%{_libdir}/libgtkhtml-3.14.so
%{_libdir}/libgtkhtml-editor-3.14.so
%{_libdir}/pkgconfig/libgtkhtml-3.14.pc
%{_libdir}/pkgconfig/gtkhtml-editor-3.14.pc
%changelog