Stir together apples and 6 cups water in a large saucepan or Dutch oven. Bring to a boil; reduce heat, and simmer 30 minutes or until tender. Stir in sugar, and, if desired, spices. Return mixture to a boil; reduce heat, and simmer, stirring occasionally, 10 to 15 minutes or until most of liquid has evaporated. Cool completely.