Processing of spectroscopic data and validation of data from the Gaia satellite