Non listed countries
If Spain has not agreement with your country, then you should get Spanish driving licence.
Citizens of many countries, including USA, Canada, Australia, New Zealand, South Africa or Russia, after 6 months of residency their foreign driving licence will no longer be valid in Spain and they must get Spanish Driving licence.