title: rpm spec file not able to find installed libraries during jenkins build: Installed (but unpackaged) file(s) found
body: <p>I am not able to figure out why the files specified under %files in rpm spec file is not able to find the installed files, let me explain:</p>
  <p>The installed files that I intend to package exists in location:</p>
  <pre><code>-- Installing: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-4522-g564a2672/rpm/el8/BUILDROOT/ceph-17.0.0-4522.g564a2672.el8.x86_64/usr/lib64/libjaegertracing.so.0
  -- Installing: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-4522-g564a2672/rpm/el8/BUILDROOT/ceph-17.0.0-4522.g564a2672.el8.x86_64/usr/lib64/libjaegertracing.so.0.6.1
  </code></pre>
  <p>I want to package them in libjaeger package for that I have specified in spec file:</p>
  <pre><code>%if %{with jaeger}
  %files -n libjaeger
  %{_libdir}/libopentracing.so.*
  %{_libdir}/libthrift.so.*
  %{_libdir}/libjaegertracing.so.*
  %post -n libjaeger -p /sbin/ldconfig
  %postun -n libjaeger -p /sbin/ldconfig
  %endif
  </code></pre>
  <p>_libdir being <code>/usr/lib64</code> from what I understand, since the installed path %{buildroot}%{_libdir}/filename it should be able to find the files as for other packages in the project the path seems to work, but I hit:</p>
  <pre><code>    Installed (but unpackaged) file(s) found:
     /usr/lib64/libjaegertracing.so.0
     /usr/lib64/libjaegertracing.so.0.6.1
  </code></pre>
  <p>Successfully packaged file:</p>
  <pre><code>-- Installing: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-4522-g564a2672/rpm/el8/BUILDROOT/ceph-17.0.0-4522.g564a2672.el8.x86_64/usr/lib64/libosd_tp.so.1
  </code></pre>
  <pre><code>%{_libdir}/libosd_tp.so*
  </code></pre>
  <p>I have tried existing solutions, on google search :(
  I am not sure how to proceed debugging, since it's jenkins build, the time for iterating and understanding is not something I want to get into, cmake/packaging experts can you give some debugging tips.</p>
  <p>Thanks!</p>