spec file syntax and automated generation