Serena Software Inc. said on Friday it had agreed to be acquired by private equity firm Silver Lake Partners in a deal valued at about $1.2 billion.