I looked into this when I wanted one last year.
Spray guns usually vary from abou 8 to 14 cubic feet per minute air consumption, 12cf/m being a large suction fed gun which is something like what you'll probabally need if your doing a home spray job.
Consider as well that if your going to buy a good compressor you should try to use it as often as possible because it's going to cost you a fair bit, and it should last many years if you look after it,
I use mine with a little die grinder for port matching, and with a sander aswell, and these are going to use quite alot of air too because you use them for long periods of time, like spraying. I dont like having to wait for the pressure to build up.
I settled on a 14cf/min compressor, single cylinder to keep the cost down, with a fair sized horizontal res', because i've quite a bit of room.
Got it from Machine mart on a VAT free day, and so far it's been great and I've never had to wait