File python-webkitgtk.spec of Package python-webkitgtk
#
# spec file for package python-webkitgtk (Version 1.1.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2008 Andrew Wafaa
#
# 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: python-webkitgtk
%define _name pywebkitgtk
Summary: Python bindings for WebKit/Gtk
Version: 1.1.6
Release: 2
License: LGPL v2 or later
Group: Development/Languages/Python
Url: http://code.google.com/p/pywebkitgtk/
Source: %{_name}-%{version}.tar.bz2
# This is tracked upstream at http://code.google.com/p/pywebkitgtk/issues/detail?id=38
# see also https://bugzilla.novell.com/show_bug.cgi?id=537837
Patch1: python-path.patch
BuildRequires: libwebkit-devel
BuildRequires: libxslt-devel
BuildRequires: python-devel
BuildRequires: python-gtk-devel
Provides: pywebkitgtk = %{version}
Obsoletes: pywebkitgtk < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description
PyWebKitGtk provides an API for developers to program WebKit/Gtk using
Python.
The project share the same goals with WebKit. The purpose of this
binding is to bring an alternative web engine to Python/GTK+
application developers who might need a web browser engine for their
next application or developers wishing to have a better browser engine
that they can access to using the Python programming language.
%prep
%setup -q -n %{_name}-%{version}
%patch1
%build
%configure --disable-static
%__make %{?jobs: -j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%{python_sitearch}/webkit.so
%{_datadir}/pywebkitgtk
%changelog