Brazil 's state-run energy company , Petrobras , has awarded a major contract to a Chinese firm to build a gas pipeline between southeast and northeast Brazil .