File perl-Cairo.spec of Package perl-Cairo
#
# spec file for package perl-Cairo (Version 1.060 )
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Cairo
Version: 1.060
Release: 1
Requires: perl = %{perl_version} perl-ExtUtils-Depends perl-ExtUtils-PkgConfig
BuildRequires: cairo-devel perl-ExtUtils-Depends perl-ExtUtils-PkgConfig pkgconfig
AutoReqProv: on
Group: Development/Libraries/Perl
License: LGPL v2.1 or later
Url: http://cpan.org//authors/id/T/TS/TSCH/
Summary: Perl bindings to the cairo graphics library.
Source: Cairo-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Perl bindings to the cairo graphics library
(http://www.cairographics.org).
Authors:
--------
Ross McFarland <rwmcfa1@neces.com>
Torsten Schoenfeld <kaffeetisch@gmx.de>
%prep
%setup -q -n Cairo-%{version}
%build
#disable some randomly failing tests
mv t/Cairo.t t/Cairo.tt
mv t/CairoFont.t t/CairoFont.tt
perl Makefile.PL
make
%check
make test
%install
rm -rf $RPM_BUILD_ROOT
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc LICENSE MANIFEST NEWS TODO MANIFEST.SKIP README examples
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/Cairo
%{perl_vendorarch}/Cairo.pm
%{perl_vendorarch}/Cairo/*
%dir %{perl_vendorarch}/Cairo
/var/adm/perl-modules/%{name}
%changelog
* Thu Jun 19 2008 anicka@suse.cz
- update to 1.060
* Cairo.pm: Add documentation for new API.
* Makefile.PL: Trap exceptions thrown by EU::PkgConfig->find.
When one occurs, exit with status 0 to indicate to CPAN testers
that their system isn't supported.
* t/Cairo.t: Wrap cairo_has_current_point.
* t/Cairo.t: Wrap cairo_path_extents.
* t/CairoSurface.t: Wrap cairo_format_stride_for_width. Adapt to
API changes: cairo_surface_copy_page and cairo_surface_show_page
don't return cairo_status_t anymore.
* CairoPath.xs: Fix the tied interface for paths on perl 5.6,
whose magic support was slightly broken. Also cleanup the tie
code a bit.
* t/CairoSurface.t: Wrap cairo_surface_copy_page and
cairo_surface_show_page.
* t/CairoSurface.t: Wrap cairo_ps_surface_restrict_to_level,
cairo_ps_get_levels, and cairo_ps_level_to_string.
* t/CairoSurface.t: Wrap cairo_ps_surface_set_eps and
cairo_ps_surface_get_eps.
* Mon Jan 14 2008 anicka@suse.cz
- update to 1.045
* CairoSurface.xs: Use perl's New*/Safefree facilities instead of
calloc/malloc/free as the latter aren't safe on some platforms,
notably Win32.
* t/CairoSurface.t: Mark the isa_ok test for PDF surfaces returned
by create_similar() as TODO, since the returned surface's type
is not reliable at this point.
* Wed Nov 21 2007 anicka@suse.cz
- update to 1.044
* Cairo.pm: Add entries for the various surfaces to the API
listing.
* Makefile.PL: Update the list of exported symbols.
* t/CairoPattern.t: When Test::Number::Delta is not available,
skip the relevant tests instead of faking passes.
* t/CairoSurface.t: Don't use the hash-ref variant of
the constant pragma. It's not supported by the version
that ships with perl 5.6.
- enable fixed tests again
* Thu Nov 01 2007 anicka@suse.cz
- update to 1.043
* Makefile.PL: Use BEGIN { require 5.006; } instead of require
v5.6.0. Make missing Test::Number::Delta non-fatal; add it
to the build_requires META.yml field.
* t/CairoPattern.t: Cope with Test::Number::Delta being
unavailable.
* Makefile.PL: Make EU::MM output configure_requires and
no_index information when generating META.yml.
* t/CairoSurface.t (PNG surface tests): Since exceptions are
actually propagated now, throw the same kind of exception
we test for.
* Makefile.PL: Require perl >= 5.6.0 for some features we use,
like `our“.
* cairo-perl.h: Add and use the portability header ppport.h from
Devel::PPPort to hopefully fix compilation on older perls.
* Makefile.PL: Make missing prerequisites fatal.
* cairo-perl.typemap: Add const char * for backwards
compatibility.
* doctypes: Add missing type names.
* Mon Jun 11 2007 anicka@suse.cz
- update to 1.041
* test fixes
* Tue May 15 2007 anicka@suse.cz
- update to 1.040
* t/CairoSurface.t: For now, skip tests that make cairo crash.
* Cairo.pm: Document new API. Mark functions that were added
after cairo 1.0.
* Cairo.xs: If CAIRO_PERL_DEBUG is true, call
cairo_debug_reset_static_data at exit.
* t/CairoSurface.t: Re-add the binding for cairo_surface_finish.
* Wed Mar 28 2007 anicka@suse.cz
- temporarily disable t/CairoSurface.t because cairo segfaults
when the test is run (reported as #258451)
* Mon Feb 26 2007 anicka@suse.cz
- update to 1.023
- remove last patch (fixed in upstream)
* Fri Jan 05 2007 anicka@suse.cz
- fix endianness problem in t/CairoSurface.t (patch from upstream)
* Tue Jan 02 2007 anicka@suse.cz
- update to 1.022
* CairoSurface.xs, t/CairoSurface.t: Make
Cairo::ImageSurface::get_data usable by specifying the buffer
length.
* Tue Dec 12 2006 anicka@suse.cz
- update to 1.021
* MakeHelper.pm, CairoSurface.t: When comparing enum values, look
at length+1, not just length, bytes to discern string pairs like
'color' and 'color-alpha'.
* Mon Sep 25 2006 anicka@suse.cz
- update to 1.01
* test fixes
* xs/CairoSurface.xs: Cosmetical changes.
* Tue Sep 12 2006 anicka@suse.cz
- package created