Description of problem: gmock-devel package is missing Requires: gtest-devel leading to the following errors when compiling code which uses gmock.h: [...] gtest/internal/gtest-linked_ptr.h: No such file or directory [...] The gtest headers gtest-linked_ptr.h and gtest-port.h are referenced in /usr/include/gmock/internal/gmock-port.h:45 [...] // Most of the types needed for porting Google Mock are also required // for Google Test and are defined in gtest-port.h. #include "gtest/internal/gtest-linked_ptr.h" #include "gtest/internal/gtest-port.h" [...] Version-Release number of selected component (if applicable): gmock-1.7.0-2.fc23.noarch
I don't think gtest is a strict requirement for gmock: https://github.com/google/googletest/blob/master/googlemock/README.md Google Mock works seamlessly with Google Test, butj you can also use it with any C++ testing framework. I might be wrong, well, well, adding a dep is not that problematic any way. However, in what software are you seeing this issue?
While I still think this bug report is valid in principle (you could at least add Recommends: gtest-devel), the current upstream was merged with gtest (see https://github.com/google/googlemock), so it's kind of moot. The bigger issue is that gtest in Fedora is built as a shared library and gmock is not, and - contrary to the Packaging Guidelines (https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries) doesn't have Provides: gmock-static . Also, what is the gmock main package for? It contains nothing but documentation, which should be moved to gmock-devel as well. I encountered the issue when trying to unbundle gmock from gromacs. Could you advise how I can do that with current gmock/gtest Fedora packaging? Upstream recommends just putting gmock and gtest sources in the consuming project source tree and I can't do that with current gmock/gtest packaging.
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
*** This bug has been marked as a duplicate of bug 1314927 ***