I mean there's a legal definition of it. I personally don't think cold calling someone to make a sale is spam. The caveat being that if they tell me to not call again, I won't.
And LinkedIn messages don't bother me as long as they follow the rules of the site which don't prohibit cold outreach.