Yes, you mostly definitely need a visa.
Be aware that foreigners seeking a visa while residing in a foreign country may have difficulty proving strong ties to his current residence. Prepare any document that shows ties (wage slips, job contract, assets) to your EU residence, and proof of funds to afford your trip to the US.
Turkish citizens do need a visa for the US, as stated in Timatic. Foreign residency is completely irrelevant
Your Spanish work permit is not relevant and Turkey is not a US Visa Waiver country, so you need a visa to enter the United States.
Whether you need a visa to visit the US is based on your citizenship, not your residence. So, as a citizen of Turkey you will need a visa to visit the US.
Credit:stackoverflow.com‘