代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/gtest 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: gtest
Version: 1.8.1
Release: 3
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
Patch0000: gtest-1.8.1-null-pointer.patch
Patch0001: gtest-PR1839-Fix-Python3-support.patch
Patch0002: gtest-1.8.1-libversion.patch
Patch0003: gtest-1.8.1-add-missing-pkgconfig-requires.patch
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
%license googletest/LICENSE
%{_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
%license googlemock/LICENSE
%{_libdir}/libgmock*.%{version}
%files -n gmock-devel
%doc googlemock/{CHANGES,CONTRIBUTORS,README.md,docs}
%{_includedir}/gmock/
%{_libdir}/libgmock*.so
%{_libdir}/pkgconfig/gmock*
%changelog
* Wed Nov 27 2019 zhujunhao <zhujunhao5@huawei.com> - 1.8.1-3
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。