{
  "patterns": [
    "\\bglpk\\b"
  ],
  "dependencies": [
    {
      "packages": [
        "libglpk-dev"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": [
        "glpk-devel"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "pre_install" : [
        {
          "command": "yum install -y epel-release"
        }
      ],
      "packages": [
        "glpk-devel"
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["7"]
        }
      ]
    },
    {
      "packages": ["glpk-devel"],
      "pre_install": [
        {
          "command": "dnf install -y epel-release"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["8"]
        }
      ]
    },
    {
      "packages": ["glpk-devel"],
      "pre_install": [
        { "command": "dnf install -y epel-release" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux"
        }
      ]
    },
    {
      "packages": ["glpk-devel"],
      "pre_install": [
        {
          "command": "rpm -q epel-release || yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["7"]
        }
      ]
    },
    {
      "packages": ["glpk-devel"],
      "pre_install": [
        {
          "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["8"]
        }
      ]
    },
    {
      "packages": ["glpk-devel"],
      "pre_install": [
        { "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["9"]
        }
      ]
    },
    {
      "packages": [
        "mingw-w64-x86_64-glpk",
        "mingw-w64-i686-glpk"
      ],
      "constraints": [
        {
          "os": "windows"
        }
      ]
    }
  ]
}
