My understanding of spices is that they don't spoil as much as get they get weaker in flavor with age.
Vacuum seal your spices and I believe they will last a very long time, right along with most dry beans, rice, flour, coffee, etc.
Side benefit is that rice, flour, etc., will never become contaminated with weevils either.
I prefer the chamber vacuum sealer over the external, "food waster" countertop vacuum sealer.
Granted the chamber vac is higher initially in initial cost, however, the vac bags are pennies each compared to anywhere from $0.50 on up for the external bags.
With the chamber vac one can vacuum seal liquids, whereas with the external vac you are constantly plagued with moisture from what you are vacuuming being drawn up and into the sealing area thereby compromising the seal and wasting a $0.50 plus bag in the process.
You have to be careful not to overfill the chamber vac bags or they will spill contents into the chamber. It takes practice, and a few messes. I've not attempted to vacuum seal flour so I honestly can't say how it would respond under vacuum.
Hard experience has taught me that within five minutes of using an external countertop vac, half of the seals have broken, meaning that if you had tossed them into the freezer, you would be pulling out freezer-burned food negating the benefit of having a vacuum sealer in the first place.
walmart.com sells chamber vacuum sealers for as low as $300 on up to over $1000. I purchased a Weston brand for around $700 awhile back from a different supplier and have used it numerous times and am well satisfied with the results. Do your due diligence if you decide to purchase one. You could stand to save some serious coin. I saved around $100 when I bought mine by shopping around on the internet.
The vac bags can be purchased from Walmart or webstaurantstore.com. Webstaurant will ship the vac bags for free. I have found that the bag size I use the most is 8X12 inches ($0.06 each). My machine will chamber up to 12X14 inches, ($0.13 each, roughly the size of a two-gallon Zip-Lock which are $0.96 each at Walmart.) however, in spite of having an abundance on hand I have rarely used any that big, while I have used 500 of the 8X12 inch size in the same amount of time.
Properly vacuum sealed meat will last for years in the freezer.
Interesting sidenote; walmart.com will ship to your door for free with a $35 minimum order. This is not to be confused with the walmart+.com where you pay a monthly fee of $12.95. While both require a $35 minimum order there is no fee for walmart.com, it's just that you cannot order refrigerated items for home delivery.