Bring pineapple juice, lemon juice, and water to a boil. Add sugar and spices and simmer 20 minutes. Remove from heat, add tea bags, cover and steep 10 minutes. Remove tea bags and strain. Serve hot or iced.