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-[0-9.]*.tar.gz
/GD-2.46.tar.gz
/GD-2.49.tar.gz
/GD-2.50.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,72 +1,102 @@
Name: perl-GD Name: perl-GD
Version: 2.50 Version: 2.56
Release: 4%{?dist} Release: 1%{?dist}
Summary: Perl interface to the GD graphics library Summary: Perl interface to the GD graphics library
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic 2.0
URL: http://search.cpan.org/dist/GD/ URL: http://search.cpan.org/dist/GD/
Source0: http://www.cpan.org/authors/id/L/LD/LDS/GD-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/L/LD/LDS/GD-%{version}.tar.gz
Patch0: GD-2.56-utf8.patch
# see http://rt.cpan.org/Public/Bug/Display.html?id=85789 # Module Build
Patch0: %{name}-2.49-skip-2-10.patch
BuildRequires: gd-devel >= 2.0.28 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(AutoLoader)
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(DynaLoader) BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(FileHandle)
Requires: gd >= 2.0.28 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: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: gd >= 2.0.28
%{?perl_default_filter} %{?perl_default_filter}
%description %description
This is a autoloadable interface module for GD, a popular library This is a autoloadable interface module for GD, a popular library
for creating and manipulating PNG files. With this library you can for creating and manipulating PNG files. With this library you can
create PNG images on the fly or modify existing files. create PNG images on the fly or modify existing files.
%prep %prep
%setup -q -n GD-%{version} %setup -q -n GD-%{version}
%patch0 -p1 # Re-code documentation as UTF8
%patch0
sed -i 's|-Wformat=0||g' Makefile.PL
# Fix shellbangs in sample scripts
perl -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \ perl -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \
qd.pl demos/{*.{pl,cgi},truetype_test} demos/{*.{pl,cgi},truetype_test}
chmod -c 644 bdf_scripts/* demos/*
chmod -c 755 qd.pl
%build %build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" perl Build.PL
make %{?_smp_mflags} OPTIMIZE="%{optflags}" ./Build
%install %install
make pure_install PERL_INSTALL_ROOT=%{buildroot} ./Build install --destdir=%{buildroot} --installdirs=vendor --create_packlist=0
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}
chmod -R u+w %{buildroot}/*
# These files should not have been installed
rm %{buildroot}%{_bindir}/bdf2gdfont.PLS \
%{buildroot}%{_bindir}/README \
%{buildroot}%{_mandir}/man1/bdf2gdfont.PLS.1*
%check %check
%ifarch ppc ./Build test
: ignored as testsuite fails on ppc
%else
make test
%endif
%files %files
%license LICENSE
%doc ChangeLog README README.QUICKDRAW demos/ %doc ChangeLog README README.QUICKDRAW demos/
%{_bindir}/* %{_bindir}/bdf2gdfont.pl
%{perl_vendorarch}/auto/GD %{_bindir}/bdftogd
%{perl_vendorarch}/GD* %{_bindir}/cvtbdf.pl
%{perl_vendorarch}/qd.pl %{perl_vendorarch}/auto/GD/
%{_mandir}/man1/*.1* %{perl_vendorarch}/GD.pm
%{_mandir}/man3/*.3pm* %{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 %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 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.50-4
- Perl 5.20 rebuild - 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 * Tue Jul 19 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.25-1
- Update to 2.25. - 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 - rebuilt
* Wed Mar 9 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.23-1 * 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