From: JinWang An Date: Fri, 3 Dec 2021 04:12:46 +0000 (+0900) Subject: Bump to gtest 1.11.0 X-Git-Tag: accepted/tizen/unified/20211221.050720^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bfcdb62cf5f41182da083444cea55e4ff163f88;p=platform%2Fupstream%2Fgtest.git Bump to gtest 1.11.0 Change-Id: Id52002bc5c6e6b2ad73aecddf77b7050d9b21845 Signed-off-by: JinWang An --- diff --git a/packaging/gtest.manifest b/packaging/gtest.manifest new file mode 100644 index 0000000..86dbb26 --- /dev/null +++ b/packaging/gtest.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/gtest.spec b/packaging/gtest.spec new file mode 100644 index 0000000..f6f8afe --- /dev/null +++ b/packaging/gtest.spec @@ -0,0 +1,97 @@ +Name: gtest +Summary: Google C++ Testing Framework +Version: 1.11.0 +Release: 0 + +# ========================================================== +License: BSD-3-Clause +# ========================================================== + +Group: Definition/Libraries/C and C++ +Source0: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: cmake +Provides: libgtest_main.so.0 libgtest.so.0 +Provides: libgmock_main.so.0 libgmock.so.0 + +%description +Google's framework for writing C++ tests on a variety of platforms (Linux, Mac +OS X, Windows, Cygwin, Windows CE, and Symbian). Based on the xUnit +architecture. Supports automatic test discovery, a rich set of assertions, +user-defined assertions, death tests, fatal and non-fatal failures, value- and +type-parameterized tests, various options for running the tests, and XML test +report generation. + + +%package devel +Summary: Google C++ Testing Framework +Requires: %{name} = %{version} + +%description devel +Google C++ Testing Framework + + +%prep +%setup -q +cp %{SOURCE1001} . + +# ========================================================== +# build section +# how to actually build the software we are packaging +# ========================================================== +%build +mkdir -p build +pushd build +%{cmake} .. +%{__make} %{?_smp_mflags} +popd + + +# ========================================================== +# install section +# how to actually build the software we are packaging +# ========================================================== +%install +pushd build +%{make_install} +popd + +rm -f %{buildroot}/%{_includedir}/gmock/internal/custom/README.md +rm -f %{buildroot}/%{_includedir}/gtest/internal/custom/README.md + +%clean + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +# ========================================================== +# files section +# The list of files that will be installed in the end +# user’s system. +# ========================================================== +%files +%manifest %{name}.manifest +%license LICENSE +%{_libdir}/*.so.* +%{_libdir}/*.so + +%files devel +%manifest %{name}.manifest +%license LICENSE +%{_libdir}/pkgconfig/gtest_main.pc +%{_libdir}/pkgconfig/gtest.pc +%{_libdir}/pkgconfig/gmock_main.pc +%{_libdir}/pkgconfig/gmock.pc +%{_includedir}/gmock/*.h +%{_includedir}/gmock/internal/*.h +%{_includedir}/gmock/internal/custom/*.h +%{_includedir}/gtest/*.h +%{_includedir}/gtest/internal/*.h +%{_includedir}/gtest/internal/custom/*.h +%{_libdir}/cmake/GTest/*.cmake