CEAR – Comisión Española de Ayuda al Refugiado (Spanish Commission for Refugee Aid) has a guide about how to get to Spain, what to do when you get there, temporary protection and international protection. The guide is also available in Ukrainian.
cear.es/guia-sobre-la-proteccion-en-espana-para-personas-afectadas-por-la-guerra-en-ucrania/