Summary: Google C++ Mocking Framework Name: gmock Version: 1.4.0 Release: 1%{?dist} License: BSD Group: Development/Tools URL: http://code.google.com/p/googlemock/ Source0: http://googlemock.googlecode.com/files/%{name}-%{version}.tar.bz2 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: chrpath BuildRequires: gtest-devel >= %{version} %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: * lets you create mock classes trivially using simple macros, * supports a rich set of matchers and actions, * handles unordered, partially ordered, or completely ordered expectations, * is extensible by users, and * works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and Symbian. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: automake Requires: %{name} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %setup -q # Ensure we don't use the bundled gtest rm -rf ./gtest %build %configure --disable-static # Omit unused direct shared library dependencies. sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool make %{?_smp_mflags} %check # Two tests fail here, unclear as to why. make check ||: %install rm -rf $RPM_BUILD_ROOT make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name "*.la" -delete # Remove rpaths. chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgmock_main.so.0.0.0 %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc CHANGES %doc CONTRIBUTORS %doc COPYING %doc README %{_libdir}/libgmock.so.* %{_libdir}/libgmock_main.so.* %files devel %defattr(-,root,root,-) %{_bindir}/%{name}-config %{_bindir}/%{name}_doctor.py #%{_datadir}/aclocal/%{name}.m4 %{_libdir}/libgmock.so %{_libdir}/libgmock_main.so %dir %{_includedir}/%{name} %{_includedir}/%{name}/*.h %{_includedir}/%{name}/internal %changelog * Sun Oct 4 2009 Tejas Dinkar - Initial Gmock 1.4.0-1