Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > a54565d7aead4c5d8aab29ee5ec2fc9a > files > 2

gmock-1.5.0-1.fc14.src.rpm

Summary:        Google C++ Mocking Framework
Name:           gmock
Version:        1.5.0
Release:        1%{?dist}
License:        BSD
Group:          System Environment/Libraries
URL:            http://code.google.com/p/googlemock/
Source0:        http://googlemock.googlecode.com/files/gmock-%{version}.tar.bz2
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires:  gtest-devel >= 1.5.0
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  python
Requires:       gtest >= 1.5.0

%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:

 o lets you create mock classes trivially using simple macros,
 o supports a rich set of matchers and actions,
 o handles unordered, partially ordered, or completely ordered
   expectations,
 o is extensible by users, and
 o works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and
   Symbian.

%package        devel
Summary:        Development files for %{name}
Group:          System Environment/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
This package contains development files for %{name}.

%prep
%setup -q
# Only acx_pthread.m4 needed from gtest, 
# save the rest for use in make check
mv gtest gtest.rpmbuild
install -D -p -m 0644 gtest.rpmbuild/m4/acx_pthread.m4 \
    gtest/m4/acx_pthread.m4 

%build
# needed for mahe check to work without failures
autoreconf -fvi     
%configure --disable-static
# Omit unused direct shared library dependencies and rpaths
sed -i -e 's| -shared | -Wl,--as-needed\0|g' libtool
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make install INSTALL="%{__install} -p" DESTDIR=%{buildroot}
find %{buildroot} -type f -name "*.la" -delete

%check
# restore gtest for make check to work
rm -rf gtest
mv gtest.rpmbuild gtest
make check

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root, -)
%doc CHANGES CONTRIBUTORS COPYING README
%{_libdir}/libgmock.so.*
%{_libdir}/libgmock_main.so.*

%files devel
%defattr(-, root, root, -)
%{_bindir}/gmock-config
%{_bindir}/gmock_doctor.py
%{_libdir}/libgmock.so
%{_libdir}/libgmock_main.so
%{_includedir}/gmock

%changelog
* Wed Jan 12 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.5.0-1
- 1.5.0
- req gtest 1.5.0
- fix description
- fix group
- fix files section
- remove name macro
- rpmlint error free
- don't build with bundled gtest
- make check works
- add some buildreqs

* Sun Oct 4 2009 Tejas Dinkar <tejas@gja.in> - 1.4.0-1
- Initial gmock 1.4.0