D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/baz/rpmbuild/SRPMS/leptonica-1.87.0-0.1.mga.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.NdAPrZ Executing(%prep): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.6PfGhE + umask 022 + cd /home/baz/rpmbuild/BUILD/leptonica-1.87.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/baz/rpmbuild/BUILD/leptonica-1.87.0-build + rm -rf leptonica-1.87.0 + /usr/lib/rpm/rpmuncompress -x /home/baz/rpmbuild/SOURCES/leptonica-1.87.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd leptonica-1.87.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/baz/rpmbuild/SOURCES/e0936377f9094b72f7f2ea6bc34311ccc69b2f71.patch 1 out of 1 hunk FAILED -- saving rejects to file cmake/LeptonicaFunc.cmake.rej 1 out of 1 hunk FAILED -- saving rejects to file CMakeLists.txt.rej error: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.6PfGhE (%prep) RPM build errors: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.6PfGhE (%prep) I: [iurt_root_command] ERROR: chroot