%_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/iurt/rpmbuild/tmp/rpm-tmp.JYEXng (%install) RPM build errors: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.JYEXng (%install) I: [iurt_root_command] ERROR: chroot