def METHOD_NAME(self):
    if self.options.spec == "gl":
        spec_api = {
            "gl": self.options.gl_version,
            "gles1": self.options.gles1_version,
            "gles2": self.options.gles2_version,
            "glsc2": self.options.glsc2_version
        }
    elif self.options.spec == "egl":
        spec_api = {"egl": self.options.egl_version}
    elif self.options.spec == "glx":
        spec_api = {"glx": self.options.glx_version}
    elif self.options.spec == "wgl":
        spec_api = {"wgl": self.options.wgl_version}
    api_concat = ",".join(f"{api_name}={api_version}".format()
                          for api_name, api_version in spec_api.items() if api_version != "None")
    return api_concat