2011-08-23 08:54:06 +00:00
|
|
|
#
|
2011-08-23 08:54:19 +00:00
|
|
|
# spec file for package python-gobject2
|
2011-08-23 08:54:06 +00:00
|
|
|
#
|
2020-03-27 20:34:48 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-08-23 08:54:06 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2020-03-27 20:34:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-23 08:54:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2020-03-27 20:34:48 +00:00
|
|
|
%define local_py_requires %py_requires
|
|
|
|
|
%define local_py_sitedir %{python2_sitearch}
|
2011-08-23 08:54:06 +00:00
|
|
|
%define _name pygobject
|
2018-07-23 11:45:09 +00:00
|
|
|
Name: python-gobject2
|
2017-12-22 16:22:10 +00:00
|
|
|
Version: 2.28.7
|
2012-09-17 12:07:56 +00:00
|
|
|
Release: 0
|
2018-07-23 11:45:09 +00:00
|
|
|
Summary: Python bindings for GObject
|
|
|
|
|
License: LGPL-2.1-or-later
|
2020-03-27 20:34:48 +00:00
|
|
|
URL: https://ftp.gnome.org/pub/GNOME/sources/pygobject/
|
2017-12-22 16:22:10 +00:00
|
|
|
Source: http://download.gnome.org/sources/pygobject/2.28/%{_name}-%{version}.tar.xz
|
2011-08-23 08:54:06 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
BuildRequires: libffi-devel
|
2018-07-23 11:45:09 +00:00
|
|
|
%{local_py_requires}
|
2011-08-23 08:54:06 +00:00
|
|
|
BuildRequires: python-cairo-devel
|
|
|
|
|
BuildRequires: python-devel
|
2017-02-28 08:59:20 +00:00
|
|
|
Provides: python2-gobject2 = %{version}
|
2011-08-23 08:54:06 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Pygobjects is an extension module for python that gives you access to
|
|
|
|
|
GLib's GObjects.
|
|
|
|
|
|
|
|
|
|
%package cairo
|
2018-07-23 11:45:09 +00:00
|
|
|
%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo)
|
2011-08-23 08:54:06 +00:00
|
|
|
Summary: Python bindings for GObject -- Cairo bindings
|
|
|
|
|
Requires: %{name} = %{version}
|
2020-03-27 20:34:48 +00:00
|
|
|
Supplements: (%{name} and %{cairo_real_package})
|
2011-08-23 08:54:06 +00:00
|
|
|
|
|
|
|
|
%description cairo
|
|
|
|
|
Pygobjects is an extension module for python that gives you access to
|
|
|
|
|
GLib's GObjects.
|
|
|
|
|
|
|
|
|
|
This package contains the Python Cairo bindings for GObject.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Python bindings for GObject
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Provides: python-gobject2-doc = %{version}
|
|
|
|
|
Obsoletes: python-gobject2-doc < %{version}
|
2017-02-28 08:59:20 +00:00
|
|
|
Provides: python2-gobject2-devel = %{version}
|
2011-08-23 08:54:06 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains files required to build wrappers for gobject
|
|
|
|
|
addon libraries such as pygtk.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2011-08-23 11:52:10 +00:00
|
|
|
%configure --disable-static --disable-introspection
|
2020-03-27 20:34:48 +00:00
|
|
|
%make_build
|
2011-08-23 08:54:06 +00:00
|
|
|
|
|
|
|
|
%install
|
2020-03-27 20:34:48 +00:00
|
|
|
%make_install
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-08-23 08:54:06 +00:00
|
|
|
rm examples/Makefile*
|
2013-09-29 16:59:39 +00:00
|
|
|
%fdupes %{buildroot}
|
2011-08-23 08:54:06 +00:00
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc AUTHORS NEWS README ChangeLog examples
|
|
|
|
|
%{local_py_sitedir}/glib/
|
|
|
|
|
%{local_py_sitedir}/gobject/
|
2013-09-29 16:59:39 +00:00
|
|
|
%dir %{local_py_sitedir}/gtk-2.0
|
2011-08-23 08:54:06 +00:00
|
|
|
%{local_py_sitedir}/gtk-2.0/dsextras.py*
|
2013-09-29 16:59:39 +00:00
|
|
|
%{local_py_sitedir}/gtk-2.0/gio/
|
2011-08-23 08:54:06 +00:00
|
|
|
%{local_py_sitedir}/pygtk.*
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/pygtk-2.0/
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/pygobject-2.0.pc
|
|
|
|
|
## codegen
|
|
|
|
|
%{_bindir}/pygobject-codegen-2.0
|
2017-12-22 16:22:10 +00:00
|
|
|
%{_datadir}/%{_name}/2.0/codegen/
|
2011-08-23 08:54:06 +00:00
|
|
|
# we explicitly list the directories here to be sure we don't include something
|
|
|
|
|
# that should live in the main package
|
|
|
|
|
%dir %{_datadir}/%{_name}
|
|
|
|
|
%dir %{_datadir}/%{_name}/2.0
|
|
|
|
|
%{_datadir}/%{_name}/2.0/defs/
|
|
|
|
|
%{_datadir}/%{_name}/xsl/
|
|
|
|
|
## doc: we need the files there since building API docs for other python
|
|
|
|
|
## bindings require some files from here
|
|
|
|
|
# Own these repositories to not depend on gtk-doc while building:
|
|
|
|
|
%dir %{_datadir}/gtk-doc
|
|
|
|
|
%dir %{_datadir}/gtk-doc/html
|
2011-08-24 12:47:11 +00:00
|
|
|
%{_datadir}/gtk-doc/html/pygobject/
|
2011-08-23 08:54:06 +00:00
|
|
|
|
|
|
|
|
%changelog
|