From Fedora Project Wiki

Packages which contain binfmt.d configuration settings must place them in /lib/binfmt.d/. Files in /etc/binfmt.d/ are reserved for the local administrator, and will override any files with the same name in /lib/binfmt.d/. These packages must also include scriptlets to try to restart the systemd-binfmt.service on install or removal:

Requires(post):  systemd
Requires(postun): systemd


/bin/systemctl try-restart systemd-binfmt.service

if [ $1 -eq 0 ]; then
/bin/systemctl try-restart systemd-binfmt.service