commit 1b5c8debe73dcc72ef1202ef083a0db43f0172d7 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Tue Dec 2 16:39:06 2014 +0000 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 .gitignore | 5 +-- GD-2.56-utf8.patch | 11 +++++ perl-GD-2.49-skip-2-10.patch | 16 ------- perl-GD.spec | 100 +++++++++++++++++++++++++++--------------- sources | 2 +- 5 files changed, 78 insertions(+), 56 deletions(-) --- diff --git a/.gitignore b/.gitignore index f280aad..3cea479 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/GD-2.56-utf8.patch b/GD-2.56-utf8.patch new file mode 100644 index 0000000..c44fcb7 --- /dev/null +++ b/GD-2.56-utf8.patch @@ -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�i. ++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. diff --git a/perl-GD.spec b/perl-GD.spec index a27955c..c25c8f8 100644 --- a/perl-GD.spec +++ b/perl-GD.spec @@ -1,72 +1,102 @@ 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} %description 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. %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@xxxxxxxxxxxx> - 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@xxxxxxxxxx> - 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 diff --git a/sources b/sources index fae4749..57c258a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b2f1e47dfc1c4e4fdda3277f165d36e5 GD-2.50.tar.gz +c4b3afd98b2c4ce3c2e1027d101a8f1e GD-2.56.tar.gz
-- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel