so the IRS says this about spouse exemption:
They mean income from U.S. sources. Here is a quotation from the IRS FAQs About International Individual Tax Matters (italics are mine):
"If you do not file a joint return, you can claim an exemption for your nonresident alien spouse only if your spouse has no income from sources within the United States and is not the dependent of another U.S. taxpayer."