US grocery retailer and wholesaler Spartan Stores has booked a drop in first-half earnings and issued a warning for the second half of its financial year.