]> git.pld-linux.org Git - packages/perl-GD.git/commitdiff
- updated to 2.56 auto/th/perl-GD-2.56-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 21 Jun 2015 17:55:56 +0000 (19:55 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 21 Jun 2015 17:55:56 +0000 (19:55 +0200)
- updated paths patch
- removed obsolete make patch
- added version patch (from git) and GD.xs workaround
- adjusted tests hack

perl-GD-make.patch [deleted file]
perl-GD-paths.patch
perl-GD-version.patch [new file with mode: 0644]
perl-GD.spec

diff --git a/perl-GD-make.patch b/perl-GD-make.patch
deleted file mode 100644 (file)
index 094f442..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- Makefile.PL~       2008-04-21 16:12:25.000000000 +0200
-+++ Makefile.PL        2008-12-01 18:32:10.637155295 +0100
-@@ -232,6 +232,7 @@
-                   'Math::Trig' => 0,
-                   },
-     'PM'        => { 'GD.pm' => '$(INST_LIBDIR)/GD.pm',
-+                   'GD/Group.pm' => '$(INST_LIBDIR)/GD/Group.pm',
-                      'GD/Polyline.pm' => '$(INST_LIBDIR)/GD/Polyline.pm',
-                      'GD/Polygon.pm' => '$(INST_LIBDIR)/GD/Polygon.pm',
-                      'GD/Simple.pm' => '$(INST_LIBDIR)/GD/Simple.pm',
index 2ab39cc157a4d76d0eca16ce7adff84fd73ae9c3..a840a76047022d69786f91d136f8221ceac75675 100644 (file)
  
  use GD;
  
---- GD-1.19/qd.pl      Mon Sep 14 22:28:54 1998
-+++ GD-1.19.new/qd.pl  Sat Oct  9 21:32:41 1999
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl
-+#!/usr/bin/perl
- # $Id$
 diff -urN GD-1.23/demos/truetype_test GD-1.23.paths/demos/truetype_test
 --- GD-1.23/demos/truetype_test        Tue Aug 31 03:25:26 1999
 +++ GD-1.23.paths/demos/truetype_test  Thu Feb 17 17:29:46 2000
diff --git a/perl-GD-version.patch b/perl-GD-version.patch
new file mode 100644 (file)
index 0000000..e40bcb4
--- /dev/null
@@ -0,0 +1,44 @@
+From 58eceb8a19cb893fc7e9abc3a725d8bb4761dec3 Mon Sep 17 00:00:00 2001
+From: sauoq <sauoq6@gmail.com>
+Date: Mon, 23 Mar 2015 09:34:21 -0400
+Subject: [PATCH] Fixes libgd ver check in Makefile.PL and Build.PL
+
+---
+ Build.PL    | 6 ++++--
+ Makefile.PL | 6 ++++--
+ 2 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/Build.PL b/Build.PL
+index ad31624..d3b5b8b 100644
+--- a/Build.PL
++++ b/Build.PL
+@@ -280,8 +280,10 @@ sub try_to_autoconfigure {
+   ($$lib_gd_path = $libdir) =~ s!/[^/]+$!!;
+   $$options      = $features;
+-  my ($minor)    = $version =~ /^2\.\d+\.(\d+)$/;
+-  $$options     .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33" if defined($minor) && $minor >= 33;
++  my ($minor, $patch)    = $version =~ /^2\.(\d+)\.(\d+)$/;
++  if ((defined($minor) && $minor > 0) or (defined($patch) && $patch >=33)) { 
++        $$options     .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33";
++  }
+   my @correct_inc = map {s/^-I// && $_} split /\s+/,$cflags;
+   check_for_stray_headers($includedir,@correct_inc);
+diff --git a/Makefile.PL b/Makefile.PL
+index 80ce95a..2b7551f 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -299,8 +299,10 @@ sub try_to_autoconfigure {
+   ($$lib_gd_path = $libdir) =~ s!/[^/]+$!!;
+   $$options      = $features;
+-  my ($minor)    = $version =~ /^2\.\d+\.(\d+)$/;
+-  $$options     .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33" if defined($minor) && $minor >= 33;
++  my ($minor, $patch)    = $version =~ /^2\.(\d+)\.(\d+)$/;
++  if ((defined($minor) && $minor > 0) or (defined($patch) && $patch >= 33)) { 
++    $$options     .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33";
++  }
+   my @correct_inc = map {s/^-I// && $_} split /\s+/,$cflags;
+   check_for_stray_headers($includedir,@correct_inc);
index 20fe7a2da537caf8dc3ba1ed29e4e9ce860daa2a..efe3975f5866b635cf0b19cb4535b8dd39fa5619 100644 (file)
@@ -6,14 +6,14 @@
 Summary:       GD - interface to GD graphics library
 Summary(pl.UTF-8):     GD - interfejs do biblioteki graficznej GD
 Name:          perl-GD
-Version:       2.53
-Release:       3
+Version:       2.56
+Release:       1
 License:       Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/GD/GD-%{version}.tar.gz
-# Source0-md5: d2c9b18123bcaff8672eb50f2eb37ed3
+# Source0-md5: c4b3afd98b2c4ce3c2e1027d101a8f1e
 Patch0:                %{name}-paths.patch
-Patch1:                %{name}-make.patch
+Patch1:                %{name}-version.patch
 URL:           http://search.cpan.org/dist/GD/
 BuildRequires: gd-devel >= 2.0.28
 BuildRequires: perl-devel >= 1:5.8.0
@@ -36,10 +36,13 @@ PNG.
 %prep
 %setup -q -n GD-%{version}
 %patch0 -p1
-%patch1 -p0
+%patch1 -p1
 
-# temporarily disable test10 (resulting image differs when from.jpg is read with libjpeg8)
-%{__perl} -pi -e "s/GD::Image->can\('newFromJpeg'\)/0/" t/GD.t
+# temporarily disable comparison test7 (fails with recent libs)
+%{__sed} -i -e 's/IMAGE_TESTS => 7/IMAGE_TESTS => 6/;s/tests => 11/tests => 10/' t/GD.t
+
+# MakeMaker fails to find it
+%{__mv} lib/GD.xs .
 
 %build
 %{__perl} Makefile.PL </dev/null \
@@ -71,7 +74,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/bdf2gdfont.pl
 %{perl_vendorarch}/GD.pm
 %{perl_vendorarch}/GD
-%{perl_vendorarch}/qd.pl
 %dir %{perl_vendorarch}/auto/GD
 %{perl_vendorarch}/auto/GD/autosplit.ix
 %attr(755,root,root) %{perl_vendorarch}/auto/GD/GD.so
This page took 0.140827 seconds and 4 git commands to generate.