{
  "patterns": [
    "\\bgdal\\b",
    "\\blibgdal\\b"
  ],
  "dependencies": [
    {
      "packages": [
        "libgdal-dev",
        "gdal-bin"
      ],
      "pre_install": [
        { "command": "apt-get install -y software-properties-common" },
        { "command": "add-apt-repository -y ppa:ubuntugis/ppa" },
        { "command": "apt-get update" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu",
          "versions": ["14.04", "16.04"]
        }
      ]
    },
    {
      "packages": [
        "libgdal-dev",
        "gdal-bin"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": [
        "gdal-devel",
        "gdal"
      ],
      "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": [
        "gdal-devel",
        "gdal"
      ],
      "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"]
        }
      ]
    },
    {
      "pre_install": [
        {
          "command": "yum install -y epel-release"
        }
      ],
      "packages": [
        "gdal-devel",
        "gdal"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["6", "7"]
        }
      ]
    },
    {
      "pre_install": [
        { "command": "dnf install -y dnf-plugins-core" },
        { "command": "dnf config-manager --set-enabled powertools" },
        { "command": "dnf install -y epel-release" }
      ],
      "packages": [
        "gdal-devel",
        "gdal",
        "sqlite-devel"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["8"]
        },
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["8"]
        }
      ]
    },
    {
      "pre_install": [
        { "command": "subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms" },
        { "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" }
      ],
      "packages": [
        "gdal-devel",
        "gdal",
        "sqlite-devel"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["8"]
        }
      ]
    },
    {
      "packages": ["gdal-devel", "gdal"],
      "pre_install": [
        { "command": "dnf install -y dnf-plugins-core" },
        { "command": "dnf config-manager --set-enabled crb" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["9", "10"]
        }
      ]
    },
    {
      "packages": ["gdal-devel", "gdal"],
      "pre_install": [
        { "command": "subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["9"]
        }
      ]
    },
    {
      "packages": ["gdal-devel", "gdal"],
      "pre_install": [
        { "command": "subscription-manager repos --enable codeready-builder-for-rhel-10-$(arch)-rpms" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["10"]
        }
      ]
    },
    {
      "packages": [
        "gdal-devel",
        "gdal"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse"
        },
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "packages": ["gdal-devel", "gdal"],
      "pre_install": [
        {
          "command": "zypper repos openSUSE_Backports_SLE-12 || zypper addrepo https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12/standard/openSUSE:Backports:SLE-12.repo"
        },
        {
          "command": "zypper --gpg-auto-import-keys refresh"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "sle",
          "versions": ["12.3"]
        }
      ]
    },
    {
      "packages": [
        "gdal-dev",
        "gdal-tools"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine"
        }
      ]
    }
  ]
}
