Hi Billy,
a) If the property is donated, then no taxes are due in Spain, since the tax is paid where the property is located. (if it was money instead of an estate, then the tax is due, but not in this case).
b) If it is left in a last will, no taxes are due either, since the tax is paid where the death person lived (and it was not Spain in this case, right?).
In both cases, the new owner, resident in Spain shall include the value of this property, no matter where it is located, in his/her "impuesto sobre el patrimonio", a tax where yearly people pay between 0,2 and 0,5 % of the value of their properties....
I hope this is useful enough for you....