Download Spy_beta0.3.9.zip from the author's release (linked on this page).
Unpack it into Interface/AddOns inside the 1.12.1 client's main folder.
Make the folder's name match the .toc file inside it: a folder ending in ‑master, ‑main or a version number has to be renamed.
Start the client and open AddOns on the character selection screen: Spy (vanilla port) should be listed and enabled. The 1.12.1 client loads addons whose .toc declares interface 11200; others show as out of date.