code: def finalize_package_data(self):
      self.ensure_string("group", "Development/Libraries")
      self.ensure_string(
          "vendor",
          "%s <%s>"
          % (
              self.distribution.get_contact(),
              self.distribution.get_contact_email(),
          ),
      )
      self.ensure_string("packager")
      self.ensure_string_list("doc_files")
      if isinstance(self.doc_files, list):
          for readme in ("README", "README.txt"):
              if (
                  os.path.exists(readme)
                  and readme not in self.doc_files
              ):
                  self.doc_files.append(readme)
  
      self.ensure_string("release", "1")
      self.ensure_string("serial")  # should it be an int?
  
      self.ensure_string("distribution_name")
  
      self.ensure_string("changelog")
      # Format changelog correctly
      self.changelog = self._format_changelog(self.changelog)
  
      self.ensure_filename("icon")
  
      self.ensure_filename("prep_script")
      self.ensure_filename("build_script")
      self.ensure_filename("install_script")
      self.ensure_filename("clean_script")
      self.ensure_filename("verify_script")
      self.ensure_filename("pre_install")
      self.ensure_filename("post_install")
      self.ensure_filename("pre_uninstall")
      self.ensure_filename("post_uninstall")
  
      # XXX don't forget we punted on summaries and descriptions -- they
      # should be handled here eventually!
  
      # Now *this* is some meta-data that belongs in the setup script...
      self.ensure_string_list("provides")
      self.ensure_string_list("requires")
      self.ensure_string_list("conflicts")
      self.ensure_string_list("build_requires")
      self.ensure_string_list("obsoletes")
  
      self.ensure_string("force_arch")
  
file_path: catboost/contrib/tools/python3/src/Lib/distutils/command/bdist_rpm.py
imports: import subprocess, sys, os
  from distutils.core import Command
  from distutils.debug import DEBUG
  from distutils.file_util import write_file
  from distutils.errors import *
  from distutils.sysconfig import get_python_version
  from distutils import log
label_desc: Use image node_id 3 for calling the bdist_rpm obj's underlying member method code with example usage: obj.finalize_package_data() without return types