Spain's Alberto Gines Lopez won the first Olympic sport climbing competition with a stellar run in the speed discipline and a good finish in lead carrying him to the gold medal.