its got nothing to do with Spanish ministry of health. It is a thai immigration requirement, when you check in those requirements will appear for the check in staff to see, it depends how thorough they are
it has to say rt pcr however it is a small detail and many have successfully boarded without rt on the certificate. You should realise you are taking a risk. It is dependent on the check in staff