Does Spain export a lot of electricity? It could produce a lot of solar power. Even some in the winter, a lot in the summer when it's needed for air conditioning. One can think of it this way, if a solar panel is manufactured in or imported to EU, maybe it should be installed in the more sunny regions for maximum benefit.
Spain is also a wind power giant.
As comparison, Germany is not a great location for either wind or solar power.