Name: gmock Version: 1.10.0 Release: 2mamba Summary: Google C++ Mocking Framework Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://code.google.com/p/googlemock/ Source: https://github.com/google/googletest.git/release-%{version}/googletest-%{version}.tar.bz2 #Source: http://googlemock.googlecode.com/files/gmock-%{version}.zip License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s specifics in mind, Google C++ Mocking Framework (or Google Mock for short) is a library for writing and using C++ mock classes. Google Mock: - provides a declarative syntax for defining mocks, - can easily define partial (hybrid) mocks, which are a cross of real and mock objects, - handles functions of arbitrary types and overloaded functions, - comes with a rich set of matchers for validating function arguments, - uses an intuitive syntax for controlling the behavior of a mock, - does automatic verification of expectations (no record-and-replay needed), - allows arbitrary (partial) ordering constraints on function calls to be expressed, - lets a user extend it by defining new matchers and actions. - does not use exceptions, and - is easy to learn and use. %package -n lib%{name} Group: System/Libraries Summary: Google C++ Mocking Framework Provides: gtest-devel Obsoletes: gtest-devel Provides: gmock Obsoletes: gmock %description -n lib%{name} Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s specifics in mind, Google C++ Mocking Framework (or Google Mock for short) is a library for writing and using C++ mock classes. Google Mock: - provides a declarative syntax for defining mocks, - can easily define partial (hybrid) mocks, which are a cross of real and mock objects, - handles functions of arbitrary types and overloaded functions, - comes with a rich set of matchers for validating function arguments, - uses an intuitive syntax for controlling the behavior of a mock, - does automatic verification of expectations (no record-and-replay needed), - allows arbitrary (partial) ordering constraints on function calls to be expressed, - lets a user extend it by defining new matchers and actions. - does not use exceptions, and - is easy to learn and use. %package -n lib%{name}-devel Group: Development/Libraries Summary: Google C++ Mocking Framework Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: gtest-devel Obsoletes: gtest-devel Provides: gmock-devel Obsoletes: gmock-devel %description -n lib%{name}-devel Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s specifics in mind, Google C++ Mocking Framework (or Google Mock for short) is a library for writing and using C++ mock classes. Google Mock: - provides a declarative syntax for defining mocks, - can easily define partial (hybrid) mocks, which are a cross of real and mock objects, - handles functions of arbitrary types and overloaded functions, - comes with a rich set of matchers for validating function arguments, - uses an intuitive syntax for controlling the behavior of a mock, - does automatic verification of expectations (no record-and-replay needed), - allows arbitrary (partial) ordering constraints on function calls to be expressed, - lets a user extend it by defining new matchers and actions. - does not use exceptions, and - is easy to learn and use. %debug_package %prep %setup -q -n googletest-%{version} %build %cmake -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build #install -D -m0755 build/libgmock.so %{buildroot}%{_libdir}/libgmock.so #install -D -m0755 build/libgmock_main.so %{buildroot}%{_libdir}/libgmock_main.so #install -D -m0755 build/gtest/libgtest.so %{buildroot}%{_libdir}/libgtest.so #install -D -m0755 build/gtest/libgtest_main.so %{buildroot}%{_libdir}/libgtest_main.so #install -d -m0755 %{buildroot}/%{_includedir} #cp -a include/gmock %{buildroot}/%{_includedir}/ #cp -a gtest/include/gtest %{buildroot}/%{_includedir}/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libgmock.so %{_libdir}/libgmock_main.so %{_libdir}/libgtest.so %{_libdir}/libgtest_main.so %doc LICENSE %files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/gmock %{_includedir}/gmock/*.h %{_includedir}/gmock/*.pump %dir %{_includedir}/gmock/internal %{_includedir}/gmock/internal/*.h #%{_includedir}/gmock/internal/*.pump %dir %{_includedir}/gmock/internal/custom %{_includedir}/gmock/internal/custom/* %dir %{_includedir}/gtest %{_includedir}/gtest/*.h #%{_includedir}/gtest/*.pump %dir %{_includedir}/gtest/internal %{_includedir}/gtest/internal/*.h %{_includedir}/gtest/internal/*.pump %dir %{_includedir}/gtest/internal/custom %{_includedir}/gtest/internal/custom/* %{_libdir}/cmake/GTest/GTest*.cmake %{_libdir}/pkgconfig/gmock.pc %{_libdir}/pkgconfig/gmock_main.pc %{_libdir}/pkgconfig/gtest.pc %{_libdir}/pkgconfig/gtest_main.pc %changelog * Thu Nov 07 2019 Silvan Calarco 1.10.0-2mamba - libgmock-devel: require libgmock, not gmock * Wed Nov 06 2019 Silvan Calarco 1.10.0-1mamba - update to 1.10.0 * Thu Aug 15 2019 Silvan Calarco 1.8.1-1mamba - update to 1.8.1 * Tue Aug 09 2016 Automatic Build System 1.7.0-1mamba - automatic version update by autodist * Sun Feb 17 2013 Silvan Calarco 1.6.0-1mamba - update to 1.6.0 * Wed Sep 22 2010 gil 1.5.0-1mamba - package created by autospec