2024-01-05 23:09:36 +01:00
|
|
|
Name: gmock
|
2024-08-09 00:11:48 +02:00
|
|
|
Version: 1.15.2
|
2024-01-05 23:09:36 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 23:09:36 +01:00
|
|
|
Summary: Google C++ Mocking Framework
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 23:09:36 +01:00
|
|
|
URL: https://github.com/google/googlemock
|
2024-01-05 23:09:37 +01:00
|
|
|
Source: https://github.com/google/googletest.git/v%{version}/googletest-%{version}.tar.bz2
|
2024-01-05 23:09:36 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-05 23:09:36 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 23:09:36 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Google C++ Mocking Framework
|
2024-01-05 23:09:36 +01:00
|
|
|
Provides: gtest
|
2024-01-05 23:09:36 +01:00
|
|
|
Obsoletes: gtest < 1.11.0
|
2024-01-05 23:09:36 +01:00
|
|
|
Provides: gmock
|
2024-01-05 23:09:36 +01:00
|
|
|
Obsoletes: gmock < 1.11.0
|
2024-01-05 23:09:36 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-05 23:09:36 +01:00
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Google C++ Mocking Framework
|
2024-01-05 23:09:36 +01:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 23:09:36 +01:00
|
|
|
Provides: gtest-devel
|
2024-01-05 23:09:36 +01:00
|
|
|
Obsoletes: gtest-devel < 1.11.0
|
2024-01-05 23:09:36 +01:00
|
|
|
Provides: gmock-devel
|
2024-01-05 23:09:36 +01:00
|
|
|
Obsoletes: gmock-devel < 1.11.0
|
2024-01-05 23:09:36 +01:00
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
%description -n lib%{name}-devel
|
2024-01-05 23:09:36 +01:00
|
|
|
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.
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
%prep
|
2024-01-05 23:09:36 +01:00
|
|
|
%setup -q -n googletest-%{version}
|
2024-01-05 23:09:36 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -d build
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 23:09:36 +01:00
|
|
|
%makeinstall -C build
|
2024-01-05 23:09:36 +01:00
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
#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}/
|
2024-01-05 23:09:36 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
2024-01-05 23:09:36 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 23:09:36 +01:00
|
|
|
%{_libdir}/libgmock.so.*
|
|
|
|
%{_libdir}/libgmock_main.so.*
|
|
|
|
%{_libdir}/libgtest.so.*
|
|
|
|
%{_libdir}/libgtest_main.so.*
|
2024-01-05 23:09:36 +01:00
|
|
|
%doc LICENSE
|
2024-01-05 23:09:36 +01:00
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
%files -n lib%{name}-devel
|
2024-01-05 23:09:36 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/gmock
|
|
|
|
%{_includedir}/gmock/*.h
|
|
|
|
%dir %{_includedir}/gmock/internal
|
|
|
|
%{_includedir}/gmock/internal/*.h
|
2024-01-05 23:09:36 +01:00
|
|
|
%dir %{_includedir}/gmock/internal/custom
|
|
|
|
%{_includedir}/gmock/internal/custom/*
|
2024-01-05 23:09:36 +01:00
|
|
|
%dir %{_includedir}/gtest
|
|
|
|
%{_includedir}/gtest/*.h
|
|
|
|
%dir %{_includedir}/gtest/internal
|
|
|
|
%{_includedir}/gtest/internal/*.h
|
2024-01-05 23:09:36 +01:00
|
|
|
%dir %{_includedir}/gtest/internal/custom
|
|
|
|
%{_includedir}/gtest/internal/custom/*
|
2024-01-05 23:09:36 +01:00
|
|
|
%{_libdir}/libgmock.so
|
|
|
|
%{_libdir}/libgmock_main.so
|
|
|
|
%{_libdir}/libgtest.so
|
|
|
|
%{_libdir}/libgtest_main.so
|
2024-01-05 23:09:36 +01:00
|
|
|
%{_libdir}/cmake/GTest/GTest*.cmake
|
|
|
|
%{_libdir}/pkgconfig/gmock.pc
|
|
|
|
%{_libdir}/pkgconfig/gmock_main.pc
|
|
|
|
%{_libdir}/pkgconfig/gtest.pc
|
|
|
|
%{_libdir}/pkgconfig/gtest_main.pc
|
2024-01-05 23:09:36 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-08-09 00:11:48 +02:00
|
|
|
* Thu Aug 01 2024 Automatic Build System <autodist@openmamba.org> 1.15.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-28 14:10:14 +02:00
|
|
|
* Tue Jul 16 2024 Automatic Build System <autodist@openmamba.org> 1.15.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:09:37 +01:00
|
|
|
* Thu Aug 03 2023 Automatic Build System <autodist@mambasoft.it> 1.14.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:09:37 +01:00
|
|
|
* Sun Mar 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13.0-1mamba
|
|
|
|
- update to 1.13.0
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
* Fri Jul 01 2022 Automatic Build System <autodist@mambasoft.it> 1.12.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
* Fri Jun 24 2022 Automatic Build System <autodist@mambasoft.it> 1.12.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
* Tue Jun 15 2021 Automatic Build System <autodist@mambasoft.it> 1.11.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
* Sat Nov 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-3mamba
|
|
|
|
- libgmock: don't provide/obsolete gtest-devel
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
* 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
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
* Thu Aug 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
|
|
|
|
- update to 1.8.1
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
* Tue Aug 09 2016 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:09:36 +01:00
|
|
|
* 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
|