Compuware Corp., a business software maker, has agreed to be acquired by Thoma Bravo LLC, a private equity investment firm, for $2.5 billion. Shareholders of Compuware will get $10.43 per share in cash at a 11.6% premium over the stocks closing price of $9.35 on Friday.