%define modname GD %define modver 2.69 Summary: A perl5 interface to Thomas Boutell's gd library Name: perl-%{modname} Version: %perl_convert_version %{modver} Release: 1 License: Artistic Group: Development/Perl Url: http://metacpan.org/pod/GD Source0: http://www.cpan.org/modules/by-module/%{modname}/%{modname}-%{modver}.tar.gz Patch0: GD-2.56-utf8.patch Patch1: GD-2.64-cflags.patch BuildRequires: gd-devel BuildRequires: jpeg-devel BuildRequires: perl-devel BuildRequires: perl-JSON-PP BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(xpm) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libwebp) BuildRequires: perl(ExtUtils::PkgConfig) %description GD.pm is a autoloadable interface module for libgd, a popular library for creating and manipulating PNG files. With this library you can create PNG images on the fly or modify existing files. Features include: a. lines, polygons, rectangles and arcs, both filled and unfilled b. flood fills c. the use of arbitrary images as brushes and as tiled fill patterns d. line styling (dashed lines and the like) e. horizontal and vertical text rendering f. support for transparency and interlacing %prep %autosetup -p0 -n %{modname}-%{modver} # Remove Local from path find . -type f | xargs perl -p -i -e "s|/usr/local/|/usr/|g" # lib64 fixes, don't add /usr/lib/X11 to linker search path perl -pi \ -e "s|-L/usr/lib/X11||g;" \ -e "s|-L/usr/X11/lib||g;" \ -e "s|-L/usr/lib||g" \ Makefile.PL perl -pi -e "s|(/usr/X11R6)/lib|\1/%{_lib}|g" Build.PL %build %__perl Makefile.PL INSTALLDIRS=vendor %make CFLAGS="%{optflags}" #%check #%ifnarch ppc #%{__make} test #%endif %install %makeinstall_std %files %doc ChangeLog README README.QUICKDRAW demos %{perl_vendorarch}/GD* %{perl_vendorarch}/auto/GD* %{_bindir}/bdf2gdfont.pl %{_mandir}/man1/* %{_mandir}/man3/*