US grocery retailer and wholesaler Spartan Stores is to merge with food distributor Nash Finch Co.