%_python_bytecompile_extra is discontinued, use %py_byte_compile instead. See: https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DpdFz9 (%install) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DpdFz9 (%install) I: [iurt_root_command] ERROR: chroot