In a small saucepan bring all ingredients (except rum) to a high simmer for 1 minute. Reduce heat to low, add rum and let mixture simmer for 2 minutes, stirring occasionally. Remove from heat and carefully strain (if using a jelly with pineapple chunks in it) into another container. Let mixture cool for 10 minutes before using. Discard remaining mixture after use.