In some of the docker talks/minimum OS/Images world. We are looking to have limited packages installed and we noticed that selinux-policy was requiring rpm to be installed. The reason for this is it packages /usr/lib/rpm/macros.d/macros.selinux-policy And since /var/lib/rpm/macros.d is owned by rpm package, it gets sucked in. I am looking for a way for this to not be required. I could remove the file from the payload and just create the file in the post install. Or do you have any other ideas?
That seems like a text-book example of https://fedoraproject.org/wiki/Packaging:Guidelines#The_directory_is_owned_by_a_package_which_is_not_required_for_your_package_to_function Just have selinux-policy co-own the directory, no harm done as long as the permissions and ownership match (root, root, 0755).
Miroslav I just added these two directories to the spec file, could you build a rawhide version and we can check if the requires of rpm has disappeared.
A new rawhide build is coming today.