# This file created by conda-build 3.23.3
# ------------------------------------------------

package:
  name: libgrpc
  version: 1.51.1
source:
  patches:
    - patches/0003-Link-against-grpc.patch
    - patches/0004-force-protoc-executable.patch
    - patches/0005-switch-to-C-17-for-grpcio.patch
    - patches/0006-fix-abseil-setup.patch
  sha256: b55696fb249669744de3e71acc54a9382bea0dce7cd5ba379b356b12b82d4229
  url: https://github.com/grpc/grpc/archive/v1.51.1.tar.gz
build:
  number: 1
  run_exports:
    - libgrpc >=1.51.1,<1.52.0a0
  string: h4fad500_1
requirements:
  build:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - binutils_impl_linux-64 2.39 he00db2b_1
    - binutils_linux-64 2.39 h5fc0e48_11
    - bzip2 1.0.8 h7f98852_4
    - c-ares 1.18.1 h7f98852_0
    - ca-certificates 2022.12.7 ha878542_0
    - cmake 3.25.2 h077f3f9_0
    - expat 2.5.0 h27087fc_0
    - gcc_impl_linux-64 11.3.0 hab1b70f_19
    - gcc_linux-64 11.3.0 he6f903b_11
    - gxx_impl_linux-64 11.3.0 hab1b70f_19
    - gxx_linux-64 11.3.0 hc203a17_11
    - kernel-headers_linux-64 2.6.32 he073ed8_15
    - keyutils 1.6.1 h166bdaf_0
    - krb5 1.20.1 h81ceb04_0
    - ld_impl_linux-64 2.39 hcc3a1bd_1
    - libcurl 7.87.0 hdc1c0ab_0
    - libedit 3.1.20191231 he28a2e2_2
    - libev 4.33 h516909a_1
    - libgcc-devel_linux-64 11.3.0 h210ce93_19
    - libgcc-ng 12.2.0 h65d4601_19
    - libgomp 12.2.0 h65d4601_19
    - libnghttp2 1.51.0 hff17c54_0
    - libprotobuf 3.21.12 h3eb15da_0
    - libsanitizer 11.3.0 h239ccf8_19
    - libssh2 1.10.0 hf14f497_3
    - libstdcxx-devel_linux-64 11.3.0 h210ce93_19
    - libstdcxx-ng 12.2.0 h46fd767_19
    - libuv 1.44.2 h166bdaf_0
    - libzlib 1.2.13 h166bdaf_4
    - ncurses 6.3 h27087fc_1
    - ninja 1.11.0 h924138e_0
    - openssl 3.0.7 h0b41bf4_2
    - rhash 1.4.3 h166bdaf_0
    - sysroot_linux-64 2.12 he073ed8_15
    - xz 5.2.6 h166bdaf_0
    - zlib 1.2.13 h166bdaf_4
    - zstd 1.5.2 h3eb15da_6
  host:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - c-ares 1.18.1 h7f98852_0
    - ca-certificates 2022.12.7 ha878542_0
    - libabseil 20220623.0 cxx17_h05df665_6
    - libgcc-ng 12.2.0 h65d4601_19
    - libgomp 12.2.0 h65d4601_19
    - libprotobuf 3.21.12 h3eb15da_0
    - libstdcxx-ng 12.2.0 h46fd767_19
    - libzlib 1.2.13 h166bdaf_4
    - openssl 3.0.7 h0b41bf4_2
    - re2 2023.02.01 hcb278e6_0
    - zlib 1.2.13 h166bdaf_4
  run:
    - c-ares >=1.18.1,<2.0a0
    - libabseil =20220623.0=cxx17*
    - libgcc-ng >=12
    - libprotobuf >=3.21.12,<3.22.0a0
    - libstdcxx-ng >=12
    - libzlib >=1.2.13,<1.3.0a0
    - openssl >=3.0.7,<4.0a0
    - re2 >=2023.2.1,<2023.2.2.0a0
    - zlib
  run_constrained:
    - grpc-cpp =1.51.1
test:
  commands:
    - test -f $PREFIX/lib/libgpr.so
    - test ! -f $PREFIX/lib/libgpr.a
    - test -f $PREFIX/lib/libgrpc.so
    - test ! -f $PREFIX/lib/libgrpc.a
    - test -f $PREFIX/lib/libgrpc_unsecure.so
    - test ! -f $PREFIX/lib/libgrpc_unsecure.a
    - test -f $PREFIX/lib/libgrpc++.so
    - test ! -f $PREFIX/lib/libgrpc++.a
    - test -f $PREFIX/lib/libgrpc++_unsecure.so
    - test ! -f $PREFIX/lib/libgrpc++_unsecure.a
    - test -f $PREFIX/lib/libaddress_sorting.so
    - test ! -f $PREFIX/lib/libaddress_sorting.a
    - test -f $PREFIX/lib/libupb.so
    - test ! -f $PREFIX/lib/libupb.a
    - test -f $PREFIX/bin/grpc_cpp_plugin
    - test -f $PREFIX/bin/grpc_csharp_plugin
    - test -f $PREFIX/bin/grpc_node_plugin
    - test -f $PREFIX/bin/grpc_objective_c_plugin
    - test -f $PREFIX/bin/grpc_php_plugin
    - test -f $PREFIX/bin/grpc_python_plugin
    - test -f $PREFIX/bin/grpc_ruby_plugin
    - pkg-config --print-errors --exact-version "29.0.0" gpr
    - pkg-config --print-errors --exact-version "29.0.0" grpc
    - pkg-config --print-errors --exact-version "29.0.0" grpc_unsecure
    - pkg-config --print-errors --exact-version "1.51.1" grpc++
    - pkg-config --print-errors --exact-version "1.51.1" grpc++_unsecure
    - ./test_grpc.sh
  files:
    - hello.proto
    - test_grpc.bat
    - test_grpc.sh
  requires:
    - cmake
    - gcc_linux-64 11.*
    - gxx_linux-64 11.*
    - ninja
    - pkg-config
  source_files:
    - examples/
about:
  description: 'gRPC is a modern, open source, high-performance remote procedure call

    (RPC) framework that can run anywhere. gRPC enables client and server

    applications to communicate transparently, and simplifies the building

    of connected systems.


    This package contains the gRPC C++ libraries and header files, as well

    as the code generation plugins.

    '
  dev_url: https://github.com/grpc/grpc
  doc_url: https://grpc.io/docs/
  home: https://grpc.io/
  license: Apache-2.0
  license_family: APACHE
  license_file: LICENSE
  summary: gRPC - A high-performance, open-source universal RPC framework
extra:
  copy_test_source_files: true
  feedstock-name: grpc-cpp
  final: true
  recipe-maintainers:
    - h-vetinari
    - mariusvniekerk
    - pitrou
    - wesm
    - xhochy
