build: add spec file parser