From e4cbfa7f29502ab18ea32d31bf385f512f451753f742e4df955bd2028f4f776e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Fri, 15 Apr 2016 09:36:47 +0000 Subject: [PATCH] Accepting request 389424 from GNOME:Next - 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. - 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. OBS-URL: https://build.opensuse.org/request/show/389424 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/python-gobject?expand=0&rev=58 --- python-gobject.changes | 10 +++++++++- python-gobject.spec | 21 +++++++++++++++++++++ python3-gobject.changes | 10 +++++++++- python3-gobject.spec | 21 +++++++++++++++++++++ 4 files changed, 60 insertions(+), 2 deletions(-) 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)