Spain-based manufacturer GBfoods has struck a deal to acquire a European peer it has been in talks to buy.