Rewrite spec files.