From ab111cdf09081ace4f21a95d5b52779ac385410757e6c239f516e3837a2bb594 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 27 Aug 2014 11:26:50 +0000 Subject: [PATCH] Accepting request 246620 from home:TheBlackCat:branches:devel:languages:python Split out optional gdk-pixbuf module. This avoids a lot of gtk dependencies for the main package, and is the recommended approach by upstream. OBS-URL: https://build.opensuse.org/request/show/246620 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cairocffi?expand=0&rev=3 --- python-cairocffi.changes | 7 +++++++ python-cairocffi.spec | 24 ++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/python-cairocffi.changes b/python-cairocffi.changes index 4fe4b3e..a278625 100644 --- a/python-cairocffi.changes +++ b/python-cairocffi.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Aug 27 10:06:19 UTC 2014 - toddrme2178@gmail.com + +- Split out optional gdk-pixbuf module. + This avoids a lot of gtk dependencies for the main package, and + is the recommended approach by upstream. + ------------------------------------------------------------------- Tue Aug 26 12:32:22 UTC 2014 - toddrme2178@gmail.com diff --git a/python-cairocffi.spec b/python-cairocffi.spec index afa63e4..2d6a797 100644 --- a/python-cairocffi.spec +++ b/python-cairocffi.spec @@ -31,7 +31,6 @@ BuildRequires: python-setuptools BuildRequires: typelib(GdkPixbuf) Requires: cairo-tools Requires: python-cffi >= 0.6 -Requires: typelib(GdkPixbuf) BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -45,6 +44,19 @@ a set of Python bindings and object-oriented API for cairo. Cairo is a 2D vector graphics library with support for multiple backends including image buffers, PNG, PostScript, PDF, and SVG file output. +%package pixbuf +Summary: Python cairo bindings based on cffi - pixbuf image loader +Requires: typelib(GdkPixbuf) +Requires: %{name} = %{version} + +%description pixbuf +cairocffi is a CFFI-based drop-in replacement for Pycairo, +a set of Python bindings and object-oriented API for cairo. +Cairo is a 2D vector graphics library with support for multiple backends +including image buffers, PNG, PostScript, PDF, and SVG file output. + +This package provides the optional gdk-pixbuf image loader module. + %prep %setup -q -n cairocffi-%{version} @@ -57,6 +69,14 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) %doc LICENSE CHANGES README.rst -%{python_sitelib}/* +%{python_sitelib}/cairocffi-%{version}-py*.egg-info +%{python_sitelib}/cairocffi/ +%exclude %{python_sitelib}/cairocffi/test_pixbuf.py* +%exclude %{python_sitelib}/cairocffi/pixbuf.py* + +%files pixbuf +%defattr(-,root,root,-) +%{python_sitelib}/cairocffi/pixbuf.py* +%{python_sitelib}/cairocffi/test_pixbuf.py* %changelog