From 99cc36b0e3e673318275a11b7c9d2ed5ba0bc3e91b9beef4a43fd155a4ca38d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rostecki?= Date: Thu, 10 Sep 2020 12:37:36 +0000 Subject: [PATCH] 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 --- grpc.changes | 6 ++++++ grpc.spec | 38 -------------------------------------- 2 files changed, 6 insertions(+), 38 deletions(-) diff --git a/grpc.changes b/grpc.changes index 9d5e577..6cdcda9 100644 --- a/grpc.changes +++ b/grpc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 9 22:43:27 UTC 2020 - Atri Bhattacharya + +- Drop python modules provided by python-grpcio source package in + openSUSE:Factory. + ------------------------------------------------------------------- Thu Mar 12 06:53:27 UTC 2020 - Tomáš Chvátal diff --git a/grpc.spec b/grpc.spec index a3335ed..a293af6 100644 --- a/grpc.spec +++ b/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