BMC ( BMC) swung to a better-than-expected second-quarter profit, boosted by a 6% jump in revenue that reflected a better environment for technology spending. The company offered mostly positive guidance for the rest of the year. The Houston software shop earned $12.7 million, or 6 cents a share, in the three months to Sept. 30, compared with a loss of $13.2 million, or 6 cents a share, last year. Excluding various expenses including amortization of acquired technology, BMC earned $35.2 million, or 16 cents a share, in the quarter, 2 cents better than the Thomson First Call consensus. Revenue rose 6% from a year ago to $355.1 million, beating the Wall Street consensus of $346.8 million. The company saw license revenue jump 6% to $124.7 million, maintenance revenue jump 6% to $188.2 million, and services revenue jump 9% to $20.9 million. "Overall we saw improvement in the technology spending environment in the second quarter, particularly in the United States," BMC said in a release. Looking ahead, BMC sees adjusted earnings of 18 cents to 23 cents a share on revenue of $380 million to $395 million in the third quarter, compared with the consensus forecast of 18 cents on revenue of $379.0 million. For the full year, the company sees earnings of 67 cents to 77 cents a share on revenue of $1.47 billion to $1.50 billion. Analysts were forecasting earnings of 69 cents a share on revenue of $1.46 billion.