Compare commits

..
Author SHA1 Message Date
openeuler-ci-bot 214f789457 !16 [sync] PR-12: cmake modules in gtest-devel needs libgmock.so.*
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-07-12 06:05:03 +00:00
Funda Wang 5c846fd951 cmake modules in gtest-devel needs libgmock.so.*
(cherry picked from commit c6c0f46428)
2024-07-12 10:40:34 +08:00
4 changed files with 11 additions and 23 deletions
Binary file not shown.
+9 -21
View File
@@ -1,12 +1,11 @@
Name: gtest
Version: 1.17.0
Release: 1
Version: 1.14.0
Release: 2
Summary: Google C++ testing framework
License: BSD-3-Clause and Apache-2.0
URL: https://github.com/google/googletest
Source0: https://github.com/google/googletest/releases/download/v%{version}/googletest-%{version}.tar.gz
Source0: https://github.com/google/googletest/archive/refs/tags/v%{version}.tar.gz
BuildRequires: gcc-c++ cmake python3-devel
%description
This package is Google C++ testing framework,It can be compiled for
a variety of platforms.Google Test is a unit testing library for
@@ -37,16 +36,18 @@ The package is libraries and head files for google mocking framework.
%prep
%autosetup -p1 -n googletest-%{version}
sed -e "s/set(GOOGLETEST_VERSION .*)/set(GOOGLETEST_VERSION %{version})/" -i CMakeLists.txt
%build
%cmake -DBUILD_SHARED_LIBS=ON -DPYTHON_EXECUTABLE=%{__python3} -Dgtest_build_tests=ON
%cmake_build
mkdir build && cd build
%cmake -DBUILD_SHARED_LIBS=ON -DPYTHON_EXECUTABLE=%{__python3} -Dgtest_build_tests=ON -S.. -B.
%make_build
%install
%cmake_install
%make_install -C build
%check
%ctest
%make_build test -C build
%files
%license LICENSE
@@ -72,19 +73,6 @@ The package is libraries and head files for google mocking framework.
%{_libdir}/pkgconfig/gmock*
%changelog
* Mon May 12 2025 Funda Wang <fundawang@yeah.net> - 1.17.0-1
- update to 1.17.0
* Mon Mar 10 2025 Funda Wang <fundawang@yeah.net> - 1.16.0-1
- update to 1.16.0
* Thu Jan 16 2025 yaoxin <1024769339@qq.com> - 1.15.2-1
- Update to 1.15.2:
* GoogleTest requires at least C++14 and follows Google's Foundational C++ Support Policy.
* C++ Language Support
* Bzlmod is now officially supported
* Many bug fixes
* Thu Jul 11 2024 Funda Wang <fundawang@yeah.net> - 1.14.0-2
- cmake modules in gtest-devel needs libgmock.so.*
+2 -2
View File
@@ -1,4 +1,4 @@
version_control: github
src_repo: google/googletest
tag_prefix: ^v
separator: .
tag_prefix: release-
seperator: .
BIN
View File
Binary file not shown.