Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python3.spec'], chrootPath='/var/lib/mock/dist-an23-build-170888-58935/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python3.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: line 257: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 warning: extra tokens at the end of %endif directive in line 328: %endif # with main_python warning: extra tokens at the end of %endif directive in line 480: %endif # with debug_build warning: extra tokens at the end of %else directive in line 482: %else # with flatpackage warning: extra tokens at the end of %endif directive in line 518: %endif # with flatpackage warning: extra tokens at the end of %endif directive in line 663: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 699: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 723: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 741: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 938: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 941: %endif # with tests warning: extra tokens at the end of %endif directive in line 1412: %endif # with debug_build Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1669766400 Wrote: /builddir/build/SRPMS/python3.10-3.10.8-1.an23.src.rpm RPM build warnings: line 257: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 extra tokens at the end of %endif directive in line 328: %endif # with main_python extra tokens at the end of %endif directive in line 480: %endif # with debug_build extra tokens at the end of %else directive in line 482: %else # with flatpackage extra tokens at the end of %endif directive in line 518: %endif # with flatpackage extra tokens at the end of %endif directive in line 663: %endif # with debug_build extra tokens at the end of %endif directive in line 699: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 723: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 741: %endif # with debug_build extra tokens at the end of %endif directive in line 938: %endif # with debug_build extra tokens at the end of %endif directive in line 941: %endif # with tests extra tokens at the end of %endif directive in line 1412: %endif # with debug_build Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python3.spec'], chrootPath='/var/lib/mock/dist-an23-build-170888-58935/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python3.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: line 257: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 warning: extra tokens at the end of %endif directive in line 328: %endif # with main_python warning: extra tokens at the end of %endif directive in line 480: %endif # with debug_build warning: extra tokens at the end of %else directive in line 482: %else # with flatpackage warning: extra tokens at the end of %endif directive in line 518: %endif # with flatpackage warning: extra tokens at the end of %endif directive in line 663: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 699: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 723: %endif # with gdb_hooks warning: extra tokens at the end of %endif directive in line 741: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 938: %endif # with debug_build warning: extra tokens at the end of %endif directive in line 941: %endif # with tests warning: extra tokens at the end of %endif directive in line 1412: %endif # with debug_build Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1669766400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Z9Kdmv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Python-3.10.8 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Python-3.10.8.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd Python-3.10.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'python3.10-3.10.8 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + rm Lib/ensurepip/_bundled/pip-22.2.1-py3-none-any.whl rm: cannot remove 'Lib/ensurepip/_bundled/pip-22.2.1-py3-none-any.whl': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.Z9Kdmv (%prep) RPM build warnings: RPM build errors: line 257: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.10 extra tokens at the end of %endif directive in line 328: %endif # with main_python extra tokens at the end of %endif directive in line 480: %endif # with debug_build extra tokens at the end of %else directive in line 482: %else # with flatpackage extra tokens at the end of %endif directive in line 518: %endif # with flatpackage extra tokens at the end of %endif directive in line 663: %endif # with debug_build extra tokens at the end of %endif directive in line 699: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 723: %endif # with gdb_hooks extra tokens at the end of %endif directive in line 741: %endif # with debug_build extra tokens at the end of %endif directive in line 938: %endif # with debug_build extra tokens at the end of %endif directive in line 941: %endif # with tests extra tokens at the end of %endif directive in line 1412: %endif # with debug_build Bad exit status from /var/tmp/rpm-tmp.Z9Kdmv (%prep) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python3.spec