Spain is a signatory of the Schengen Agreement, so visitors from any of the Schengen member states enjoy free movement and there is no border control. If this is not your case, just apply for a tourist visa at the Spanish Embassy in your country of residence. For more information please visit Aer Lingus Passport and Visas.