File libgtkhtml-2-0.spec of Package libgtkhtml

#
# spec file for package libgtkhtml-2-0
#
# Copyright (c) 2011 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:           libgtkhtml-2-0
Version:        2.11.1
Release:        126
License:        GPL-2.0+; LGPL-2.1+
Summary:        Library for HTML Support in GTK2
Url:            http://www.gnome.org
Group:          System/Libraries
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/libgtkhtml/2.11/libgtkhtml-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libgtkhtml-init-var.patch vuntz@novell.com -- Patch is in upstream git now
Patch0:         libgtkhtml-init-var.patch
BuildRequires:  gail-devel
BuildRequires:  libgnomecanvas-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(libxml-2.0)
Provides:       libgtkhtml = %{version}
Obsoletes:      libgtkhtml < 2.11.1
# bug437293
%ifarch ppc64
Obsoletes:      libgtkhtml-64bit
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Libgtkhtml provides extensions for GTK to handle the HTML format. It is
widely used by applications for the GNOME 2.x Desktop.

%package -n libgtkhtml-devel
Summary:        Include Files and Libraries Mandatory for Development
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       gail-devel
Requires:       pkgconfig(gtk+-2.0)
Requires:       pkgconfig(libxml-2.0)
# bug437293
%ifarch ppc64
Obsoletes:      libgtkhtml-devel-64bit
%endif

%description -n libgtkhtml-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%prep
%setup -qn libgtkhtml-%{version}
%patch0

%build
# needed for libgtkhtml-2.11.0:
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
    --with-pic \
    --disable-static
make %{?_smp_mflags}

%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la

%post -n %{name} -p /sbin/ldconfig

%postun -n %{name} -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*

%files -n libgtkhtml-devel
%defattr(-,root,root,-)
%doc AUTHORS COPYING.LIB ChangeLog NEWS README TODO docs/IDEAS
%{_includedir}/gtkhtml-2.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by