In a saucepan over medium-high heat, brown the onion in the oil. Add the spices, garlic and rice. Season with salt and pepper. Continue cooking over medium heat, stirring occasionally, until the rice just starts to stick to the bottom of the saucepan. Add the water. Stir and bring to a boil.