Well, yeah, of course it spoils. Just not in the way that you’re used to. That is, it won’t get slimy (nothing you’re used to on Earth will grow on it, which causes—or is—the “slime”), and it won’t smell (because it also won’t decay—in Earth terms—and there’s no air to carry a smell anyway, so it wouldn’t smell “good”, either) and it won’t change color (because none of the first two things are happening). But it will flash dry and freeze as quickly as it’s exposed to the zero atmosphere, and any exposed water (which will have frozen) will transpire off pretty quickly, and you’ll be left with, as @downtide alluded, a sandy, gritty, or dusty piece of trash.
You wouldn’t be able to put it into your mouth anyway, since you’d be suited up—or the same things would be happening to YOU. (And in addition, I think you would very shortly be blowing up, because unlike “food”, you have internal organs and some internal pressures that balance against atmospheric pressure (approximately 7 pounds per square inch of your body surface). Without that atmospheric pressure, and as soon as some part of your body ruptures due to the freeze-drying, you’re going to explode in slow motion. I think.