DALLAS ( TheStreet) -- Homebuilder Centex ( CTX) swung to a profit in the first quarter, one of the winners of the expected turn in the housing market. During the quarter, the company earned $85.1 million, or 68 cents a share, compared with a loss of $150.1 million, or $1.21 a share, in the year prior. But revenue was nearly halved to $574 million from $1.13 billion last year. Shares of the company closed up 4% to $11.32, but lost steam in after-market trading, falling 1%. Earlier today the Commerce Department said construction spending increased 0.3% in June, surpassing analysts' forecast. Pulte Homes ( PHM) is also set to report its earnings today. -- Reported by Jeanine Poggi in New York.