From 1cb512fd8af28c77bb756c93f5b22b9eaf0d0eec Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 19 Oct 2026 09:11:32 +0000 Subject: automatic import of glog --- glog.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'glog.spec') diff --git a/glog.spec b/glog.spec index 9cf9186..3974b9a 100644 --- a/glog.spec +++ b/glog.spec @@ -4,7 +4,7 @@ Name: glog Version: 0.7.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Google Logging Library (glog) License: BSD-3-Clause @@ -22,9 +22,10 @@ BuildRequires: make # option(WITH_GFLAGS "Use gflags" ON) -> find_package(gflags 2.2.2) # option(WITH_GTEST "Use Google Test" ON) -> find_package(GTest) # find_package(Unwind) -> 由 glog 自带 FindUnwind.cmake 定位 libunwind -# openEuler 官方源已提供:gflags-devel 2.2.2 / gtest-devel 1.14.0 / libunwind-devel 1.7.2 +# openEuler 官方源已提供:gflags-devel 2.2.2 / gtest-devel 1.14.0 / gmock-devel 1.14.0 / libunwind-devel 1.7.2 BuildRequires: gflags-devel >= 2.2.2 BuildRequires: gtest-devel +BuildRequires: gmock-devel BuildRequires: libunwind-devel %description @@ -104,6 +105,13 @@ ctest %{?_smp_mflags} %{_datadir}/glog/ %changelog +* Mon Oct 19 2026 openEuler Builder - 0.7.1-4 +- Add BuildRequires: gmock-devel to fix missing gmock/gmock.h header in + logging_unittest.cc during %%build (build_id=113744). glog's test targets + include when WITH_GTEST=ON; gtest-devel only provides + gtest/gtest.h, gmock/gmock.h comes from the separate gmock-devel subpackage + (both 1.14.0, same source in openEuler official repo). + * Mon Oct 19 2026 openEuler Builder - 0.7.1-3 - Escape %%-prefixed macro names in %%build section comments (%%cmake, %%cmake_build, %%_vpath_builddir, %%_target_platform, %%build, %%check, -- cgit v1.2.3