I'm doing some hackery with rpmbuild, and am really just leveraging rpm spec files, rpmbuild, and rpm packages to give users self-service of packages that are patched to work in an extremely locked down, specialized environment.
Everything works great until I need to build with cmake and set the prefix (along with a few other things to make the package work in said environment). Rpmbuild must be finding rpath'd binaries or something that include the $BUILDROOT in the path. I'm totally fine with this, and want to turn that check off. The error below is the type of error I'm getting, and I can't find any way to turn this check off from googling. Any ideas?
/usr/lib/rpm/check-buildroot /var/tmp/libgssapi-0.11-root/usr/lib64/pkgconfig/libgssapi.pc:prefix=/var/tmp/libgssapi-0.11-root Found '/var/tmp/libgssapi-0.11-root' in installed files; aborting error: Bad exit status from /var/tmp/rpm-tmp.75914 (%install)
Thanks!