code: def _mk_tree(runas='root'):
      '''
      Create the rpm build tree
      '''
      basedir = tempfile.mkdtemp()
      paths = ['BUILD', 'RPMS', 'SOURCES', 'SPECS', 'SRPMS']
      for path in paths:
          full = os.path.join(basedir, path)
          __salt__['file.makedirs_perms'](name=full, user=runas, group='mock')
      return basedif _mk_tree(runas='root'):
      '''
      Create the rpm build tree
      '''
      basedir = tempfile.mkdtemp()
      paths = ['BUILD', 'RPMS', 'SOURCES', 'SPECS', 'SRPMS']
      for path in paths:
          full = os.path.join(basedir, path)
          __salt__['file.makedirs_perms'](name=full, user=runas, group='mock')
      return basedir
docs: Create the rpm build tree