Spectrum of spontaneous emission in a Fabry-Pérot cavity: the effects of atomic motion