forked from pool/python-cairocffi
Accepting request 246621 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/246621 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cairocffi?expand=0&rev=3
This commit is contained in:
commit
9ff777d99a
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user