[Bug 891152] New: format_spec_file can damage spec file