D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/python-polkit-efl-agent-0.1.0-0.20150104git.15.mga9.src.rpm Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.x0zZbg + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf python-polkit-efl-agent-20150104git + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/python-polkit-efl-agent-20150104git.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd python-polkit-efl-agent-20150104git + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/rm -rf polkit_efl.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.KCBA7n + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd python-polkit-efl-agent-20150104git + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' error: Multiple top-level packages discovered in a flat-layout: ['data', 'locale']. To avoid accidental inclusion of unwanted files or directories, setuptools will not proceed with this build. If you are trying to create a single distribution with multiple packages on purpose, you should not rely on automatic discovery. Instead, consider the following options: 1. set up custom discovery (`find` directive with `include` or `exclude`) 2. use a `src-layout` 3. explicitly set `py_modules` or `packages` with a list of names To find more information, look for "package discovery" on setuptools docs. error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.KCBA7n (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.KCBA7n (%build) I: [iurt_root_command] ERROR: chroot