]> git.pld-linux.org Git - packages/protobuf.git/blobdiff - protobuf.spec
rebuild with python 3.10
[packages/protobuf.git] / protobuf.spec
index 203ab0a63415e8cc84e5b5c9aa8a89182c3102b5..f4dcc8790e27285d4ada48007401e684abf09463 100644 (file)
@@ -7,22 +7,23 @@
 %bcond_without python2 # Python 2.x bindings
 %bcond_without python3 # Python 3.x bindings
 %bcond_without ruby    # Ruby bindings
-%bcond_without tests   # perform "make check"
+%bcond_without tests   # perform "make check" (requires 4+GB RAM on 64-bit archs)
 
 Summary:       Protocol Buffers - Google's data interchange format
 Summary(pl.UTF-8):     Protocol Buffers - format wymiany danych Google
 Name:          protobuf
-Version:       3.13.0
-Release:       3
+Version:       3.14.0
+Release:       5
 License:       BSD
 Group:         Libraries
 #Source0Download: https://github.com/google/protobuf/releases
 Source0:       https://github.com/google/protobuf/releases/download/v%{version}/%{name}-all-%{version}.tar.gz
-# Source0-md5: cafa623d51361228c83c874d95f51992
+# Source0-md5: d0a7dd930210af5285c08c8a2c2304ab
 Source1:       ftdetect-proto.vim
 Patch0:                system-gtest.patch
 Patch1:                no-wrap-memcpy.patch
-Patch2:                %{name}-no-wheel.patch
+Patch2:                %{name}-x32.patch
+Patch3:                %{name}-disable-64bitptr-test.patch
 URL:           https://github.com/google/protobuf/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1:1.9
@@ -31,6 +32,7 @@ BuildRequires:        automake >= 1:1.9
 BuildRequires: libstdc++-devel >= 6:4.7
 BuildRequires: libtool
 BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
 %if %{with python2}
 BuildRequires: python-modules >= 1:2.7
 BuildRequires: python-setuptools
@@ -158,6 +160,7 @@ Summary(pl.UTF-8):  Wiązania Pythona 2 do buforów protokołowych (Protocol Buff
 Group:         Development/Languages/Python
 Requires:      python-modules >= 1:2.7
 # does not use C++ library at this time
+BuildArch:     noarch
 
 %description -n python-protobuf
 Python 2 bindings for Protocol Buffers.
@@ -171,6 +174,7 @@ Summary(pl.UTF-8):  Wiązania Pythona 3 do buforów protokołowych (Protocol Buff
 Group:         Development/Languages/Python
 Requires:      python3-modules >= 1:3.3
 # does not use C++ library at this time
+BuildArch:     noarch
 
 %description -n python3-protobuf
 Python 3 bindings for Protocol Buffers.
@@ -209,6 +213,9 @@ opisów buforów protokołowych (Protocol Buffers).
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%ifnarch %{x8664} aarch64 alpha ia64 mips64 ppc64 s390x sparc64
+%patch3 -p1
+%endif
 
 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
       examples/add_person.py \
@@ -306,17 +313,17 @@ rm -rf $RPM_BUILD_ROOT
 %doc CHANGES.txt CONTRIBUTORS.txt LICENSE README.md
 %attr(755,root,root) %{_bindir}/protoc
 %attr(755,root,root) %{_libdir}/libprotoc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libprotoc.so.24
+%attr(755,root,root) %ghost %{_libdir}/libprotoc.so.25
 
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libprotobuf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libprotobuf.so.24
+%attr(755,root,root) %ghost %{_libdir}/libprotobuf.so.25
 
 %files lite
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libprotobuf-lite.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libprotobuf-lite.so.24
+%attr(755,root,root) %ghost %{_libdir}/libprotobuf-lite.so.25
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.092029 seconds and 4 git commands to generate.