SHA256
1
0
forked from pool/grpc
grpc/grpc.spec
Jan Engelhardt 2f46939fb2 Accepting request 648212 from home:tbechtold:branches:devel:tools
- update to 1.15.1:
  Core
  * Document SSL portability and performance considerations. See
    https://github.com/grpc/grpc/blob/master/doc/ssl-performance.md .
  * Simplify call arena size growth. (#16396)
  * Make gRPC buildable with AIX and Solaris (no official support). (#15926)
  * PF: Check connectivity state before watching. (#16306)
  * Added system roots feature to load roots from OS trust store. (#16083)
  * Fix c-ares compilation under windows (but doesn't yet enable windows DNS
    queries), and then enables address sorting on Windows. (#16163)
  * Fix re-resolution in pick first. (#16076)
  * Allow error strings in final_info to propagate to filters on call
    destruction. (#16104)
  * Add resolver executor . (#16010)
  * Data race fix for lockfree_event. (#16053)
  * Channelz: Expose new Core API. (#16022)
  C++
  * cmake: disable assembly optimizations only when necessary. (#16415)
  * C++ sync server: Return status RESOURCE_EXHAUSTED if no thread quota
    available. (#16356)
  * Use correct target name for gflags-config.cmake. (#16343)
  * Make should generate pkg-config file for gpr as well. (#15295)
  * Restrict the number of threads in C++ sync server. (#16217)
  * Allow reset of connection backoff. (#16225)
  C#
  * Add experimental support for Xamarin.Android and Xamarin.iOS, added
    Helloworld example for Xamarin.
    See https://github.com/grpc/grpc/tree/master/src/csharp/experimental.
  * Add experimental support for Unity Android and iOS.
    See https://github.com/grpc/grpc/tree/master/src/csharp/experimental.

OBS-URL: https://build.opensuse.org/request/show/648212
OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=31
2018-11-11 17:43:52 +00:00

138 lines
4.3 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 https://bugs.opensuse.org/
#
%define lname libgrpc6
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: grpc
Version: 1.15.1
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
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: python-rpm-macros
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.
%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}
%description -n python2-grpcio
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}
%description -n python3-grpcio
This subpackage contains the python3 bindings.
%prep
%setup -q
%build
make %{?_smp_mflags} STRIP=/bin/true V=1 VERBOSE=1 \
CFLAGS="%optflags -Wno-error" CXXFLAGS="%optflags -Wno-error"
# build python module
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}"
%python_build
%install
b="%buildroot"
%make_install prefix="$b/%_prefix" STRIP=/bin/true V=1 VERBOSE=1
find "$b/%_includedir" -type f -exec chmod a-x {} +
pushd "$b/usr"
rm -fv lib/*.a share/grpc/*.pem
perl -i -pe 's{^prefix=.*}{prefix=%_prefix}' lib/pkgconfig/*.pc
perl -i -pe 's{^libdir=.*}{libdir=%_libdir}' lib/pkgconfig/*.pc
if test ! -d lib64 && test "%_lib" = lib64; then
mv lib lib64
fi
popd
%python_install
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%_libdir/libaddress_sorting.so.*
%_libdir/libgpr*.so.*
%_libdir/libgrpc*.so.*
%files devel
%defattr(-,root,root)
%license LICENSE
%_bindir/*
%_includedir/*
%_libdir/pkgconfig/*.pc
%_libdir/*.so
%files -n python2-grpcio
%{python2_sitearch}/grpcio-%{version}-py*.egg-info
%{python2_sitearch}/grpc
%files -n python3-grpcio
%{python3_sitearch}/grpcio-%{version}-py*.egg-info
%{python3_sitearch}/grpc
%changelog