Pirates earn split with 5-1 win over Rockies