File python-cairo.spec of Package python-cairo
#
# spec file for package python-cairo (Version 1.6.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-cairo
BuildRequires: gtk2-devel libjpeg-devel python-devel python-numeric update-desktop-files
%define _prefix /usr
License: LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
Group: Development/Libraries/Python
Summary: Python Bindings for Cairo
Version: 1.6.4
Release: 1
Url: http://www.cairographics.org/
Source: pycairo-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Suggests: python-gtk python-numeric
%py_requires
%description
Python bindings for cairo.
Authors:
--------
James Henstridge <james@daa.com.au>
Steve Chaplin <steve1097@yahoo.com.au>
Maarten Breddels
%package devel
License: LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
Summary: Headers for python-cairo
Group: Development/Libraries/Python
Requires: %name = %{version}
Requires: cairo-devel python-devel
%description devel
Headers for python-cairo
Authors:
--------
James Henstridge <james@daa.com.au>
Steve Chaplin <steve1097@yahoo.com.au>
Maarten Breddels
%prep
%setup -n pycairo-%{version}
%{?suse_update_config:%{suse_update_config -f}}
%build
%configure
%__make %{?jobs:-j%jobs}
%install
%makeinstall
rm $RPM_BUILD_ROOT/%{py_sitedir}/cairo/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING COPYING-* INSTALL NEWS README
%{py_sitedir}/cairo
%files devel
%defattr(-,root,root)
%{_includedir}/pycairo
%{_libdir}/pkgconfig/pycairo.pc
%changelog
* Fri Sep 12 2008 maw@suse.de
- Update to version 1.6.4:
+ Bugs fixed: bfo#16112
+ New methods: Context.has_current_point, Context.path_extents,
ImageSurface.format_stride_for_width, PSSurface.get_eps,
PSSurface.set_eps, PSSurface.ps_level_to_string,
PSSurface.restrict_to_level, Surface.copy_page, and
Surface.show_page
+ New Constants: cairo.PS_LEVEL_2, cairo.PS_LEVEL_3
+ Updated examples.
* Fri Jul 18 2008 jpr@suse.de
- Remove libsvg-cairo-devel from BuildRequires, it hasn't been
needed for a long time
* Thu Apr 03 2008 hpj@suse.de
- Upgraded to version 1.4.12:
* mingw32 compiler fixes.
* New methods added.
* The module cairo.gtk has been removed.
* Allow cairo.Context to be subclassed.
* Mon Feb 26 2007 maw@suse.de
- Don't package _cairo.la (#223703).
* Mon Sep 25 2006 jhargadon@suse.de
- update to version 1.2.2
- setup.py has been updated to allow installation by executing
$ python setup.py install
- examples/cairo_snippets/snippets/gradient_mask.py
A new example to demonstrate pattern masks.
- The cairo.svg module has been removed because:
1) Cairo does not include SVG parsing, so this module does not belong
in pycairo.
2) libsvg-cairo (the underlying C library) is unmaintained.
- Pycairo requires cairo 1.2.2 (or later)
* Wed Aug 16 2006 cthiel@suse.de
- split of -devel package
* Thu Aug 10 2006 cthiel@suse.de
- turn Requires to python-gtk and python-numeric into Suggests, as they are
optional anyway
- update to version 1.2.0 (fixes #198391)
* pycairo has been updated to work with cairo 1.2.0.
* new methods: Surface.set_fallback_resolution, Surface_get_content
ImageSurface_get_format, Image_surface_get_stride
* deleted methods: PDFSurface.set_dpi, PSSurface.set_dpi,
SVGSurface.set_dpi
- replaced by Surface.set_fallback_resolution
* cairo.FORMAT_RGB16_565 added
- overview of changes from pycairo 1.0.2 to pycairo 1.1.6
* pycairo has been updated to work with cairo 1.1.6.
* SVGSurface
* new methods: Context.get_group_target, Context.new_sub_path,
Context.pop_group, Context.pop_group_to_source, Context.push_group,
Context.push_group_with_content, FontOptions.get_antialias,
FontOptions.get_hint_metrics, FontOptions.get_hint_style,
FontOptions.get_subpixel_order, FontOptions.set_antialias,
FontOptions.set_hint_metrics, FontOptions.set_hint_style,
FontOptions.set_subpixel_order, PDFSurface.set_size,
PSSurface.dsc_begin_page_setup, PSSurface.dsc_begin_setup,
PSSurface.dsc_comment, PSSurface.set_size, ScaledFont.get_font_face,
ScaledFont.text_extents, Surface.get_device_offset,
XlibSurface.get_depth
* updated methods:
- PDFSurface()/PSSurface() - can now write to file-like objects (like
StringIO).
- surface.write_to_png() and ImageSurface.create_from_png() can now
write to file-like objects (like StringIO).
- select_font_face, show_text, text_extents and text_path now accept
unicode objects.
* misc bug fixes.
* new examples:
- examples/cairo_snippets/snippets_svg.py
- examples/cairo_snippets/snippets/ellipse.py
- examples/cairo_snippets/snippets/group.py
- examples/svg/svgconvert.py
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 sbrabec@suse.cz
- New SuSE package, version 1.0.2 (#120043).