"That creature" being the creature that triggered the spell. So the space that the spirit would have to be summoned into will beis the space of the triggering creature, not an unoccupied space, and so the summons will fail, even if you can store the spell. And this happens to be true for all the conjuration spells that target a space. So
So strict RAW, successfully casting summoning spells from a glyph, even though it is clearly intended, based on the mechanics of the glyph cannot work. It would be up to your DM to fix this.
The glyph also says
If the spell summons hostile creatures or creates harmful objects or traps, they appear as close as possible to the intruder and attack it
This would create an alternative if you summoned a creature that is descibed as hostile. Such a creature would instead appear in a space as close as possible to the (triggering) intruder. Unfortunately, none of the conjuration spells in the PHB, states the summoned creatures are generally hostile, and neither does summon undead, so RAW that clause will not apply, and the spell would still need DM fiat to work this way.
So who is the caster in that case? Is it still you? Or is it the glyph? I think it most likely is still you, as the glyph would not be able to make any decisions for a spell it released, like issuing commands to a summoned creature, because it ends on triggering: "Once a glyph is triggered, this spell ends." But this is not explicit, so again up to your DM.
The undead spirit from summon undead is not hostile, so the clause that it will attack "the intruder", that is, the triggering creature, will not apply - thankfully, otherwise it might end up attacking you, because you triggered the glyph.