diff --git a/python-gobject.changes b/python-gobject.changes index 8d8c9c9..d77961f 100644 --- a/python-gobject.changes +++ b/python-gobject.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Apr 13 11:16:53 UTC 2016 - dimstar@opensuse.org + +- Split out a python[3]-gobject-Gdk subpackage: do not forcibly + pull in the entire X-stack for CLI tools requiring python-gobject + for dbus bindings for example. +- The new package supplements python-gobject together with libgdk. + ------------------------------------------------------------------- Tue Mar 22 10:01:37 UTC 2016 - dimstar@opensuse.org @@ -1418,7 +1426,7 @@ Tue Mar 1 08:30:34 UTC 2011 - fcrozat@novell.com ------------------------------------------------------------------- -Wed Feb 9 18:09:19 UTC 2011 - jmatejek@novell.com - + - added patch that switches to new Capsule API, because the deprecated PyCObject API will cause a segfault when warnings are exceptions (bnc#669802) diff --git a/python-gobject.spec b/python-gobject.spec index 131b1c3..1c4343e 100644 --- a/python-gobject.spec +++ b/python-gobject.spec @@ -67,6 +67,20 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Pygobjects is an extension module for python that gives you access to GLib's GObjects. +%package Gdk +Summary: Python bindings for GObject -- Gdk bindings +Group: Development/Libraries/Python +Requires: %{name} = %{version} +Requires: %{name}-cairo = %{version} +%define gdk_real_package %(rpm -q --qf '%%{NAME}' -f $(readlink /usr/lib64/libgdk-3.so -f)) +Supplements: packageand(%{name}:%{gdk_real_package}) + +%description Gdk +Pygobjects is an extension module for python that gives you access to +GLib's GObjects. + +This package contains the Python Gdk bindings for GObject. + %package cairo Summary: Python bindings for GObject -- Cairo bindings Group: Development/Libraries/Python @@ -134,6 +148,13 @@ rm -rf $RPM_BUILD_ROOT %{local_py_sitedir}/*.egg-info # Lives in cairo subpackage %exclude %{local_py_sitedir}/gi/_gi_cairo*.so +%exclude %{local_py_sitedir}/gi/overrides/Gdk.* +%exclude %{local_py_sitedir}/gi/overrides/Gtk.* + +%files Gdk +%defattr(-,root,root) +%{local_py_sitedir}/gi/overrides/Gdk.* +%{local_py_sitedir}/gi/overrides/Gtk.* %files cairo %defattr(-,root,root) diff --git a/python3-gobject.changes b/python3-gobject.changes index 8d8c9c9..d77961f 100644 --- a/python3-gobject.changes +++ b/python3-gobject.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Apr 13 11:16:53 UTC 2016 - dimstar@opensuse.org + +- Split out a python[3]-gobject-Gdk subpackage: do not forcibly + pull in the entire X-stack for CLI tools requiring python-gobject + for dbus bindings for example. +- The new package supplements python-gobject together with libgdk. + ------------------------------------------------------------------- Tue Mar 22 10:01:37 UTC 2016 - dimstar@opensuse.org @@ -1418,7 +1426,7 @@ Tue Mar 1 08:30:34 UTC 2011 - fcrozat@novell.com ------------------------------------------------------------------- -Wed Feb 9 18:09:19 UTC 2011 - jmatejek@novell.com - + - added patch that switches to new Capsule API, because the deprecated PyCObject API will cause a segfault when warnings are exceptions (bnc#669802) diff --git a/python3-gobject.spec b/python3-gobject.spec index 5fe2ee6..da5e6cd 100644 --- a/python3-gobject.spec +++ b/python3-gobject.spec @@ -67,6 +67,20 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Pygobjects is an extension module for python that gives you access to GLib's GObjects. +%package Gdk +Summary: Python bindings for GObject -- Gdk bindings +Group: Development/Libraries/Python +Requires: %{name} = %{version} +Requires: %{name}-cairo = %{version} +%define gdk_real_package %(rpm -q --qf '%%{NAME}' -f $(readlink /usr/lib64/libgdk-3.so -f)) +Supplements: packageand(%{name}:%{gdk_real_package}) + +%description Gdk +Pygobjects is an extension module for python that gives you access to +GLib's GObjects. + +This package contains the Python Gdk bindings for GObject. + %package cairo Summary: Python bindings for GObject -- Cairo bindings Group: Development/Libraries/Python @@ -134,6 +148,13 @@ rm -rf $RPM_BUILD_ROOT %{local_py_sitedir}/*.egg-info # Lives in cairo subpackage %exclude %{local_py_sitedir}/gi/_gi_cairo*.so +%exclude %{local_py_sitedir}/gi/overrides/Gdk.* +%exclude %{local_py_sitedir}/gi/overrides/Gtk.* + +%files Gdk +%defattr(-,root,root) +%{local_py_sitedir}/gi/overrides/Gdk.* +%{local_py_sitedir}/gi/overrides/Gtk.* %files cairo %defattr(-,root,root)