Spain awarded 5,037 MW of capacity in its renewable energy auction, the energy ministry announced on Wednesday.