Age, metallicity, and star formation history of spheroidal galaxies in cluster atz∼ 1.2