Heat oil in a pot and add all the whole spices. Now add onion paste and mix it well. Cook it for 5 minutes and add ginger and garlic paste. Cook everything until light brown in colour. Now add all the dry spices and mix well. Now add tomato paste and mix well. Add one fourth cup of water and mix.