From 0c5769dd72ae55a83a66ffa9079f35eceea93c3a Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 30 Jun 2015 21:04:06 +0200 Subject: [PATCH] Split non-cairo parts python3-gobject into a subpackage Apply the same treatment to the python3 subpackage as was done to the python2 one in commit 7d0260971174b64d6186d7674222bb0049b4cd2f. https://bugzilla.redhat.com/show_bug.cgi?id=1201782 --- pygobject3.spec | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/pygobject3.spec b/pygobject3.spec index 34bc758..4cbd5ed 100644 --- a/pygobject3.spec +++ b/pygobject3.spec @@ -22,7 +22,7 @@ Name: pygobject3 Version: 3.17.1 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPLv2+ and MIT Group: Development/Languages Summary: Python 2 bindings for GObject Introspection @@ -93,15 +93,25 @@ This package contains files required to embed PyGObject Summary: Python 3 bindings for GObject Introspection Group: Development/Languages +Requires: python3-gobject-base%{?_isa} = %{version}-%{release} + # The cairo override module depends on this Requires: python3-cairo%{?_isa} -Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version} %description -n python3-gobject The python3-gobject package provides a convenient wrapper for the GObject library and and other libraries that are compatible with GObject Introspection, for use in Python 3 programs. +%package -n python3-gobject-base +Summary: Python 3 bindings for GObject Introspection base package +Group: Development/Languages +Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version} + +%description -n python3-gobject-base +This package provides the non-cairo specific bits of the GObject Introspection +library. + %endif # with_python3 %prep @@ -202,15 +212,23 @@ xvfb-run make DESTDIR=$RPM_BUILD_ROOT check %{verbosity} %if 0%{?with_python3} %files -n python3-gobject %defattr(644, root, root, 755) +%{python3_sitearch}/gi/_gi_cairo*.so + +%files -n python3-gobject-base +%defattr(644, root, root, 755) %doc AUTHORS NEWS README COPYING %dir %{python3_sitearch}/gi %{python3_sitearch}/gi/* +%exclude %{python3_sitearch}/gi/_gi_cairo*.so %{python3_sitearch}/pygobject-*.egg-info %{python3_sitearch}/pygtkcompat/ %endif # with_python3 %changelog +* Tue Jun 30 2015 Kalev Lember - 3.17.1-3 +- Split non-cairo parts python3-gobject into a subpackage + * Thu Jun 18 2015 Fedora Release Engineering - 3.17.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild