libgmock-devel: require libgmock, not gmock [release 1.10.0-2mamba;Thu Nov 07 2019]
This commit is contained in:
parent
8096130c12
commit
88d4c82527
57
gmock.spec
57
gmock.spec
@ -1,6 +1,6 @@
|
||||
Name: gmock
|
||||
Version: 1.8.1
|
||||
Release: 1mamba
|
||||
Version: 1.10.0
|
||||
Release: 2mamba
|
||||
Summary: Google C++ Mocking Framework
|
||||
Group: Development/Tools
|
||||
Vendor: openmamba
|
||||
@ -11,10 +11,10 @@ Source: https://github.com/google/googletest.git/release-%{version}/googl
|
||||
#Source: http://googlemock.googlecode.com/files/gmock-%{version}.zip
|
||||
License: BSD
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libstdc++6-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
@ -32,13 +32,15 @@ Google Mock:
|
||||
- does not use exceptions, and
|
||||
- is easy to learn and use.
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries
|
||||
%package -n lib%{name}
|
||||
Group: System/Libraries
|
||||
Summary: Google C++ Mocking Framework
|
||||
Provides: gtest-devel
|
||||
Obsoletes: gtest-devel
|
||||
Provides: gmock
|
||||
Obsoletes: gmock
|
||||
|
||||
%description devel
|
||||
%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:
|
||||
@ -53,6 +55,32 @@ Google Mock:
|
||||
- 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
|
||||
Provides: gmock-devel
|
||||
Obsoletes: gmock-devel
|
||||
|
||||
%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}
|
||||
|
||||
@ -75,7 +103,10 @@ Google Mock:
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%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
|
||||
@ -83,19 +114,19 @@ Google Mock:
|
||||
%{_libdir}/libgtest_main.so
|
||||
%doc LICENSE
|
||||
|
||||
%files devel
|
||||
%files -n lib%{name}-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
|
||||
#%{_includedir}/gmock/internal/*.pump
|
||||
%dir %{_includedir}/gmock/internal/custom
|
||||
%{_includedir}/gmock/internal/custom/*
|
||||
%dir %{_includedir}/gtest
|
||||
%{_includedir}/gtest/*.h
|
||||
%{_includedir}/gtest/*.pump
|
||||
#%{_includedir}/gtest/*.pump
|
||||
%dir %{_includedir}/gtest/internal
|
||||
%{_includedir}/gtest/internal/*.h
|
||||
%{_includedir}/gtest/internal/*.pump
|
||||
@ -108,6 +139,12 @@ Google Mock:
|
||||
%{_libdir}/pkgconfig/gtest_main.pc
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user