Created attachment 523011 [details]
Patch to fix unused direct dependency on libm
Description of problem:
$ rpmlint gmp
gmp.x86_64: W: spelling-error %description -l en_US fullwords -> full words, full-words, forewords
gmp.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libgmpxx.so.4.1.2 /lib64/libm.so.6
I suspect that this unused direct shared library dependency is why some of my packages get the same warning, because they link against libgmpxx. The cause is good old libtool, which thinks that EVERYTHING needs to be linked with -lm. I am attaching one way of solving the problem. Pardon my conversion of the perl invocation to sed; I understand sed quite well, and perl hardly at all.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpmlint gmp
Rpmlint reports an unused direct shared library dependency on libm.
No unused direct shared library dependencies.