[Bug 891152] format_spec_file can damage spec file