forked from jengelh/grpc
Jan Engelhardt
013079cc2f
- update to 1.12.0: Core: * Update protobuf submodule to 3.5.2 (#15114) * Make GrpcBuffer{Reader|Writer} Public (#14541) * Compile Out Tracers Option (#15108) * Fix bug in an address sorting comparison (#15208) * Fix: Check retry timer before starting resolving (#15156) * Fix c-ares resolution with default authority (#15073) * Fix c-ares resolver crash when DNS server unreachable (#15134) * Performance: Avoid low severity log message construction (#14945) * Peformance: Enable SIO_LOOPBACK_FAST_PATH on Windows (#14905) C#: * Add RpcException.StatusCode property (#15140) * Improvements to C# build instructions (#15178) Python: * Eliminate grpcio package dependency on protobuf package (#15034). Please pay extra attention if you are using gRPC with Protocol Buffers and your deployment scripts do not explicitly list the correct dependencies and used to rely on the transitive Python package dependency from grpcio to protobuf. * A new grpc.Channel.close method is introduced and correct use of gRPC Python now requires that channels be closed after use. No existing code should observably break when upgrading to 1.12 but code that creates channels but does not close them will not be supported in 1.13 and later. Core: * Fix: Check retry timer before starting resolving (#15156) * Fix c-ares resolution with default authority (#15073) * Fix c-ares resolver crash when DNS server unreachable (#15134) * Add core underpinnings for TLS session ticket support (#14483) * Experimental support for configurable retries (use at your own risk) (#10684) * Fail calls with wait_for_ready=false on transient resolver failure (#14733) OBS-URL: https://build.opensuse.org/request/show/610355 OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=20
124 lines
4.2 KiB
RPMSpec
124 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package grpc
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define lname libgrpc6
|
|
Name: grpc
|
|
Version: 1.12.0
|
|
Release: 0
|
|
Summary: HTTP/2-based Remote Procedure Call implementation
|
|
License: Apache-2.0
|
|
Group: Development/Tools/Building
|
|
Url: http://grpc.io/
|
|
Source: https://github.com/grpc/grpc/archive/v%version.tar.gz
|
|
Patch1: grpc-build.diff
|
|
Patch2: grpc-versioning.diff
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkg-config
|
|
BuildRequires: pkgconfig(libcares)
|
|
BuildRequires: pkgconfig(openssl) >= 1.0.1
|
|
BuildRequires: pkgconfig(protobuf) >= 3.5
|
|
BuildRequires: pkgconfig(zlib)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The reference implementation of the gRPC protocol, done on top of
|
|
HTTP/2 with support for synchronous and asynchronous calls. gRPC uses
|
|
Protocol Buffers as the Interface Definition Language by default.
|
|
|
|
%package -n %lname
|
|
Summary: HTTP/2-based Remote Procedure Call implementation
|
|
Group: System/Libraries
|
|
|
|
%description -n %lname
|
|
The reference implementation of the gRPC protocol, done on top of
|
|
HTTP/2 with support for synchronous and asynchronous calls. gRPC uses
|
|
Protocol Buffers as the Interface Definition Language by default.
|
|
|
|
%package devel
|
|
Summary: Development files for grpc, a HTTP/2 Remote Procedure Call implementation
|
|
Group: Development/Tools/Building
|
|
Requires: %lname = %version
|
|
|
|
%description devel
|
|
This subpackage contains libraries and header files for developing
|
|
applications that want to make use of the gRPC reference implementation.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -P 1 -P 2 -p1
|
|
|
|
%build
|
|
make LIBDIR=x CONFIG=opt \
|
|
x/opt/pkgconfig/grpc.pc x/opt/pkgconfig/grpc_unsecure.pc \
|
|
x/opt/pkgconfig/grpc++.pc x/opt/pkgconfig/grpc++_unsecure.pc
|
|
%cmake \
|
|
-DgRPC_PROTOBUF_PROVIDER=package \
|
|
-DgRPC_SSL_PROVIDER=package \
|
|
-DgRPC_ZLIB_PROVIDER=package \
|
|
-DgRPC_CARES_PROVIDER=package \
|
|
-DgRPC_INSTALL_BINDIR="%_bindir" \
|
|
-DgRPC_INSTALL_INCLUDEDIR="%_includedir" \
|
|
-DgRPC_INSTALL_LIBDIR="%_libdir"
|
|
|
|
#[ 36%] Running gRPC C++ protocol buffer compiler on src/proto/grpc/reflection/v1alpha/reflection.proto
|
|
#cd /home/abuild/rpmbuild/BUILD/grpc-1.2.3 && /usr/bin/protoc --grpc_out=/home/abuild/rpmbuild/BUILD/grpc-1.2.3/build/gens --cpp_out=/home/abuild/rpmbuild/BUILD/grpc-1.2.3/build/gens --plugin=protoc-gen-grpc=/home/abuild/rpmbuild/BUILD/grpc-1.2.3/build/grpc_cpp_plugin -I . src/proto/grpc/reflection/v1alpha/reflection.proto
|
|
#/home/abuild/rpmbuild/BUILD/grpc-1.2.3/build/grpc_cpp_plugin: error while loading shared libraries: libgrpc_plugin_support.so: cannot open shared object file: No such file or directory
|
|
#--grpc_out: protoc-gen-grpc: Plugin failed with status code 127.
|
|
export LD_LIBRARY_PATH="$PWD"
|
|
%make_jobs
|
|
|
|
%install
|
|
b="%buildroot"
|
|
mkdir -p "$b/%_libdir/pkgconfig"
|
|
cp x/opt/pkgconfig/*.pc "$b/%_libdir/pkgconfig/"
|
|
%cmake_install
|
|
#for i in "$b/%_libdir"/libg*-%version.so; do
|
|
# ln -s "${i##*/}" "${i%%-%version.so}.so"
|
|
#done
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%files -n %lname
|
|
%defattr(-,root,root)
|
|
%_libdir/libg*.so.6
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
%_bindir/*
|
|
%_includedir/*
|
|
%_libdir/pkgconfig/*.pc
|
|
%_libdir/libaddress_sorting.so
|
|
%_libdir/libgpr.so
|
|
%_libdir/libgrpc++.so
|
|
%_libdir/libgrpc++_cronet.so
|
|
%_libdir/libgrpc++_error_details.so
|
|
%_libdir/libgrpc++_reflection.so
|
|
%_libdir/libgrpc++_unsecure.so
|
|
%_libdir/libgrpc.so
|
|
%_libdir/libgrpc_cronet.so
|
|
%_libdir/libgrpc_csharp_ext.so
|
|
%_libdir/libgrpc_plugin_support.so
|
|
%_libdir/libgrpc_unsecure.so
|
|
/usr/lib/cmake
|
|
|
|
%changelog
|