1.AdverbIn hope of success, using one's best guess.
2.AdverbWith the hope of selling it, as opposed to on commission (for hire) or with some other likewise assured outlet for getting paid or reselling.
"I'm writing an article on spec. I hope some magazine will buy it.; He bought the land on spec — he thinks it's likely to be rezoned commercial and subdivided."