1 Star 0 Fork 16

lingjuer/gtest

forked from src-openEuler/gtest 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gtest.spec 2.47 KB
一键复制 编辑 原始数据 按行查看 历史
lingjuer 提交于 2023-07-28 14:34 . Update to version 1.11.1
Name: gtest
Version: 1.11.0
Release: 1
Summary: Google C++ testing framework
License: BSD and ASL 2.0
URL: https://github.com/google/googletest
Source0: https://github.com/google/googletest/archive/release-%{version}.tar.gz#/googletest-release-1.11.0.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}
%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-release-%{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 ..
%make_build
%install
cd build
%make_install
%check
cd build
make test
%files
%{_libdir}/libgtest*.%{version}
%files -n gtest-devel
%doc googletest/{CHANGES,CONTRIBUTORS,README.md,docs,samples}
%{_includedir}/gtest/
%{_libdir}/libgtest*.so
%{_libdir}/cmake/GTest/
%{_libdir}/pkgconfig/gtest*
%files -n gmock
%{_libdir}/libgmock*.%{version}
%files -n gmock-devel
%doc googlemock/{CHANGES,CONTRIBUTORS,README.md,docs}
%{_includedir}/gmock/
%{_libdir}/libgmock*.so
%{_libdir}/pkgconfig/gmock*
%changelog
* Fri Jul 28 2023 zhangchenglin<zhangchenglin@kylinos.cn> - 1.8.1-4
- Internal Change
* 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lingjuer/gtest.git
git@gitee.com:lingjuer/gtest.git
lingjuer
gtest
gtest
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385