cmake modules in gtest-devel needs libgmock.so.*
(cherry picked from commit c6c0f46428a1f625b703487332955307fa5fc3e5)
This commit is contained in:
parent
f8102d6e33
commit
b9f8800d7d
17
gtest.spec
17
gtest.spec
@ -1,8 +1,8 @@
|
|||||||
Name: gtest
|
Name: gtest
|
||||||
Version: 1.14.0
|
Version: 1.14.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Google C++ testing framework
|
Summary: Google C++ testing framework
|
||||||
License: BSD and ASL 2.0
|
License: BSD-3-Clause and Apache-2.0
|
||||||
URL: https://github.com/google/googletest
|
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/archive/refs/tags/v%{version}.tar.gz
|
||||||
BuildRequires: gcc-c++ cmake python3-devel
|
BuildRequires: gcc-c++ cmake python3-devel
|
||||||
@ -15,6 +15,7 @@ allowing unit-testing of C sources as well as C++ with minimal source modificati
|
|||||||
%package -n gtest-devel
|
%package -n gtest-devel
|
||||||
Summary: Gtest development files
|
Summary: Gtest development files
|
||||||
Requires: gtest = %{version}-%{release}
|
Requires: gtest = %{version}-%{release}
|
||||||
|
Requires: gmock = %{version}-%{release}
|
||||||
%description -n gtest-devel
|
%description -n gtest-devel
|
||||||
This package is libraries and head files for google testing framework.
|
This package is libraries and head files for google testing framework.
|
||||||
|
|
||||||
@ -37,19 +38,16 @@ The package is libraries and head files for google mocking framework.
|
|||||||
%autosetup -p1 -n googletest-%{version}
|
%autosetup -p1 -n googletest-%{version}
|
||||||
sed -e "s/set(GOOGLETEST_VERSION .*)/set(GOOGLETEST_VERSION %{version})/" -i CMakeLists.txt
|
sed -e "s/set(GOOGLETEST_VERSION .*)/set(GOOGLETEST_VERSION %{version})/" -i CMakeLists.txt
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
%cmake -DBUILD_SHARED_LIBS=ON -DPYTHON_EXECUTABLE=%{__python3} -Dgtest_build_tests=ON ..
|
%cmake -DBUILD_SHARED_LIBS=ON -DPYTHON_EXECUTABLE=%{__python3} -Dgtest_build_tests=ON -S.. -B.
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
%make_install -C build
|
||||||
%make_install
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd build
|
%make_build test -C build
|
||||||
make test
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -75,6 +73,9 @@ make test
|
|||||||
%{_libdir}/pkgconfig/gmock*
|
%{_libdir}/pkgconfig/gmock*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Aug 25 2023 wangkai <13474090681@163.com> - 1.14.0-1
|
||||||
- Update to 1.14.0
|
- Update to 1.14.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user