You will be able to apply for Spanish citizenship after one year of marriage and one year of legal residence in Spain. Yes, you will need to give up your Lebanese citizenship.