He. You are in for a disappointment if you think about moving to Madrid for the nice weather. Extremely dry, very hot summers, quite cold winters, Its more continental than Mediterranean.
On the flip side, I keep hearing about some software companies opening development centers in southern Spain, so check out job offers around Malaga, if you are really interested in the Mediterranean thing.