Split non-cairo bits into subpackage

This commit is contained in:
Ray Strode 2012-12-13 10:18:24 -05:00 committed by Kalev Lember
parent 3e4825ef6c
commit 7d02609711

View File

@ -22,7 +22,7 @@
Name: pygobject3
Version: 3.7.1
Release: 2%{?dist}
Release: 3%{?dist}
License: LGPLv2+ and MIT
Group: Development/Languages
Summary: Python 2 bindings for GObject Introspection
@ -103,15 +103,24 @@ BuildRequires: dejavu-serif-fonts
BuildRequires: dbus-x11
%endif # with_check
Requires: %{name}-base = %{version}-%{release}
# The cairo override module depends on this
Requires: pycairo
Requires: gobject-introspection >= %{gobject_introspection_version}
%description
The %{name} package provides a convenient wrapper for the GObject library
for use in Python programs.
%package base
Summary: Python 2 bindings for GObject Introspection base package
Group: Development/Languages
Requires: gobject-introspection >= %{gobject_introspection_version}
%description base
This package provides the non-cairo specific bits of the GObject Introspection
library.
%package devel
Summary: Development files for embedding PyGObject introspection support
Group: Development/Languages
@ -226,10 +235,15 @@ xvfb-run make DESTDIR=$RPM_BUILD_ROOT check %{verbosity}
%files
%defattr(644, root, root, 755)
%{python_sitearch}/gi/_gi_cairo.so
%files base
%defattr(644, root, root, 755)
%doc AUTHORS NEWS README COPYING
%{_libdir}/libpyglib-gi-2.0-python.so*
%dir %{python_sitearch}/gi
%{python_sitearch}/gi/*
%exclude %{python_sitearch}/gi/_gi_cairo.so
%{python_sitearch}/pygobject-*.egg-info
%files devel
@ -251,6 +265,9 @@ xvfb-run make DESTDIR=$RPM_BUILD_ROOT check %{verbosity}
%endif # with_python3
%changelog
* Thu Dec 13 2012 Ray Strode <rstrode@redhat.com> 3.7.1-3
- Split non-cairo parts into a subpackage
* Mon Nov 12 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.1-2
- Remove lib64 rpaths (#817701)
- Move code examples to the -devel subpackage and fix the multilib