2 Summary: Google C++ Testing Framework
6 # ==========================================================
8 # ==========================================================
10 Group: Definition/Libraries/C and C++
11 Source0: %{name}-%{version}.tar.gz
12 Source1: Fix-build-error-at-cmake.patch
13 Source1001: %{name}.manifest
15 # ==========================================================
17 # specifies build-time dependencies for the package
18 # ==========================================================
20 Provides: libgtest_main.so.0 libgtest.so.0
21 Provides: libgmock_main.so.0 libgmock.so.0
24 Google's framework for writing C++ tests on a variety of platforms (Linux, Mac
25 OS X, Windows, Cygwin, Windows CE, and Symbian). Based on the xUnit
26 architecture. Supports automatic test discovery, a rich set of assertions,
27 user-defined assertions, death tests, fatal and non-fatal failures, value- and
28 type-parameterized tests, various options for running the tests, and XML test
33 Summary: Google C++ Testing Framework
34 Requires: %{name} = %{version}
37 Google C++ Testing Framework
43 %{__patch} -p1 < %{SOURCE1}
45 # ==========================================================
47 # how to actually build the software we are packaging
48 # ==========================================================
53 %{__make} %{?_smp_mflags}
57 # ==========================================================
59 # how to actually build the software we are packaging
60 # ==========================================================
66 rm -f %{buildroot}/%{_includedir}/gmock/internal/custom/README.md
67 rm -f %{buildroot}/%{_includedir}/gtest/internal/custom/README.md
71 %post -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
75 # ==========================================================
77 # The list of files that will be installed in the end
79 # ==========================================================
81 %manifest %{name}.manifest
87 %manifest %{name}.manifest
89 %{_libdir}/pkgconfig/gtest_main.pc
90 %{_libdir}/pkgconfig/gtest.pc
91 %{_libdir}/pkgconfig/gmock_main.pc
92 %{_libdir}/pkgconfig/gmock.pc
93 %{_includedir}/gmock/*.h
94 %{_includedir}/gmock/internal/*.h
95 %{_includedir}/gmock/internal/custom/*.h
96 %{_includedir}/gtest/*.h
97 %{_includedir}/gtest/internal/*.h
98 %{_includedir}/gtest/internal/custom/*.h
99 %{_libdir}/cmake/GTest/*.cmake