Bump to gtest 1.11.0 17/267417/2 sandbox/jinwang.an/gtest-1.11.0_20211203 accepted/tizen/unified/20211221.050720 submit/tizen/20211210.025024
authorJinWang An <jinwang.an@samsung.com>
Fri, 3 Dec 2021 04:12:46 +0000 (13:12 +0900)
committerJinWang An <jinwang.an@samsung.com>
Thu, 9 Dec 2021 11:18:27 +0000 (20:18 +0900)
Change-Id: Id52002bc5c6e6b2ad73aecddf77b7050d9b21845
Signed-off-by: JinWang An <jinwang.an@samsung.com>
packaging/gtest.manifest [new file with mode: 0644]
packaging/gtest.spec [new file with mode: 0644]

diff --git a/packaging/gtest.manifest b/packaging/gtest.manifest
new file mode 100644 (file)
index 0000000..86dbb26
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_" />
+    </request>
+</manifest>
diff --git a/packaging/gtest.spec b/packaging/gtest.spec
new file mode 100644 (file)
index 0000000..f6f8afe
--- /dev/null
@@ -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