The circumstances which allow you to apply for Spanish citizenship based on blood lineage, go back two generations. Therefore you would be able to opt for it if your father or grandfather had been a Spaniard of origin. If this chain is broken and only your great-grandfather was a Spaniard you will not be able to opt for it.