Spanish food firm Ebro Puleva has said it has agreed to purchase two frozen food companies, Danrice and Danpasta, for €18.7m (US$22.6m) from their Danish parent company Danrice.