Cats spray, it's how they define their territory. It's what tells them they are safe, and "at home" give it time and he will spray less. It's just the fact of living with a cat that's all.
If you see the cat clawing the carpet or rubbing his face against things, try and promote this behavior...