Some spices are oil based and I don't believe there is any way to stop migration of it. The best way, one I could never seem to follow, is to pack spices from the home larder in something set aside for the trip.
I did actually do this for a trip, and winter, too AR and it worked well. I gathered up all I thought we might need from the home supply, took it in a cheap plastic container and then returned them when we got back. it does require dedication. maybe that was my downfall.