SPI Solar, the Roseville-based solar-energy developer, reported a net loss of $1.3 million, or a penny a share, for the second quarter ended June 30. That was a substantial improvement from a loss of $6.8 million, or 3 cents a share, in the second quarter of 2013.