Methods for computing galaxies physical properties from their spectra