From 76b282ae851f1a2c78eebd25d03036991e786551 Mon Sep 17 00:00:00 2001 From: amateja Date: Thu, 28 Jan 2010 12:35:39 +0000 Subject: [PATCH] - fixed build for libpng >= 1.4 Changed files: gd.spec -> 1.132 --- gd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gd.spec b/gd.spec index fd3a730..af25242 100644 --- a/gd.spec +++ b/gd.spec @@ -22,7 +22,7 @@ BuildRequires: automake %{?with_fontconfig:BuildRequires: fontconfig-devel} BuildRequires: freetype-devel >= 2.0 BuildRequires: gettext-devel -BuildRequires: libpng-devel +BuildRequires: libpng-devel >= 2:1.4.0 BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: libtool >= 1:1.4.3 @@ -147,6 +147,9 @@ para uso pelos programas que usam a libgd. # hack to avoid inclusion of -s in --ldflags %{__perl} -pi -e 's,\@LDFLAGS\@,,g' config/gdlib-config.in +# png_check_sig was replaced by png_sig_cmp in libpng +%{__sed} -i -e 's/if (!png_check_sig (sig, 8))/if (png_sig_cmp(sig, 0, 8))/g' gd_png.c + %build %{__libtoolize} %{__aclocal} -- 2.44.0