{
  "patterns": ["\\bberkeley db\\b", "\\blibdb\\b"],
  "dependencies": [
    {
      "packages": ["libdb-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": ["libdb-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos"
        },
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["9"]
        },
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["7", "8", "9"]
        },
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "packages": ["libdb-devel"],
      "pre_install": [
        { "command": "dnf install -y epel-release" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["10"]
        }
      ]
    },
    {
      "packages": ["libdb-devel"],
      "pre_install": [
        { "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["10"]
        }
      ]
    },
    {
      "packages": ["libdb-4_8-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse"
        },
        {
          "os": "linux",
          "distribution": "sle"
        }
      ]
    },
    {
      "packages": ["db-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine"
        }
      ]
    }
  ]
}
