fix patch_spec_file to use the right parameter