File python-gnome.spec of Package python-gnome

#
# spec file for package python-gnome (Version 2.28.0)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           python-gnome
%define _name gnome-python
BuildRequires:  libbonobo-devel libgnome-devel libgnomeui-devel python-devel python-gtk-devel python-orbit-devel
Url:            ftp://ftp.gnome.org/pub/gnome/sources/gnome-python
Summary:        Python bindings for GNOME
Version:        2.28.0
Release:        1
Source:         %{_name}-%{version}.tar.bz2
License:        LGPL v2.1 or later
Group:          Development/Libraries/Python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-gtk python-orbit
%{py_requires}

%description
PyGNOME is an extension module for python that gives you access to the
GNOME libraries.  This means you have access to more widgets, simple
configuration interface, metadata support and many other features.



Authors:
--------
    James Henstridge  <james@daa.com.au>
    Johan Dahlin  <jdahlin@telia.com>
    Matt Wilson  <msw@redhat.com>

%package devel
License:        LGPL v2.1 or later
Summary:        Headers for python-gnome
Group:          Development/Libraries/Python
Requires:       %{name} = %{version} python-gtk-devel

%description devel
Headers for python-gnome



Authors:
--------
    James Henstridge  <james@daa.com.au>
    Johan Dahlin  <jdahlin@telia.com>
    Matt Wilson  <msw@redhat.com>

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

%build
autoreconf -f -i
%configure
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS examples
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/pygnomevfs
%{py_sitedir}/gtk-2.0/bonobo
%{py_sitedir}/gtk-2.0/gnome
%{py_sitedir}/gtk-2.0/gnomevfs
%{py_sitedir}/gtk-2.0/gconf.so
%{py_sitedir}/gtk-2.0/gnomecanvas.so
%{_datadir}/pygtk/2.0/argtypes
%{_datadir}/pygtk/2.0/defs/*
%{_libdir}/gnome-vfs-2.0/modules/*.so

%files devel
%defattr(-,root,root)
%{_includedir}/%{_name}-2.0
%{_libdir}/pkgconfig/gnome-python-2.0.pc

%changelog
openSUSE Build Service is sponsored by