{
  "patterns": ["\\bgrpc/protobuf\\b"],
  "dependencies": [
    {
      "packages": ["protobuf-compiler-grpc"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": ["grpc-plugins"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "pre_install": [
        { "command": "yum install -y epel-release" },
        { "command": "dnf install -y dnf-plugins-core" },
        { "command": "dnf config-manager --set-enabled crb" }
      ],
      "packages": ["grpc-plugins"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["9"]
        }
      ]
    },
    {
      "packages": ["grpc-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse"
        },
        {
          "os": "linux",
          "distribution": "sle"
        }
      ]
    },
    {
      "packages": ["grpc-plugins"],
      "pre_install": [
        { "command": "subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["9"]
        }
      ]
    },
    {
      "packages": ["grpc-plugins"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine",
          "versions": ["3.17", "3.18", "3.19", "3.20", "3.21", "edge"]
        }
      ]
    },
    {
      "packages": ["grpc-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine",
          "versions": ["3.16"]
        }
      ]
    }
  ]
}
