D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/python-qt5-purchasing-5.15.2-3.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Q7r1jK + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf PyQtPurchasing-5.15.2 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/PyQtPurchasing-5.15.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd PyQtPurchasing-5.15.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.6BXsPn + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd PyQtPurchasing-5.15.2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/python3 ./configure.py --pyqt-sipdir=/usr/share/python3-sip/PyQt5 --qmake=/usr/lib64/qt5/bin/qmake --debug --verbose /home/pterjan/rpmbuild/BUILD/PyQtPurchasing-5.15.2/./configure.py:29: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils import sysconfig /home/pterjan/rpmbuild/BUILD/PyQtPurchasing-5.15.2/./configure.py:29: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead from distutils import sysconfig Usage: python configure.py [options] configure.py: error: '/usr/share/python3-sip/PyQt5' is not a directory error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.6BXsPn (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.6BXsPn (%build) I: [iurt_root_command] ERROR: chroot