Belgrade - Viktor Troicki and Nenad Zimonjic defeated Pablo Carreno-Busta and Marc Lopez 4-6, 7-6 (7/4), 6-0, 4-6, 6-2 to seal victory in the Davis Cup quarter-finals on Saturday and a date against France for a final spot.
Novak Djokovic and Troicki had won Friday's singles for a 2-0 lead before the 2010 champions took an unassailable advantage on Saturday against a Spanish team missing 14-time Grand Slam winner Rafael Nadal who opted to sit out the tie.
France made the semi-finals with a 3-0 win over Britain in Rouen.