The attached patch file fixes a problem with php-4.3.10-2.3.0.src.rpm if
one builds ``with_pdflib=yes''. It does two things, forces with_gd=yes and
fixes the logic in the configure section.
Without this patch, the build fails looking for libjpeg and libpng.
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
``Anyone who thinks Microsoft never does anything truly innovative isn't
paying attention to the part of the company that pushes the state of
its art: Microsoft's legal department.''
--Ed Foster, InfoWorld Gripe Line columnist
--- php.spec.orig 2005-02-21 09:02:31.000000000 -0800
+++ php.spec 2005-02-28 15:08:33.360543690 -0800
@@ -38,7 +38,7 @@
Group: Language
License: PHP
Version: %{V_php}
-Release: 2.3.0
+Release: 20050228
# package options
%option with_bc no
@@ -99,6 +99,10 @@
%undefine with_ssl
%define with_ssl yes
%endif
+%if "%{with_pdflib}" == "yes"
+%undefine with_gd
+%define with_gd yes
+%endif
# list of sources
Source0:
http://static.php.net/www.php.net/distributions/php-%{V_php}.tar.gz
@@ -328,7 +332,7 @@
%endif
%if "%{with_gd}" == "yes"
--with-gd=%{l_prefix} \
-%if "%{with_pdflib}" != "yes"
+%if "%{with_pdflib}" == "yes"
--with-jpeg-dir=%{l_prefix} \
--with-png-dir=%{l_prefix} \
%endif