In a medium saucepan over medium heat, melt oil and add all spices. Cook, stirring frequently, until fragrant, about a minute. Add onions, a couple pinches of salt and cook until softened, about 5 minutes. Add garlic and cook another couple minutes. If the pot gets dry at any point, add a little of the tomato juice from the can.