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 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.6q0eS3 + 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 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.EUFlK3 + 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.EUFlK3: line 43: cd: hamcrest-erlang-0.1.0: No such file or directory error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.EUFlK3 (%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.EUFlK3 (%prep) I: [iurt_root_command] ERROR: chroot