spec: Fix rhel/suse conditiations with {pre,post}un.

Refs #6446
Refs #6374