Modify the profile flag in spec file