If we need to install a new piece of software that someone has brought into the company, the first thing we do is repackage it into an RPM. Commercial software is almost never provided as an RPM to begin with, particularly if it has a really large footprint. The bigger the footprint, the stupider the packaging.
However, one thing about the rpmbuild command that is not very helpful in repackaging commercial code is that it attempts to strip ELF binaries before it adds them to the package. We do not want to modify commercial software, we just want to repackage it. You never know what kind of idiocy is being perpetrated in commercial software. They may depend on those symbols somehow! Or maybe there is a file in the package that is not actually an elf library, and causes brp-strip to choke.
To prevent this behavior, this little trick will do it:
Just in case that link doesn't last, you just write these definitions at the top of your spec file:
%define __spec_install_post /usr/lib/rpm/brp-compress || :
%define debug_package %{nil}
Apparently Dag Wieers deserves credit for that hack. Coincidentally, Dag is also the developer of mrepo, which is the greatest little program you've never heard of. It creates and updates APT and YUM repos.







