parse the spec file correctly to get macro expansion