Definitely buy spices labeled gluten-free. Look for the "gluten-free" label on the spice package to avoid using spices that have been exposed to gluten during production.
Be sure to purchase spices marked by well-known, high-quality companies with GMP standards.
Do not buy spices by weight or in unmarked bags in markets