Hello community, here is the log from the commit of package perl-GD checked in at Fri Sep 12 18:10:43 CEST 2008. -------- --- perl-GD/perl-GD.changes 2008-06-19 17:19:43.000000000 +0200 +++ /mounts/work_src_done/STABLE/perl-GD/perl-GD.changes 2008-09-10 17:26:49.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Sep 10 17:00:43 CEST 2008 - anicka@suse.cz + +- update to 2.41 + * Added backend support for grouping features in GD::SVG module. + +------------------------------------------------------------------- Old: ---- GD-2.39.tar.bz2 New: ---- GD-2.41.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-GD.spec ++++++ --- /var/tmp/diff_new_pack.eR9683/_old 2008-09-12 18:10:33.000000000 +0200 +++ /var/tmp/diff_new_pack.eR9683/_new 2008-09-12 18:10:33.000000000 +0200 @@ -1,10 +1,17 @@ # -# spec file for package perl-GD (Version 2.39) +# spec file for package perl-GD (Version 2.41) # # 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. # +# 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/ # @@ -13,7 +20,7 @@ Name: perl-GD BuildRequires: freetype2-devel gd-devel libjpeg-devel libpng-devel xorg-x11-devel -Version: 2.39 +Version: 2.41 Release: 1 Provides: GD Requires: perl = %{perl_version} @@ -77,6 +84,9 @@ /var/adm/perl-modules/%{name} %changelog +* Wed Sep 10 2008 anicka@suse.cz +- update to 2.41 + * Added backend support for grouping features in GD::SVG module. * Thu Jun 19 2008 anicka@suse.cz - update to 2.39 * Makefile.PL will refuse to run if the proper version of ++++++ GD-2.39.tar.bz2 -> GD-2.41.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/GD-2.39/ChangeLog new/GD-2.41/ChangeLog --- old/GD-2.39/ChangeLog 2008-04-21 16:10:51.000000000 +0200 +++ new/GD-2.41/ChangeLog 2008-08-07 21:14:40.000000000 +0200 @@ -1,3 +1,5 @@ +2.41 Added backend support for grouping features in GD::SVG module. +2.40 ** Do not use - contains a bug ** 2.39 Makefile.PL will refuse to run if the proper version of libgd is unavailable. 2.38 Fixed bizarre warning about /usr/include/gd.h != /usr/include/gd.h. 2.37 GD/Image.pm did not bring in croak() properly, meaning that incorrect error messages are printed out when any of the newFromXXX() calls are made. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/GD-2.39/GD/Group.pm new/GD-2.41/GD/Group.pm --- old/GD-2.39/GD/Group.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/GD-2.41/GD/Group.pm 2008-08-07 20:39:13.000000000 +0200 @@ -0,0 +1,33 @@ +package GD::Group; + +# Simple object for recursive grouping. Does absolutely nothing with GD, +# but works nicely with GD::SVG. + +use strict; + +our $AUTOLOAD; +our $VERSION = 1.00; + +sub AUTOLOAD { + my ($pack,$func_name) = $AUTOLOAD =~ /(.+)::([^:]+)$/; + my $this = shift; + $this->{gd}->currentGroup($this->{group}); + $this->{gd}->$func_name(@_); +} + +sub new { + my $this = shift; + my ($gd,$group) = @_; + return bless {gd => $gd, + group => $group},ref $this || $this; +} + +sub DESTROY { + my $this = shift; + my $gd = $this->{gd}; + my $grp = $this->{group}; + $gd->endGroup($grp); +} + + +1; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/GD-2.39/GD/Simple.pm new/GD-2.41/GD/Simple.pm --- old/GD-2.39/GD/Simple.pm 2007-01-26 19:16:19.000000000 +0100 +++ new/GD-2.41/GD/Simple.pm 2008-08-07 20:16:25.000000000 +0200 @@ -155,6 +155,7 @@ use strict; use GD; +use GD::Group; use Math::Trig; use Carp 'croak'; @@ -970,6 +971,11 @@ return ($h, $s, $v); } +sub newGroup { + my $self = shift; + return $self->GD::newGroup(@_); +} + 1; __DATA__ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/GD-2.39/GD.pm new/GD-2.41/GD.pm --- old/GD-2.39/GD.pm 2008-04-21 16:10:30.000000000 +0200 +++ new/GD-2.41/GD.pm 2008-08-07 21:14:26.000000000 +0200 @@ -16,7 +16,7 @@ use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $AUTOLOAD); -$VERSION = '2.39'; +$VERSION = '2.41'; @ISA = qw(Exporter DynaLoader); # Items to export into callers namespace by default. Note: do not export @@ -120,6 +120,13 @@ return GD::Font->Giant; } +sub GD::Image::startGroup { } # does nothing - used by GD::SVG +sub GD::Image::endGroup { } # does nothing - used by GD::SVG +sub GD::Image::newGroup { + my $self = shift; + GD::Group->new($self,$self->startGroup); +} + =head1 NAME GD.pm - Interface to Gd Graphics Library @@ -1528,6 +1535,24 @@ =back +=head2 Grouping Methods + +GD does not support grouping of objects, but GD::SVG does. In that +subclass, the following methods declare new groups of graphical +objects: + +=over 4 + +=item $image->startGroup([$id,\%style]) + +=item $image->endGroup() + +=item $group = $image->newGroup + +See LGD::SVG for information. + +=back + =head1 Polygons A few primitive polygon creation and manipulation methods are diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/GD-2.39/MANIFEST new/GD-2.41/MANIFEST --- old/GD-2.39/MANIFEST 2005-10-19 13:53:26.000000000 +0200 +++ new/GD-2.41/MANIFEST 2008-08-07 20:39:01.000000000 +0200 @@ -5,6 +5,7 @@ GD/Polygon.pm GD/Polyline.pm GD/Simple.pm +GD/Group.pm MANIFEST META.yml Module meta-data (added by MakeMaker) Makefile.PL diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/GD-2.39/META.yml new/GD-2.41/META.yml --- old/GD-2.39/META.yml 2008-04-21 16:14:02.000000000 +0200 +++ new/GD-2.41/META.yml 2008-08-07 21:15:23.000000000 +0200 @@ -1,6 +1,6 @@ --- #YAML:1.0 name: GD -version: 2.39 +version: 2.41 abstract: Interface to Gd Graphics Library license: ~ author: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org