cleanup spec file with macros