McCormick & Co will buy the food business of British conglomerate Reckitt Benckiser Group for $4.2 billion.