Drain the jackfruit and squeeze out most of the moisture.
chop and sauté the onions, and garlic until the onions turn translucent. Now blend the tomatoes or chop them really fine and add them to the onion and garlic. Cook this for a couple of minutes and then add the spices, pepper, water and jackfruit. Turn the heat to medium/low and cover the pan. Let it simmer for at least 30 minutes.
Keep stirring every once and a while to prevent sticking on the bottom of the pan. If you need you can always add more water. Once the water has mostly evaporated you can turn of the heat and let the jackfruit cool off before using in spring rolls.