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 7d02609711.

https://bugzilla.redhat.com/show_bug.cgi?id=1201782
This commit is contained in:
Kalev Lember 2015-06-30 21:04:06 +02:00
parent 4ae2588657
commit 0c5769dd72

View File

@ -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 <klember@redhat.com> - 3.17.1-3
- Split non-cairo parts python3-gobject into a subpackage
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild