Put the onion, green pepper, and garlic in a large pot with a small amount of water. Cook, stirring, until the vegetables are soft, about 10 minutes. Add the remaining ingredients except for the spinach. Mix well, cover, reduce the heat, and cook for 20 minutes. Stir in the spinach and cook until wilted, 1 or 2 minutes. Serve over rice or other whole grains.