File python-gtksourceview.spec of Package python-gtksourceview

#
# spec file for package python-gtksourceview
#
# Copyright (c) 2013 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:           python-gtksourceview
%define _name pygtksourceview
BuildRequires:  python-devel
BuildRequires:  python-gobject2-devel >= 2.8.0
BuildRequires:  python-gtk-devel >= 2.8.0
BuildRequires:  pkgconfig(gtksourceview-2.0)
%if 0%{?opensuse_bs}
BuildRequires:  pkg-config
%endif
Url:            http://gtksourceview.sourceforge.net/ 
Version:        2.10.1
Release:        0
Summary:        Python bindings for the GTK+ source editing widget
License:        LGPL-2.0
Group:          Development/Languages/Python
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{_name}/2.2/%{_name}-%{version}.tar.bz2
Requires:       python-gtk >= 2.8.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.

It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.

This package contains Python bindings for the library.

%package devel
Requires:       %{name} = %{version}
Requires:       pkgconfig(gtksourceview-2.0)
Summary:        Python bindings for the GTK+ source editing widget
Group:          Development/Languages/Python

%description devel
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.

It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.

This package contains Python bindings for the library.

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

%build
%configure \
    --disable-docs
make %{?jobs:-j%jobs}

%install
%makeinstall
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -v

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{py_sitedir}/gtksourceview2.so
%{_datadir}/pygtk/2.0/defs/gtksourceview2.defs

%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by