Projects
openEuler:24.03:SP1:Everything
gtest
_service:tar_scm:gtest.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:gtest.spec of Package gtest
Name: gtest 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/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 the C++ programming language, based on the xUnit architecture, allowing unit-testing of C sources as well as C++ with minimal source modification. %package -n gtest-devel Summary: Gtest development files Requires: gtest = %{version}-%{release} Requires: gmock = %{version}-%{release} %description -n gtest-devel This package is libraries and head files for google testing framework. %package -n gmock Summary: Google framework for writing and using C++ mock classes Requires: gtest = %{version}-%{release} %description -n gmock The package is Google's framework for writing and using C++ mock classes. It can help you derive better designs of your system and write better tests. Gmock is a suite of testing tools developed by Google. It is often used in combination with GTest. %package -n gmock-devel Summary: Gmock development files Requires: gmock = %{version}-%{release} %description -n gmock-devel 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 %install %make_install -C build %check %make_build test -C build %files %license LICENSE %{_libdir}/libgtest*.%{version} %files -n gtest-devel %doc CONTRIBUTORS README.md %doc docs/ %{_includedir}/gtest/ %{_libdir}/libgtest*.so %{_libdir}/cmake/GTest/ %{_libdir}/pkgconfig/gtest* %files -n gmock %license LICENSE %{_libdir}/libgmock*.%{version} %files -n gmock-devel %doc CONTRIBUTORS README.md %doc docs/ %{_includedir}/gmock/ %{_libdir}/libgmock*.so %{_libdir}/pkgconfig/gmock* %changelog * Thu Jul 11 2024 Funda Wang <fundawang@yeah.net> - 1.14.0-2 - cmake modules in gtest-devel needs libgmock.so.* * Fri Aug 25 2023 wangkai <13474090681@163.com> - 1.14.0-1 - Update to 1.14.0 * Sat Jan 07 2023 xingxing<xingxing@xfusion.com> - 1.8.1-4 - Internal Change * Wed Nov 27 2019 zhujunhao <zhujunhao5@huawei.com> - 1.8.1-3 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2