Spanish Prime Minister Jose Luis Rodriguez Zapatero has wrapped up a visit to Venezuela by signing a series of defense and energy deals with the Andean nation .