We've got some updates regarding OBS and GitHub/GitLab integration. Have a look and let us know what you think! 🧐


File python-gnome.spec of Package python-gnome

# spec file for package python-gnome
# 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-gnome
%define _name   gnome-python
Version:        2.28.1
Release:        0
Summary:        Python bindings for GNOME
License:        LGPL-2.1+
Group:          Development/Libraries/Python
Url:            ftp://ftp.gnome.org/pub/gnome/sources/gnome-python
Source:         %{_name}-%{version}.tar.bz2
Source1:        README.openSUSE
Source99:       baselibs.conf
BuildRequires:  fdupes
BuildRequires:  libbonobo-devel
BuildRequires:  libgnome-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  python-devel
BuildRequires:  python-gtk-devel
BuildRequires:  python-orbit-devel
Requires:       python-bonobo
Requires:       python-gnomecanvas
Requires:       python-gtk
# Explicitly require all subpackages, so packages depending on python-gnome get
# all modules. Note that the Requires above are really needed by the
# python-gnome bindings.
#Requires:       python-bonobo
Requires:       python-gconf
#Requires:       python-gnomecanvas
Requires:       python-gnomevfs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains Python bindings for libgnome and libgnomeui.

%package -n python-bonobo
Summary:        Python bindings for Bonobo
Group:          Development/Libraries/Python
Requires:       python-gnomecanvas
Requires:       python-gtk
Requires:       python-orbit

%description -n python-bonobo
This package contains Python bindings for Bonobo.

%package -n python-gconf
Summary:        Python bindings for GConf
Group:          Development/Libraries/Python
Requires:       python-gobject2

%description -n python-gconf
This package contains Python bindings for GConf.

%package -n python-gnomecanvas
Summary:        Python bindings for libgnomecanvas
Group:          Development/Libraries/Python
Requires:       python-gtk

%description -n python-gnomecanvas
This package contains Python bindings for libgnomecanvas.

%package -n python-gnomevfs
Summary:        Python bindings for GNOME-VFS
Group:          Development/Libraries/Python
Requires:       python-gobject2

%description -n python-gnomevfs
This package contains Python bindings for GNOME-VFS.

%package devel
Summary:        Headers for python-gnome
Group:          Development/Libraries/Python
# This will bring in all subpackages
Requires:       %{name} = %{version}
Requires:       python-gtk-devel

%description devel
Headers for python-gnome

%setup -q -n %{_name}-%{version}
cp -a %{S:1} .

%configure --disable-static
make %{?_smp_mflags}

find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%fdupes %{buildroot}%{py_sitedir}
%fdupes %{buildroot}%{_datadir}

rm -rf %{buildroot}

# python-gnome

%dir %{py_sitedir}/gtk-2.0/gnome

%files -n python-bonobo

%files -n python-gconf

%files -n python-gnomecanvas

%files -n python-gnomevfs

%files devel
%doc examples/
# while in theory, this directory should be created and owned by python-gtk,
# there's nothing else using it, so we just own it here
%dir %{_datadir}/pygtk/2.0/argtypes
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html

openSUSE Build Service is sponsored by