Conflict of files from different packages

Hello everyone. Can someone tell me about the features of Fedora?
I built my system from the LFS book. Then I decided to add the RPM package manager to it.
I have collected a few system packages like in Fedora. Including the filesystem package.
When I started installing the debug package, I got the error
file /usr/lib/debug from install of tree-debuginfo-2.1.0-1.x86_64 conflicts with file from package filesystem-3.18-1.x86_64.
But there is no such error in Fedora and several packages can own the same directory.

rpm -qf /usr/lib/debug
filesystem-3.18-23.fc41.x86_64
xz-debuginfo-5.6.2-2.fc 41.x86_64

Does anyone know how this was achieved in Fedora? I’ve wiped the RPM patches, but I haven’t found anything there that could help me.
I tried adding the %dir macro to my spec files, but it didn’t help.
Thank you.

I believe that sharing of directories is a feature of RPM and not specific to Fedora.
Suggest you look at the spec file for packages that do what you want for the directives that are used.

Thank you, I will look in this direction.