Whisk together the flour, baking powder, baking soda, salt, and pumpkin pie spice; set aside. Combine the brown sugar, white sugar, oil, applesauce, pumpkin, buttermilk, and beaten eggs and mix until well blended. Pour the pumpkin mixture into the dry ingredients and stir until combined. Fold in the raisins and pecans, if desired.