{
  "patterns": ["\\bopencl\\b"],
  "dependencies": [
    {
      "packages": ["ocl-icd-opencl-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": ["ocl-icd", "opencl-headers"],
      "pre_install": [
        {
          "command": "yum install -y epel-release"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["6", "7"]
        }
      ]
    },
    {
      "packages": ["ocl-icd", "opencl-headers"],
      "pre_install": [
        { "command": "dnf install -y dnf-plugins-core" },
        { "command": "dnf config-manager --set-enabled powertools" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["8"]
        }
      ]
    },
    {
      "packages": ["ocl-icd", "opencl-headers"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux"
        },
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "packages": ["ocl-icd", "opencl-headers"],
      "pre_install": [
        {
          "command": "rpm -q epel-release || yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["6"]
        }
      ]
    },
    {
      "packages": ["ocl-icd", "opencl-headers"],
      "pre_install": [
        {
          "command": "rpm -q epel-release || yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["7"]
        }
      ]
    },
    {
      "packages": ["ocl-icd"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["8", "9"]
        }
      ]
    },
    {
      "packages": ["libOpenCL1", "opencl-headers"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse"
        }
      ]
    },
    {
      "packages": ["opencl-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine",
          "versions": [ "3.16", "3.17", "3.18", "3.19", "3.20", "edge" ]
        }
      ]
    }
  ]
}
