"spec" can mean both, of course, depending on context; in the collocation "on spec" it's always "speculation."
Neither sense of "spec" seems to make a lot of sense here, though.
Although it's not listed in the dictionaries (whereas the other two are) it seems to be being used in the sense of "search."
Cf. I ran a spec on an abandoned vehicle through CPIC [Canadian Police Information Centre] and your shop popped up. https://www.springfieldspringfield.co.uk/view...
---maybe there's a specific IT/databank sense.
(Apologies, mk70, if that's your source, which you were wishing to conceal. :-( Feel free to request that Doris remove it.)