gmock/gmock.spec

169 lines
6.3 KiB
RPMSpec

Name: gmock
Version: 1.12.1
Release: 1mamba
Summary: Google C++ Mocking Framework
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/google/googlemock
Source: https://github.com/google/googletest.git/release-%{version}/googletest-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
%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
Obsoletes: gtest < 1.11.0
Provides: gmock
Obsoletes: gmock < 1.11.0
%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 < 1.11.0
Provides: gmock-devel
Obsoletes: gmock-devel < 1.11.0
%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
%dir %{_includedir}/gmock/internal
%{_includedir}/gmock/internal/*.h
%dir %{_includedir}/gmock/internal/custom
%{_includedir}/gmock/internal/custom/*
%dir %{_includedir}/gtest
%{_includedir}/gtest/*.h
%dir %{_includedir}/gtest/internal
%{_includedir}/gtest/internal/*.h
%dir %{_includedir}/gtest/internal/custom
%{_includedir}/gtest/internal/custom/*
%{_libdir}/libgmock.so
%{_libdir}/libgmock_main.so
%{_libdir}/libgtest.so
%{_libdir}/libgtest_main.so
%{_libdir}/cmake/GTest/GTest*.cmake
%{_libdir}/pkgconfig/gmock.pc
%{_libdir}/pkgconfig/gmock_main.pc
%{_libdir}/pkgconfig/gtest.pc
%{_libdir}/pkgconfig/gtest_main.pc
%changelog
* Fri Jul 01 2022 Automatic Build System <autodist@mambasoft.it> 1.12.1-1mamba
- automatic version update by autodist
* Fri Jun 24 2022 Automatic Build System <autodist@mambasoft.it> 1.12.0-1mamba
- automatic version update by autodist
* Tue Jun 15 2021 Automatic Build System <autodist@mambasoft.it> 1.11.0-1mamba
- automatic version update by autodist
* Sat Nov 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-3mamba
- libgmock: don't provide/obsolete gtest-devel
* Thu Nov 07 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-2mamba
- libgmock-devel: require libgmock, not gmock
* Wed Nov 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-1mamba
- update to 1.10.0
* Thu Aug 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
- update to 1.8.1
* Tue Aug 09 2016 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
- automatic version update by autodist
* 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