Heat olive oil over medium heat. Add onion and garlic and spices. Saute until onion is softened.Deglaze pan with wine and allow to boil for 1 minute.Add tomatoes and broth (or water). Bring to a boil and reduce heat to low.At this point you can allow the broth to simmer for 1 hour to intensify in flavor, or you can add the lentils and beans and cook until lentils are tender--about 15 minutes.Season with salt and pepper as needed.