Meanwhile, warm the olive oil in a large heavy-based pan set over a medium heat. Add the onion and cook for about 5 minutes, until softened but not browned. Add the garlic and spices and cook for 1 minute more, then stir in the chopped tomatoes. Simmer for about 10 minutes, until the sauce has reduced a bit. Season to taste with salt and pepper.