Accepting request 833341 from home:badshah400:branches:devel:tools
- Drop python modules provided by python-grpcio source package in openSUSE:Factory. OBS-URL: https://build.opensuse.org/request/show/833341 OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=62
This commit is contained in:
parent
134ac76bec
commit
99cc36b0e3
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 9 22:43:27 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Drop python modules provided by python-grpcio source package in
|
||||
openSUSE:Factory.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 12 06:53:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
38
grpc.spec
38
grpc.spec
@ -19,8 +19,6 @@
|
||||
%define lver 8
|
||||
%define lverp 1
|
||||
%define src_install_dir /usr/src/%name
|
||||
%bcond_without python2
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: grpc
|
||||
Version: 1.25.0
|
||||
Release: 0
|
||||
@ -30,14 +28,10 @@ Group: Development/Tools/Building
|
||||
URL: https://grpc.io/
|
||||
Source: https://github.com/grpc/grpc/archive/v%version.tar.gz
|
||||
Source2: %name-rpmlintrc
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: zypper
|
||||
BuildRequires: pkgconfig(libcares)
|
||||
BuildRequires: pkgconfig(openssl) >= 1.0.1
|
||||
@ -93,22 +87,6 @@ BuildArch: noarch
|
||||
%description -n grpc-source
|
||||
This subpackage contains source code 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: libgrpc%lver = %version-%release
|
||||
|
||||
%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: libgrpc%lver = %version-%release
|
||||
|
||||
%description -n python3-grpcio
|
||||
This subpackage contains the python3 bindings.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
@ -121,13 +99,6 @@ export CFLAGS="%optflags -Wno-error"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
make %{?_smp_mflags} STRIP=/bin/true V=1 VERBOSE=1
|
||||
|
||||
# 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
|
||||
%python_build
|
||||
|
||||
%install
|
||||
b="%buildroot"
|
||||
# work around "Argument list too long"
|
||||
@ -143,7 +114,6 @@ if test ! -d lib64 && test "%_lib" = lib64; then
|
||||
mv lib lib64
|
||||
fi
|
||||
popd
|
||||
%python_install
|
||||
|
||||
# Install sources
|
||||
make clean
|
||||
@ -178,12 +148,4 @@ cp -r * "%buildroot/%src_install_dir"
|
||||
%files source
|
||||
%src_install_dir
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-grpcio
|
||||
%python2_sitearch/grpc*
|
||||
%endif
|
||||
|
||||
%files -n python3-grpcio
|
||||
%python3_sitearch/grpc*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user