File python-webkitgtk.spec of Package python-webkitgtk

#
# spec file for package python-webkitgtk (Version 1.1.8)
#
# Copyright (c) 2010 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.8
Release:        1
License:        LGPL v2 or later
Group:          Development/Languages/Python
Url:            http://code.google.com/p/pywebkitgtk/
Source:         %{_name}-%{version}.tar.bz2
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.

%package devel
Summary:        Python bindings for WebKit/Gtk -- Development Files
License:        LGPL v2 or later
Group:          Development/Libraries/Python
Requires:       %{name} = %{version}

%description devel
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}

%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)
%doc AUTHORS COPYING MAINTAINERS NEWS README demos
%{python_sitearch}/webkit/

%files devel
%defattr(-, root, root)
%dir %{_datadir}/pywebkitgtk/
%{_datadir}/pywebkitgtk/defs/
%{_libdir}/pkgconfig/pywebkitgtk-1.0.pc

%changelog