SHA256
1
0
forked from pool/grpc

- Update to new upstream release 1.16

OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=33
This commit is contained in:
2018-11-11 18:03:51 +00:00
committed by Git OBS Bridge
parent b55f8408d7
commit 30721f4efc
4 changed files with 27 additions and 15 deletions

View File

@@ -19,13 +19,14 @@
%define lname libgrpc6
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: grpc
Version: 1.15.1
Version: 1.16
Release: 0
%define rver 1.16.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
Source: https://github.com/grpc/grpc/archive/v%rver.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
@@ -65,8 +66,8 @@ applications that want to make use of the gRPC reference implementation.
%package -n python2-grpcio
Summary: Python language bindings for grpc, a HTTP/2 Remote Procedure Call implementation
Group: Development/Libraries/Python
Requires: %{lname} = %{version}-%{release}
Requires: python = %{python2_version}
Requires: %lname = %version-%release
Requires: python = %python2_version
%description -n python2-grpcio
This subpackage contains the python2 bindings.
@@ -74,14 +75,14 @@ This subpackage contains the python2 bindings.
%package -n python3-grpcio
Summary: Python language bindings for grpc, a HTTP/2 Remote Procedure Call implementation
Group: Development/Libraries/Python
Requires: %{lname} = %{version}-%{release}
Requires: python = %{python3_version}
Requires: %lname = %version-%release
Requires: python = %python3_version
%description -n python3-grpcio
This subpackage contains the python3 bindings.
%prep
%setup -q
%setup -qn grpc-%rver
%build
make %{?_smp_mflags} STRIP=/bin/true V=1 VERBOSE=1 \
@@ -92,7 +93,7 @@ export GRPC_PYTHON_BUILD_WITH_CYTHON=True
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True
export GRPC_PYTHON_BUILD_SYSTEM_CARES=True
export CFLAGS="%{optflags}"
export CFLAGS="%optflags"
%python_build
%install
@@ -127,11 +128,11 @@ popd
%_libdir/*.so
%files -n python2-grpcio
%{python2_sitearch}/grpcio-%{version}-py*.egg-info
%{python2_sitearch}/grpc
%python2_sitearch/grpcio-%rver-py*.egg-info
%python2_sitearch/grpc
%files -n python3-grpcio
%{python3_sitearch}/grpcio-%{version}-py*.egg-info
%{python3_sitearch}/grpc
%python3_sitearch/grpcio-%rver-py*.egg-info
%python3_sitearch/grpc
%changelog