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
|
Name: gmock
|
||||||
Version: 1.8.1
|
Version: 1.10.0
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Google C++ Mocking Framework
|
Summary: Google C++ Mocking Framework
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Vendor: openmamba
|
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
|
#Source: http://googlemock.googlecode.com/files/gmock-%{version}.zip
|
||||||
License: BSD
|
License: BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
## AUTOBUILDREQ-END
|
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libgcc
|
BuildRequires: libgcc
|
||||||
BuildRequires: libstdc++6-devel
|
BuildRequires: libstdc++6-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -32,13 +32,15 @@ Google Mock:
|
|||||||
- does not use exceptions, and
|
- does not use exceptions, and
|
||||||
- is easy to learn and use.
|
- is easy to learn and use.
|
||||||
|
|
||||||
%package devel
|
%package -n lib%{name}
|
||||||
Group: Development/Libraries
|
Group: System/Libraries
|
||||||
Summary: Google C++ Mocking Framework
|
Summary: Google C++ Mocking Framework
|
||||||
Provides: gtest-devel
|
Provides: gtest-devel
|
||||||
Obsoletes: 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.
|
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:
|
Google Mock:
|
||||||
@ -53,6 +55,32 @@ Google Mock:
|
|||||||
- does not use exceptions, and
|
- does not use exceptions, and
|
||||||
- is easy to learn and use.
|
- 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
|
%prep
|
||||||
%setup -q -n googletest-%{version}
|
%setup -q -n googletest-%{version}
|
||||||
|
|
||||||
@ -75,7 +103,10 @@ Google Mock:
|
|||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{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)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libgmock.so
|
%{_libdir}/libgmock.so
|
||||||
%{_libdir}/libgmock_main.so
|
%{_libdir}/libgmock_main.so
|
||||||
@ -83,19 +114,19 @@ Google Mock:
|
|||||||
%{_libdir}/libgtest_main.so
|
%{_libdir}/libgtest_main.so
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
|
|
||||||
%files devel
|
%files -n lib%{name}-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_includedir}/gmock
|
%dir %{_includedir}/gmock
|
||||||
%{_includedir}/gmock/*.h
|
%{_includedir}/gmock/*.h
|
||||||
%{_includedir}/gmock/*.pump
|
%{_includedir}/gmock/*.pump
|
||||||
%dir %{_includedir}/gmock/internal
|
%dir %{_includedir}/gmock/internal
|
||||||
%{_includedir}/gmock/internal/*.h
|
%{_includedir}/gmock/internal/*.h
|
||||||
%{_includedir}/gmock/internal/*.pump
|
#%{_includedir}/gmock/internal/*.pump
|
||||||
%dir %{_includedir}/gmock/internal/custom
|
%dir %{_includedir}/gmock/internal/custom
|
||||||
%{_includedir}/gmock/internal/custom/*
|
%{_includedir}/gmock/internal/custom/*
|
||||||
%dir %{_includedir}/gtest
|
%dir %{_includedir}/gtest
|
||||||
%{_includedir}/gtest/*.h
|
%{_includedir}/gtest/*.h
|
||||||
%{_includedir}/gtest/*.pump
|
#%{_includedir}/gtest/*.pump
|
||||||
%dir %{_includedir}/gtest/internal
|
%dir %{_includedir}/gtest/internal
|
||||||
%{_includedir}/gtest/internal/*.h
|
%{_includedir}/gtest/internal/*.h
|
||||||
%{_includedir}/gtest/internal/*.pump
|
%{_includedir}/gtest/internal/*.pump
|
||||||
@ -108,6 +139,12 @@ Google Mock:
|
|||||||
%{_libdir}/pkgconfig/gtest_main.pc
|
%{_libdir}/pkgconfig/gtest_main.pc
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Aug 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
|
||||||
- update to 1.8.1
|
- update to 1.8.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user