I'm trying to make a rpm on RedHat 8.0 with race ( http://race.sourceforge.net/ ). I've downloaded the compiled version. Everything goes fine, but the final rpm has a binary executable of 92 bytes instead of the original 800k. The original race executable is statically-linked ( ldd says it's not dynamic ) and it seems that on brp-strip-comment-note step it gets 'stripped'. If I put another binary, dynamically linked, it works fine. I asked on redhat mailing list how could I convince rpm to leave the executable as it is, got no answer in a month, so I'm filling this. thanks
You need to disable the stripping policies when building your package: %define __spec_install_post : will disable all post %install policies.