Spanish multi-energy major Repsol SA (BME:REP) said on Thursday it had agreed to sell a 49.99% stake in a wind and solar portfolio in Spain to Abu Dhabi renewables company Masdar for an estimated EUR 150 million (USD 172.8m).