Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c28c39ce8 | ||
|
|
c51431d326 | ||
|
|
8477977b57 | ||
|
|
231f2e75c6 | ||
|
|
f51f77e1a9 | ||
|
|
435883ff61 | ||
|
|
6158d2a9f7 | ||
|
|
c6c0f46428 |
Binary file not shown.
+21
-9
@@ -1,11 +1,12 @@
|
||||
Name: gtest
|
||||
Version: 1.14.0
|
||||
Release: 2
|
||||
Version: 1.17.0
|
||||
Release: 1
|
||||
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/archive/refs/tags/v%{version}.tar.gz
|
||||
Source0: https://github.com/google/googletest/releases/download/v%{version}/googletest-%{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
|
||||
@@ -36,18 +37,16 @@ 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
|
||||
mkdir build && cd build
|
||||
%cmake -DBUILD_SHARED_LIBS=ON -DPYTHON_EXECUTABLE=%{__python3} -Dgtest_build_tests=ON -S.. -B.
|
||||
%make_build
|
||||
%cmake -DBUILD_SHARED_LIBS=ON -DPYTHON_EXECUTABLE=%{__python3} -Dgtest_build_tests=ON
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%make_install -C build
|
||||
%cmake_install
|
||||
|
||||
%check
|
||||
%make_build test -C build
|
||||
%ctest
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
@@ -73,6 +72,19 @@ mkdir build && cd build
|
||||
%{_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
@@ -1,4 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: google/googletest
|
||||
tag_prefix: release-
|
||||
seperator: .
|
||||
tag_prefix: ^v
|
||||
separator: .
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user