No, you do not have to pay CGT in Spain, as the sold property is located in UK and is subject to BritishTax And Propety Law. Spain has no competences there.