The Signature of the 5-minute Photospheric Oscillation on the Solar Spectral Profiles