def METHOD_NAME(self):
    if self.options.spec == "wgl" and self.settings.os != "Windows":
        raise ConanInvalidConfiguration(f"{self.ref}:{self.options.spec} specification is not compatible with {self.settings.os}")