{
  "patterns": ["\\budunits-2\\b"],
  "dependencies": [
    {
      "packages": ["libudunits2-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": ["udunits2-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "packages": ["udunits2-devel"],
      "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": ["udunits2-devel"],
      "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": ["udunits2-devel"],
      "pre_install": [
        {
          "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["8", "9", "10"]
        }
      ]
    },
    {
      "pre_install": [
        {
          "command": "yum install -y epel-release"
        }
      ],
      "packages": ["udunits2-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["6", "7"]
        }
      ]
    },
    {
      "packages": ["udunits2-devel"],
      "pre_install": [
        {
          "command": "dnf install -y epel-release"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["8"]
        },
        {
          "os": "linux",
          "distribution": "rockylinux"
        }
      ]
    },
    {
      "packages": ["udunits2-devel"],
      "pre_install": [
        {
          "command": "zypper repos --uri 2>/dev/null | grep -q 'devel:languages:R:released' || zypper --non-interactive --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/devel:languages:R:released/15.6/devel:languages:R:released.repo"
        },
        {
          "command": "zypper --non-interactive --gpg-auto-import-keys refresh"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse",
          "versions": ["15.6"]
        }
      ]
    },
    {
      "packages": ["udunits-dev"],
      "pre_install": [
        {
          "command": "apk add udunits-dev --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine",
          "versions": [ "3.15", "3.16", "3.17", "3.18" ]
        }
      ]
    },
    {
      "packages": ["udunits-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine"
        }
      ]
    }
  ]
}
