[packages/protobuf] - BR abseil-cpp-test-devel when building with tests

qboosh qboosh at pld-linux.org
Sun Nov 2 17:50:40 CET 2025


commit f28e04bd28fda247bf057b37694ad20d894cc5f8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 2 17:50:38 2025 +0100

    - BR abseil-cpp-test-devel when building with tests

 protobuf.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/protobuf.spec b/protobuf.spec
index 7370b9c..ff35bda 100644
--- a/protobuf.spec
+++ b/protobuf.spec
@@ -9,6 +9,7 @@
 %bcond_without	tests		# perform "make check" (requires 4+GB RAM on 64-bit archs)
 %bcond_with	static_libs	# Ruby bindings
 
+%define	abseil_ver	20250814.0
 Summary:	Protocol Buffers - Google's data interchange format
 Summary(pl.UTF-8):	Protocol Buffers - format wymiany danych Google
 Name:		protobuf
@@ -26,7 +27,8 @@ Patch2:		%{name}-x32.patch
 Patch3:		no-death-test.patch
 Patch4:		%{name}-32bit.patch
 URL:		https://github.com/google/protobuf/
-BuildRequires:	abseil-cpp-devel >= 20250814.0
+BuildRequires:	abseil-cpp-devel >= %{abseil_ver}
+%{?with_tests:BuildRequires:	abseil-cpp-test-devel >= %{abseil_ver}}
 BuildRequires:	cmake >= 3.10
 %{?with_tests:BuildRequires:	gmock-devel >= 1.9.0}
 %{?with_tests:BuildRequires:	gtest-devel >= 1.9.0}
@@ -208,6 +210,7 @@ buforów protokołowych (Protocol Buffers).
 mkdir -p build
 cd build
 %cmake ../ \
+	-Dprotobuf_BUILD_TESTS=%{__ON_OFF tests} \
 	-Dprotobuf_USE_EXTERNAL_GTEST=ON \
 	-Dprotobuf_ABSL_PROVIDER=package
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/protobuf.git/commitdiff/f28e04bd28fda247bf057b37694ad20d894cc5f8



More information about the pld-cvs-commit mailing list