Spain actually did not kill the Jews, they expelled them. This is not to say that they treated Jews ok. Just that genocide seems to be the wrong word.
And because today words don't matter, we have the UN definition which accepts acts committed with the intent to make it too hard for a group to continue existing.
https://www.un.org/en/genocideprevention/genocide.shtml The popular understanding of what constitutes genocide tends to be broader than the content of the norm under international law. Article II of the Genocide Convention contains a narrow definition of the crime of genocide, which includes two main elements:
A mental element: the "intent to destroy, in whole or in part, a national, ethnical, racial or religious group, as such"; and
A physical element, which includes the following five acts, enumerated exhaustively:
Killing members of the group
Causing serious bodily or mental harm to members of the group
Deliberately inflicting on the group conditions of life calculated to bring about its physical destruction in whole or in part
....
I'd say they attempted to end the Jewish people as best as they could
(not that their actions 500 years ago are relevant today)