'postfix.spec', ref. specfile from postfix-2.5.5-1.fc10.src.rpm
Probably edit line 1 and 2
%{?!MYSQL: %define MYSQL 1}
%{?!PGSQL: %define PGSQL 0}
to
%{?!MYSQL: %define MYSQL 0}
%{?!PGSQL: %define PGSQL 1}
And keep the modified spec file in /home/"username"/
and point to it when doing # rpmbuild -bb postfix.spec
... Interesting 'postfix.spec', you can get it with
wget
http://download.fedora.redhat.com/pu...1.fc10.src.rpm
and unpack the ' src.rpm ' with
rpm2cpio <package> | cpio -idmv
.....
Will build in 2 minutes with the above package on CentOS5.x.
( I have postgresql-8.1.11, don't know, if any problems with 8.3.7 ).
Result : postfix-2.5.5-1.i386.rpm postfix-pflogsumm-2.5.5-1.i386.rpm
You can edit line 43 " Release: 1%{?dist} " to Release: 1pg%{?dist}
( or your choice ) if you want a unique package identifier.
Buildrequires : postgresql-devel setup openldap-devel
pcre-devel cyrus-sasl-devel openssl-devel .
.....
Good luck !
.....