(Reuters) - Canadian business software maker OpenText Corp said it would buy HP Inc's customer management software business for $315 million.