You can grind the spices using a mortar and pestle, though it will take more effort. Alternatively, you can toast the whole spices in a pan, then grind them along with the other ingredients in a food processor. The texture might be slightly coarser, but it will still taste delicious.