D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
sh: line 4: [: -j8: integer expected
Installing /home/pterjan/rpmbuild/SRPMS/solarus-1.6.5-3.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2XmgLx
sh: line 4: [: -j8: integer expected
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Wcx5gc
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/solarus-1.6.5-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/solarus-1.6.5-build
+ rm -rf solarus-v1.6.5
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/solarus-v1.6.5.tar.bz2
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Wcx5gc (%prep)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Wcx5gc (%prep)
I: [iurt_root_command] ERROR: chroot