Because we usually use the term ingredients to refer to physical substances rather than attributes, I'd say this very common idiomatic usage isn't so much literal as metaphoric (alluding to things like culinary recipes)...
(Something has) all the ingredients to be a great (whatever it could be.)
Note that the idiomatic element is to have all the ingredients [to do/be something]. But I specifically searched for ...to be a great... there to show that this idiom is usually (but not always) used in "positive" contexts.
Thus it's much more likely that something/someone has all the ingredients to be a success than that it has all the ingredients to be a disaster. There are 9 times more instances of the success version than the disaster version there - but more generally, to be a success is only 3 times more common than to be a disaster in Google Books.
I'd also add that to this native speaker's ear, to have all the spices sounds more like a simple mistranslation of the above idiom than a natural native speaker usage.