php3 build needs libraries and includes from apache-devel, and postgresql-devel it doesn4t make a check before building since rpm3, there is a BuildPrereq tag that could be used for stoping the build process if there are no such libraries Name: php BuildPrereq: apache-devel %package pgsql BuildPrereq: postgresql-devel
fixed in 3.0.12-5.