@ -1,24 +1,38 @@
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}
@ -30,43 +44,59 @@ 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