File python-gobject2.spec of Package python-gobject2

#
# spec file for package python-gobject2 (Version 2.20.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-gobject2
%define _name pygobject
BuildRequires:  fdupes
BuildRequires:  glib2-devel
# our libffi package doesn't have a pkg-config file
# BuildRequires:  libffi-devel
BuildRequires:  python-devel
Summary:        Python bindings for GObject
Version:        2.20.0
Release:        1
License:        LGPL v2.1 or later
Group:          Development/Libraries/Python
Url:            http://ftp.gnome.org/pub/GNOME/sources/pygobject/
Source:         %{_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
Pygobjects is an extension module for python that gives you access to
GLib's GObjects.

%package devel
License:        LGPL v2.1 or later
Summary:        Python bindings for GObject
Group:          Development/Libraries/Python
Requires:       %{name} = %{version} glib2-devel

%description devel
This package contains files required to build wrappers for gobject
addon libraries such as pygtk.

%package doc
License:        LGPL v2.1 or later
Summary:        Python bindings for GObject
Group:          Development/Libraries/Python
Requires:       %{name} = %{version}

%description doc
Pygobjects is an extension module for python that gives you access to
GLib's GObjects.

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

%build
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
rm examples/Makefile*
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README ChangeLog examples
%{_bindir}/pygobject-codegen-2.0
%{py_sitedir}/gtk-2.0
%{py_sitedir}/pygtk.*
%{_datadir}/%{_name}
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/pygobject
%{_includedir}/pygtk-2.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/pygobject-2.0.pc

%files doc
%defattr(-,root,root)
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/*

%changelog
openSUSE Build Service is sponsored by