Update to 2.56

- New upstream release 2.56
  - Fix misleading warning message about location of gd.h file
  - Fix regression tests to run on Ubuntu 12.04 64bit
  - Point to Gabor Szabo's GD::Simple tutorial, and fix link to repository
  - Fix image corruption in rotate180 when image height is odd
  - Great simplification of regression framework ought to fix make test problems
  - Remove archaic qd.pl (for creating QuickDraw picts) from distribution
- Switch to Module::Build flow as EU::MM flow is broken (CPAN RT#99901)
- Include upstream's LICENSE file (license now GPL+ or Artistic 2.0)
- Tests no longer failing on ppc
epel9
Paul Howarth 10 years ago
parent ee30ec020c
commit 1b5c8debe7

5
.gitignore vendored

@ -1,4 +1 @@
GD-2.44.tar.gz
/GD-2.46.tar.gz
/GD-2.49.tar.gz
/GD-2.50.tar.gz
/GD-[0-9.]*.tar.gz

@ -0,0 +1,11 @@
--- ChangeLog
+++ ChangeLog
@@ -72,7 +72,7 @@
2.18 This version needs libgd 2.0.28 or higher.
Fixed documentation bug in synopsis of GD::Simple.
Updated Polyline to version 0.20
-2.17 Added animated GIF patches from Jaakko Hyvätti.
+2.17 Added animated GIF patches from Jaakko Hyvätti.
Added dynamic bitmapped font loading support.
Added fontconfig support.
Added a simplified API called GD::Simple.

@ -1,16 +0,0 @@
diff -up GD-2.49/t/GD.t.orig GD-2.49/t/GD.t
--- GD-2.49/t/GD.t.orig 2013-06-11 15:19:21.161406687 +0200
+++ GD-2.49/t/GD.t 2013-06-11 15:20:05.973575005 +0200
@@ -127,7 +127,11 @@ sub compare {
last if $ok;
$fname = "$file-".++$counter;
}
- print $ok ? "ok $testNo" : "not ok $testNo","\n";
+ if ($testNo < 2 || $testNo > 10) {
+ print $ok ? "ok $testNo" : "not ok $testNo","\n";
+ } else {
+ print $ok ? "ok $testNo" : "ok $testNo # skip because change in PNG output ","\n";
+ }
}
}

@ -1,24 +1,38 @@
Name: perl-GD
Version: 2.50
Release: 4%{?dist}
Version: 2.56
Release: 1%{?dist}
Summary: Perl interface to the GD graphics library
Group: Development/Libraries
License: GPL+ or Artistic
License: GPL+ or Artistic 2.0
URL: http://search.cpan.org/dist/GD/
Source0: http://www.cpan.org/authors/id/L/LD/LDS/GD-%{version}.tar.gz
# see http://rt.cpan.org/Public/Bug/Display.html?id=85789
Patch0: %{name}-2.49-skip-2-10.patch
Patch0: GD-2.56-utf8.patch
# Module Build
BuildRequires: gd-devel >= 2.0.28
BuildRequires: perl(constant)
BuildRequires: perl
BuildRequires: perl(Config)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Module::Build)
# Module Runtime
BuildRequires: perl(AutoLoader)
BuildRequires: perl(Carp)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: gd >= 2.0.28
BuildRequires: perl(FileHandle)
BuildRequires: perl(Math::Trig)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Test Suite
BuildRequires: perl(constant)
BuildRequires: perl(FindBin)
BuildRequires: perl(IO::Dir)
BuildRequires: perl(lib)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: gd >= 2.0.28
%{?perl_default_filter}
@ -30,43 +44,59 @@ create PNG images on the fly or modify existing files.
%prep
%setup -q -n GD-%{version}
%patch0 -p1
sed -i 's|-Wformat=0||g' Makefile.PL
# Re-code documentation as UTF8
%patch0
# Fix shellbangs in sample scripts
perl -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \
qd.pl demos/{*.{pl,cgi},truetype_test}
chmod -c 644 bdf_scripts/* demos/*
chmod -c 755 qd.pl
demos/{*.{pl,cgi},truetype_test}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags} OPTIMIZE="%{optflags}"
perl Build.PL
./Build
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
./Build install --destdir=%{buildroot} --installdirs=vendor --create_packlist=0
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%{_fixperms} %{buildroot}
# These files should not have been installed
rm %{buildroot}%{_bindir}/bdf2gdfont.PLS \
%{buildroot}%{_bindir}/README \
%{buildroot}%{_mandir}/man1/bdf2gdfont.PLS.1*
%check
%ifarch ppc
: ignored as testsuite fails on ppc
%else
make test
%endif
./Build test
%files
%license LICENSE
%doc ChangeLog README README.QUICKDRAW demos/
%{_bindir}/*
%{perl_vendorarch}/auto/GD
%{perl_vendorarch}/GD*
%{perl_vendorarch}/qd.pl
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3pm*
%{_bindir}/bdf2gdfont.pl
%{_bindir}/bdftogd
%{_bindir}/cvtbdf.pl
%{perl_vendorarch}/auto/GD/
%{perl_vendorarch}/GD.pm
%{perl_vendorarch}/GD/
%{_mandir}/man1/bdf2gdfont.pl.1*
%{_mandir}/man3/GD.3*
%{_mandir}/man3/GD::Image.3*
%{_mandir}/man3/GD::Polygon.3*
%{_mandir}/man3/GD::Polyline.3*
%{_mandir}/man3/GD::Simple.3*
%changelog
* Tue Dec 2 2014 Paul Howarth <paul@city-fan.org> - 2.56-1
- Update to 2.56
- Fix misleading warning message about location of gd.h file
- Fix regression tests to run on Ubuntu 12.04 64bit
- Point to Gabor Szabo's GD::Simple tutorial, and fix link to repository
- Fix image corruption in rotate180 when image height is odd
- Great simplification of regression framework ought to fix make test problems
- Remove archaic qd.pl (for creating QuickDraw picts) from distribution
- Switch to Module::Build flow as EU::MM flow is broken (CPAN RT#99901)
- Include upstream's LICENSE file (license now GPL+ or Artistic 2.0)
- Tests no longer failing on ppc
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.50-4
- Perl 5.20 rebuild
@ -210,7 +240,7 @@ make test
* Tue Jul 19 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.25-1
- Update to 2.25.
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.23-2
* Wed Apr 6 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.23-2
- rebuilt
* Wed Mar 9 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.23-1

@ -1 +1 @@
b2f1e47dfc1c4e4fdda3277f165d36e5 GD-2.50.tar.gz
c4b3afd98b2c4ce3c2e1027d101a8f1e GD-2.56.tar.gz

Loading…
Cancel
Save