That might not be considered a gift, rather a straw purchase.
It's a fuzzy area and hard to understand the difference between purchasing a gun as a gift and purchasing a gun for someone else.
It boils down to intent, I assume. That's hard to prove, IMHO.
As mentioned above, the gift situation is not fuzzy or hard to understand- it's rather clear.
With the husband and wife situation, as long as one of them isn't prohibited, there's no straw purchase as far as I'm aware.