In 2008 the Spanish government committed to achieving a target of 12 percent of primary energy from renewable energy by 2010 and by 2020 expects the installed solar generating capacity of 10,000 megawatts ( MW ) .
The Spanish government wants to produce 12 percent of primary energy from renewable energy by 2010 .