gmock/gmock.spec

102 lines
3.7 KiB
RPMSpec

Name: gmock
Version: 1.6.0
Release: 1mamba
Summary: Google C++ Mocking Framework
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://code.google.com/p/googlemock/
Source: http://googlemock.googlecode.com/files/gmock-%{version}.zip
License: BSD
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
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 devel
Group: Development/Libraries
Summary: Google C++ Mocking Framework
Provides: gtest-devel
Obsoletes: gtest-devel
%description 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.
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m0755 build/libgmock.a %{buildroot}%{_libdir}/libgmock.a
install -D -m0755 build/libgmock_main.a %{buildroot}%{_libdir}/libgmock_main.a
install -D -m0755 build/gtest/libgtest.a %{buildroot}%{_libdir}/libgtest.a
install -D -m0755 build/gtest/libgtest_main.a %{buildroot}%{_libdir}/libgtest_main.a
install -d -m0755 %{buildroot}/%{_includedir}
cp -a include/gmock %{buildroot}/%{_includedir}/
cp -a gtest/include/gtest %{buildroot}/%{_includedir}/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files 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}/gtest
%{_includedir}/gtest/*.h
%{_includedir}/gtest/*.pump
%dir %{_includedir}/gtest/internal
%{_includedir}/gtest/internal/*.h
%{_includedir}/gtest/internal/*.pump
%{_libdir}/libgmock.a
%{_libdir}/libgmock_main.a
%{_libdir}/libgtest.a
%{_libdir}/libgtest_main.a
%doc COPYING CHANGES CONTRIBUTORS README
%changelog
* Sun Feb 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-1mamba
- update to 1.6.0
* Wed Sep 22 2010 gil <puntogil@libero.it> 1.5.0-1mamba
- package created by autospec