The signature of the 5-minute photospheric oscillation on the solar spectral line profiles