class_docstr: Override the default bdist_rpm behavior to do the following:
  
  1. Run egg_info to ensure the name and version are properly calculated.
  2. Always run 'install' using --single-version-externally-managed to
     disable eggs in RPM distributions.
class_docstr_tok: ["Override","the","default","bdist_rpm","behavior","to","do","the","following",":","1",".","Run","egg_info","to","ensure","the","name","and","version","are","properly","calculated",".","2",".","Always","run","'install","'","using","--","single-version-externally-managed","to","disable","eggs","in","RPM","distributions","."]
code: def _make_spec_file(self):
      spec = orig.bdist_rpm._make_spec_file(self)
      spec = [
          line.replace(
              "setup.py install ",
              "setup.py install --single-version-externally-managed ",
          ).replace("%setup", "%setup -n %{name}-%{unmangled_version}")
          for line in spec
      ]
      return spec
  
imports: import distutils.command.bdist_rpm
  from ..warnings import SetuptoolsDeprecationWarning
label_desc: Use image node_id 2 for calling the bdist_rpm obj's underlying member method code with example usage: obj._make_spec_file() and returns: spec