Toast the spices on a sheet pan in a hot oven or in a sauté pan over medium heat, then crush them. Place the spices and the wine in a saucepan and stir in the sugar.
Cook over medium-low heat until the liquid has reduced to a syrup consistency, about 45 minutes. Skim the liquid throughout the cooking process.