{
  "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"]
        },
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["8"]
        }
      ]
    },
    {
      "packages": ["ocl-icd", "opencl-headers"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["9", "10"]
        },
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "packages": ["ocl-icd", "opencl-headers"],
      "pre_install": [
        {
          "command": "rpm -q epel-release || yum install -y https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.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://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["7"]
        }
      ]
    },
    {
      "packages": ["ocl-icd"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["8", "9", "10"]
        }
      ]
    },
    {
      "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", "3.21", "edge" ]
        }
      ]
    }
  ]
}
