Not well. Generally, countries that make good beer are relatively cold and ones that make good wine are relatively warmer. Grapes grown in hot climates would produce little sugar to be fermented. Generally, the soil would not yield good wine grapes, nor would the climate be conducive to their development.
That said, Morocco produces Sidi Larbi, a wine that the critics detest. I happen to like it, though.