It is true that Spain has been claiming Gibraltar for ages, but thinking that we would go to war (regardless of nuke capability) over the Rock is not knowing Spain as a country at all. At this point of time, in Spanish society, any historical, territorial or political claim is viewed as a reminiscence of Franco and his regime and would be rejected by the population.
We would still be making jokes about it, though