diff --git a/python-grpcio.changes b/python-grpcio.changes index 90655e3..e1eac35 100644 --- a/python-grpcio.changes +++ b/python-grpcio.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Jul 16 14:36:00 UTC 2025 - Atri Bhattacharya + +- Require Cython >= 3.0.0 instead of 3.1.1 as the latest version + available on TW is 3.0.2 currently. + +------------------------------------------------------------------- +Mon Jul 14 12:20:42 UTC 2025 - ecsos + +- Fix build error for Leap 15.6. + ------------------------------------------------------------------- Sun Jun 15 06:02:08 UTC 2025 - Atri Bhattacharya diff --git a/python-grpcio.spec b/python-grpcio.spec index 51e6d56..f15b991 100644 --- a/python-grpcio.spec +++ b/python-grpcio.spec @@ -31,15 +31,22 @@ Patch1: xxhash-avoid-armv6-unaligned-access.patch # PATCH-FIX-SLE xxhash-ppc64le-gcc7.patch boo#1208794 alarrosa@suse.com -- fix build failure on ppc64le when using gcc 7 Patch2: xxhash-ppc64le-gcc7.patch Patch3: fix-return-values.patch -BuildRequires: %{python_module Cython >= 0.29.8} -BuildRequires: %{python_module devel >= 3.7} +BuildRequires: %{python_module Cython >= 3.0.0} +BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module pip} +BuildRequires: %{python_module protobuf >= 6.30 } BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel >= 0.29} -BuildRequires: abseil-cpp-devel >= 20220623.0 +BuildRequires: abseil-cpp-devel >= 20250127.0 BuildRequires: ca-certificates BuildRequires: fdupes +%if 0%{?suse_version} < 1600 +BuildRequires: gcc13 +BuildRequires: gcc13-c++ +%else +BuildRequires: gcc BuildRequires: gcc-c++ +%endif BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(libcares) @@ -60,6 +67,10 @@ connected systems. %autosetup -p1 -n grpcio-%{version} %build +%if 0%{?suse_version} < 1600 +export CC=gcc-13 +export CXX=g++-13 +%endif export GRPC_BUILD_WITH_BORING_SSL_ASM=false export GRPC_PYTHON_BUILD_SYSTEM_ABSL=true export GRPC_PYTHON_BUILD_SYSTEM_CARES=true