D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch warning: Macro expanded in comment on line 15: %{upstream}/%{realname}-erlang/archive/%{version}/%{realname}-%{version}.tar.gz sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/erlang-hamcrest-0.1.0-7.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.7IgtMi + umask 022 + cd /home/pterjan/rpmbuild/BUILD/erlang-hamcrest-0.1.0-build + test -d /home/pterjan/rpmbuild/BUILD/erlang-hamcrest-0.1.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/erlang-hamcrest-0.1.0-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/erlang-hamcrest-0.1.0-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/erlang-hamcrest-0.1.0-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/erlang-hamcrest-0.1.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.V2RNTm + umask 022 + cd /home/pterjan/rpmbuild/BUILD/erlang-hamcrest-0.1.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + rm -rf hamcrest-erlang-0.1.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/hamcrest-0.1.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd hamcrest-erlang-0.1.0 /home/pterjan/rpmbuild/tmp/rpm-tmp.V2RNTm: line 43: cd: hamcrest-erlang-0.1.0: No such file or directory error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.V2RNTm (%prep) RPM build warnings: Macro expanded in comment on line 15: %{upstream}/%{realname}-erlang/archive/%{version}/%{realname}-%{version}.tar.gz RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.V2RNTm (%prep) I: [iurt_root_command] ERROR: chroot