{
  "patterns": ["\\blibmysqlclient\\b"],
  "dependencies": [
    {
      "packages": ["libmysqlclient-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        }
      ]
    },
    {
      "packages": ["libmariadb-dev-compat", "libmariadb-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": ["mysql-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["6"]
        },
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["6"]
        }
      ]
    },
    {
      "packages": ["mariadb-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["7", "8"]
        },
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["7", "8"]
        },
        {
          "os": "linux",
          "distribution": "fedora"
        },
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["8"]
        }
      ]
    },
    {
      "packages": ["mariadb-devel"],
      "pre_install": [
        { "command": "dnf install -y dnf-plugins-core" },
        { "command": "dnf config-manager --set-enabled crb" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["9"]
        }
      ]
    },
    {
      "packages": ["mariadb-devel"],
      "pre_install": [
        { "command": "subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["9"]
        }
      ]
    },
    {
      "packages": ["libmysqlclient-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse",
          "versions": ["42.3"]
        },
        {
          "os": "linux",
          "distribution": "sle",
          "versions": ["12.3"]
        }
      ]
    },
    {
      "packages": ["libmariadb-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse",
          "versions": ["15.0", "15.2", "15.3", "15.4", "15.5", "15.6"]
        },
        {
          "os": "linux",
          "distribution": "sle",
          "versions": ["15.0", "15.2", "15.3", "15.4", "15.5", "15.6"]
        }
      ]
    },
    {
      "packages": ["mariadb-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine"
        }
      ]
    }
  ]
}
