Is it ok to have the following in the %prep section
%prep
sudo yum -y groupinstall "Development Tools"
echo "Installing Development Tools"
sudo yum -y install python-devel.i386
sudo yum -y install postgresql84-server.i386 postgresql84-devel.i386
postgresql84-python.i386