Exhibit 10.12 STOCK PURCHASE AGREEMENT dated as of November 3, 1998