2024-10-28 08:55:24 +00:00
committed by Git OBS Bridge
parent 38b7069187
commit c9b8c58def

View File

@@ -18,9 +18,6 @@
%define baseversion 28.3
%if 0%{?gcc_version} < 11
%define with_gcc 11
%endif
%{?sle15_python_module_pythons}
Name: python-protobuf
Version: 5.%{baseversion}
@@ -30,16 +27,12 @@ License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/protocolbuffers/protobuf
Source0: https://files.pythonhosted.org/packages/source/p/protobuf/protobuf-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module abseil}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: gcc%{?with_gcc}-c++
BuildRequires: protobuf-devel >= %{baseversion}
%python_subpackages
%description
@@ -61,11 +54,6 @@ grep -qF "'%{version}'" google/protobuf/__init__.py
sed -i -e '/env python/d' google/protobuf/internal/*.py
%build
protoc --upbdefs_out=python --proto_path=src google/protobuf/descriptor.proto
%if 0%{?with_gcc}
export CC=gcc-%{with_gcc}
export CXX=g++-%{with_gcc}
%endif
%pyproject_wheel
%install