In this screenshot, taken from Synaptic in Mint 21, you can see that I have two components installed:
The one shown at the top, which starts with gir, is a wrapper for the other one, where wrapper means that it wraps the code in the other one, so that it can be called from Gramps. And normally, when you install that wrapper, which you can recognize by the word introspection, the package manager knows that it depends on the library itself, so it will install both.
Package names can be quite different in Fedora, and if you don’t see the word introspection there, or the gir prefix, you may look for libraries marked as developer libraries instead.
This subject may already have been discussed in another thread, where I have the name for a Fedora lib that I found for this dependency, or another.