Seven years after going public, human resources-related software maker Kenexa Corp. agreed on Monday to be sold to IBM Corp. in a deal that values the Wayne, Pa.-based company at $1.3 billion.

IBM is offering $46 in cash for each share of Kenexa, a 42 percent increase over the target’s Friday closing price. The acquisition is expected to close by year-end, pending shareholder and regulatory approval.