full imap source is included on php source for imap support, all what is really needed is c-client.a and the include files for c-client. Both could be on a -devel package from imap (bug 5098) when this imap-devel package is used, the imap source could be taked out, and will be replaced with the following from the php-3.0.12-4's spec (the lines that had changed are listed below) #Source2: imap-4.5.tar.Z #Patch1: imap-4.4-vfs.patch #Patch2: imap-4.5-linux.patch #Patch3: imap-4.5-redhat.patch %package imap BuildPrereq: imap-devel %prep %setup -q -n php-%{version} %build #cd imap-4.5 #make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" lnp #cd .. # IMAP module perl -pi -e 's/HAVE_IMAP 0/HAVE_IMAP 1/g' config.h gcc -shared -fPIC -DCOMPILE_DL=1 -I. -I/usr/include/apache \ -I/usr/include/imap -o imap.so ./functions/imap.c \ /usr/lib/c-client.a -lc
changed for next release.