https://bugzilla.redhat.com/show_bug.cgi?id=2266320
--- Comment #5 from Fabio Valentini decathorpe@gmail.com --- Alternatively, you could use the "%fdupes" macro from the fdupes package: https://src.fedoraproject.org/rpms/fdupes/blob/rawhide/f/macros.fdupes
IIUC by default, it creates hardlinks for duplicate files.