During the Ruby 2.2 rebuild, there was Hub package failing  with
strange error messages:
Found '/builddir/build/BUILDROOT/hub-1.12.1-3.fc22.noarch' in installed files;
error: Bad exit status from /var/tmp/rpm-tmp.hP0mLS (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.hP0mLS (%install)
As its turn out, this is due to RDoc, more specifically RDoc now
compresses some of the JS files and it embeds full path to their
location. Up until now, I know about hub and rubygem-rails which are
directly affected by this issue. Nevertheless, also the other packages
which were rebuild contains similar string, however we typically move
the files from BUILD to BUILDDIR, so it was not caught earlier by RPM
This is hopefully non issue, but to completely avoid it, I reported this
issue upstream with possible patch .
So this is just heads up in case you face similar issue.