Mock Version: 4.1
Mock Version: 4.1
Mock Version: 4.1
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-3-build-195316-13228/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fd0debc8410>timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: noarch
Building for target noarch
Wrote: /builddir/build/SRPMS/rust2rpm-24.3.3-4.ocs23.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-3-build-195316-13228/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fd0debc8410>timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: noarch
Building for target noarch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QanCpN
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf rust2rpm-24.3.3
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rust2rpm-24.3.3.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rust2rpm-24.3.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.ZXNboS
+ umask 022
+ cd /builddir/build/BUILD
+ cd rust2rpm-24.3.3
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(packaging)'
+ '[' -f pyproject.toml ']'
+ echo 'python3dist(toml)'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ RPM_TOXENV=py311
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -t
Import error: No module named 'toml'
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/rust2rpm-24.3.3-4.ocs23.buildreqs.nosrc.rpm
Child return code was: 11
Dynamic buildrequires detected
Going to install missing buildrequires. See root.log for details.
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-3-build-195316-13228/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fd0debc8410>timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: noarch
Building for target noarch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.30QbP0
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf rust2rpm-24.3.3
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rust2rpm-24.3.3.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rust2rpm-24.3.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.GKmIbK
+ umask 022
+ cd /builddir/build/BUILD
+ cd rust2rpm-24.3.3
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(packaging)'
+ '[' -f pyproject.toml ']'
+ echo 'python3dist(toml)'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ RPM_TOXENV=py311
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -t
Handling setuptools from build-system.requires
Requirement not satisfied: setuptools
Exiting dependency generation pass: build backend
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/rust2rpm-24.3.3-4.ocs23.buildreqs.nosrc.rpm
Child return code was: 11
Dynamic buildrequires detected
Going to install missing buildrequires. See root.log for details.
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-3-build-195316-13228/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fd0debc8410>timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: noarch
Building for target noarch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2g7KgG
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf rust2rpm-24.3.3
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rust2rpm-24.3.3.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rust2rpm-24.3.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.GSeQbl
+ umask 022
+ cd /builddir/build/BUILD
+ cd rust2rpm-24.3.3
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(packaging)'
+ '[' -f pyproject.toml ']'
+ echo 'python3dist(toml)'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ RPM_TOXENV=py311
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -t
Handling setuptools from build-system.requires
Requirement satisfied: setuptools
   (installed: setuptools 68.0.0)
warning: no files found matching 'data/*'
HOOK STDOUT: running egg_info
HOOK STDOUT: creating rust2rpm.egg-info
HOOK STDOUT: writing rust2rpm.egg-info/PKG-INFO
HOOK STDOUT: writing dependency_links to rust2rpm.egg-info/dependency_links.txt
HOOK STDOUT: writing entry points to rust2rpm.egg-info/entry_points.txt
HOOK STDOUT: writing requirements to rust2rpm.egg-info/requires.txt
HOOK STDOUT: writing top-level names to rust2rpm.egg-info/top_level.txt
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest template 'MANIFEST.in'
HOOK STDOUT: adding license file 'LICENSE'
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement not satisfied: wheel
Exiting dependency generation pass: get_requires_for_build_wheel
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/rust2rpm-24.3.3-4.ocs23.buildreqs.nosrc.rpm
Child return code was: 11
Dynamic buildrequires detected
Going to install missing buildrequires. See root.log for details.
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-3-build-195316-13228/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fd0debc8410>timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: noarch
Building for target noarch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vIQ11g
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf rust2rpm-24.3.3
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rust2rpm-24.3.3.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rust2rpm-24.3.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.lw1u4B
+ umask 022
+ cd /builddir/build/BUILD
+ cd rust2rpm-24.3.3
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(packaging)'
+ '[' -f pyproject.toml ']'
+ echo 'python3dist(toml)'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ RPM_TOXENV=py311
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -t
Handling setuptools from build-system.requires
Requirement satisfied: setuptools
   (installed: setuptools 68.0.0)
warning: no files found matching 'data/*'
HOOK STDOUT: running egg_info
HOOK STDOUT: creating rust2rpm.egg-info
HOOK STDOUT: writing rust2rpm.egg-info/PKG-INFO
HOOK STDOUT: writing dependency_links to rust2rpm.egg-info/dependency_links.txt
HOOK STDOUT: writing entry points to rust2rpm.egg-info/entry_points.txt
HOOK STDOUT: writing requirements to rust2rpm.egg-info/requires.txt
HOOK STDOUT: writing top-level names to rust2rpm.egg-info/top_level.txt
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest template 'MANIFEST.in'
HOOK STDOUT: adding license file 'LICENSE'
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement satisfied: wheel
   (installed: wheel 0.41.2)
Handling tox-current-env >= 0.0.6 from tox itself
Requirement not satisfied: tox-current-env >= 0.0.6
Exiting dependency generation pass: tox itself
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/rust2rpm-24.3.3-4.ocs23.buildreqs.nosrc.rpm
Child return code was: 11
Dynamic buildrequires detected
Going to install missing buildrequires. See root.log for details.
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-3-build-195316-13228/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fd0debc8410>timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: noarch
Building for target noarch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0sKVIq
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf rust2rpm-24.3.3
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rust2rpm-24.3.3.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rust2rpm-24.3.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.NhGHAB
+ umask 022
+ cd /builddir/build/BUILD
+ cd rust2rpm-24.3.3
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(packaging)'
+ '[' -f pyproject.toml ']'
+ echo 'python3dist(toml)'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ RPM_TOXENV=py311
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -t
Handling setuptools from build-system.requires
Requirement satisfied: setuptools
   (installed: setuptools 68.0.0)
warning: no files found matching 'data/*'
HOOK STDOUT: running egg_info
HOOK STDOUT: creating rust2rpm.egg-info
HOOK STDOUT: writing rust2rpm.egg-info/PKG-INFO
HOOK STDOUT: writing dependency_links to rust2rpm.egg-info/dependency_links.txt
HOOK STDOUT: writing entry points to rust2rpm.egg-info/entry_points.txt
HOOK STDOUT: writing requirements to rust2rpm.egg-info/requires.txt
HOOK STDOUT: writing top-level names to rust2rpm.egg-info/top_level.txt
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest template 'MANIFEST.in'
HOOK STDOUT: adding license file 'LICENSE'
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement satisfied: wheel
   (installed: wheel 0.41.2)
Handling tox-current-env >= 0.0.6 from tox itself
Requirement satisfied: tox-current-env >= 0.0.6
   (installed: tox-current-env 0.0.11)
  py311: OK (0.00 seconds)
  congratulations :) (0.05 seconds)
Handling tox from tox --print-deps-only: py311
Requirement satisfied: tox
   (installed: tox 4.10.0)
Handling pytest from tox --print-deps-only: py311
Requirement not satisfied: pytest
Handling cargo2rpm>=0.1.2 from tox --print-deps-only: py311
Requirement not satisfied: cargo2rpm>=0.1.2
Handling jinja2 from tox --print-deps-only: py311
Requirement not satisfied: jinja2
Handling pyparsing from tox --print-deps-only: py311
Requirement not satisfied: pyparsing
Handling requests from tox --print-deps-only: py311
Requirement not satisfied: requests
Handling termcolor from tox --print-deps-only: py311
Requirement not satisfied: termcolor
Handling tqdm from tox --print-deps-only: py311
Requirement not satisfied: tqdm
warning: no files found matching 'data/*'
Handling cargo2rpm >=0.1.2 from wheel metadata: Requires-Dist
Requirement not satisfied: cargo2rpm >=0.1.2
Handling jinja2 from wheel metadata: Requires-Dist
Requirement not satisfied: jinja2
Handling pyparsing from wheel metadata: Requires-Dist
Requirement not satisfied: pyparsing
Handling requests from wheel metadata: Requires-Dist
Requirement not satisfied: requests
Handling termcolor from wheel metadata: Requires-Dist
Requirement not satisfied: termcolor
Handling tqdm from wheel metadata: Requires-Dist
Requirement not satisfied: tqdm
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/rust2rpm-24.3.3-4.ocs23.buildreqs.nosrc.rpm
Child return code was: 11
Dynamic buildrequires detected
Going to install missing buildrequires. See root.log for details.
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-3-build-195316-13228/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fd0debc8410>timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: noarch
Building for target noarch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TWBNTl
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf rust2rpm-24.3.3
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rust2rpm-24.3.3.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rust2rpm-24.3.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.phHW5S
+ umask 022
+ cd /builddir/build/BUILD
+ cd rust2rpm-24.3.3
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(packaging)'
+ '[' -f pyproject.toml ']'
+ echo 'python3dist(toml)'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ RPM_TOXENV=py311
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -t
Handling setuptools from build-system.requires
Requirement satisfied: setuptools
   (installed: setuptools 68.0.0)
warning: no files found matching 'data/*'
HOOK STDOUT: running egg_info
HOOK STDOUT: creating rust2rpm.egg-info
HOOK STDOUT: writing rust2rpm.egg-info/PKG-INFO
HOOK STDOUT: writing dependency_links to rust2rpm.egg-info/dependency_links.txt
HOOK STDOUT: writing entry points to rust2rpm.egg-info/entry_points.txt
HOOK STDOUT: writing requirements to rust2rpm.egg-info/requires.txt
HOOK STDOUT: writing top-level names to rust2rpm.egg-info/top_level.txt
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest template 'MANIFEST.in'
HOOK STDOUT: adding license file 'LICENSE'
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement satisfied: wheel
   (installed: wheel 0.41.2)
Handling tox-current-env >= 0.0.6 from tox itself
Requirement satisfied: tox-current-env >= 0.0.6
   (installed: tox-current-env 0.0.11)
  py311: OK (0.00 seconds)
  congratulations :) (0.05 seconds)
Handling tox from tox --print-deps-only: py311
Requirement satisfied: tox
   (installed: tox 4.10.0)
Handling pytest from tox --print-deps-only: py311
Requirement satisfied: pytest
   (installed: pytest 7.4.0)
Handling cargo2rpm>=0.1.2 from tox --print-deps-only: py311
Requirement satisfied: cargo2rpm>=0.1.2
   (installed: cargo2rpm 0.1.16)
Handling jinja2 from tox --print-deps-only: py311
Requirement satisfied: jinja2
   (installed: jinja2 3.1.4)
Handling pyparsing from tox --print-deps-only: py311
Requirement satisfied: pyparsing
   (installed: pyparsing 3.0.9)
Handling requests from tox --print-deps-only: py311
Requirement satisfied: requests
   (installed: requests 2.28.2)
Handling termcolor from tox --print-deps-only: py311
Requirement satisfied: termcolor
   (installed: termcolor 2.3.0)
Handling tqdm from tox --print-deps-only: py311
Requirement satisfied: tqdm
   (installed: tqdm 4.66.1)
warning: no files found matching 'data/*'
Handling cargo2rpm >=0.1.2 from wheel metadata: Requires-Dist
Requirement satisfied: cargo2rpm >=0.1.2
   (installed: cargo2rpm 0.1.16)
Handling jinja2 from wheel metadata: Requires-Dist
Requirement satisfied: jinja2
   (installed: jinja2 3.1.4)
Handling pyparsing from wheel metadata: Requires-Dist
Requirement satisfied: pyparsing
   (installed: pyparsing 3.0.9)
Handling requests from wheel metadata: Requires-Dist
Requirement satisfied: requests
   (installed: requests 2.28.2)
Handling termcolor from wheel metadata: Requires-Dist
Requirement satisfied: termcolor
   (installed: termcolor 2.3.0)
Handling tqdm from wheel metadata: Requires-Dist
Requirement satisfied: tqdm
   (installed: tqdm 4.66.1)
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/rust2rpm-24.3.3-4.ocs23.buildreqs.nosrc.rpm
Child return code was: 11
Dynamic buildrequires detected
Going to install missing buildrequires. See root.log for details.
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-3-build-195316-13228/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fd0debc8410>timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: noarch
Building for target noarch
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.4fH7hm
+ umask 022
+ cd /builddir/build/BUILD
+ cd rust2rpm-24.3.3
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(packaging)'
+ '[' -f pyproject.toml ']'
+ echo 'python3dist(toml)'
+ rm -rfv rust2rpm-24.3.3.dist-info/
removed 'rust2rpm-24.3.3.dist-info/METADATA'
removed 'rust2rpm-24.3.3.dist-info/top_level.txt'
removed 'rust2rpm-24.3.3.dist-info/LICENSE'
removed 'rust2rpm-24.3.3.dist-info/entry_points.txt'
removed directory 'rust2rpm-24.3.3.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ RPM_TOXENV=py311
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -t
Handling setuptools from build-system.requires
Requirement satisfied: setuptools
   (installed: setuptools 68.0.0)
warning: no files found matching 'data/*'
HOOK STDOUT: running egg_info
HOOK STDOUT: writing rust2rpm.egg-info/PKG-INFO
HOOK STDOUT: writing dependency_links to rust2rpm.egg-info/dependency_links.txt
HOOK STDOUT: writing entry points to rust2rpm.egg-info/entry_points.txt
HOOK STDOUT: writing requirements to rust2rpm.egg-info/requires.txt
HOOK STDOUT: writing top-level names to rust2rpm.egg-info/top_level.txt
HOOK STDOUT: reading manifest file 'rust2rpm.egg-info/SOURCES.txt'
HOOK STDOUT: reading manifest template 'MANIFEST.in'
HOOK STDOUT: adding license file 'LICENSE'
HOOK STDOUT: writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement satisfied: wheel
   (installed: wheel 0.41.2)
Handling tox-current-env >= 0.0.6 from tox itself
Requirement satisfied: tox-current-env >= 0.0.6
   (installed: tox-current-env 0.0.11)
  py311: OK (0.00 seconds)
  congratulations :) (0.05 seconds)
Handling tox from tox --print-deps-only: py311
Requirement satisfied: tox
   (installed: tox 4.10.0)
Handling pytest from tox --print-deps-only: py311
Requirement satisfied: pytest
   (installed: pytest 7.4.0)
Handling cargo2rpm>=0.1.2 from tox --print-deps-only: py311
Requirement satisfied: cargo2rpm>=0.1.2
   (installed: cargo2rpm 0.1.16)
Handling jinja2 from tox --print-deps-only: py311
Requirement satisfied: jinja2
   (installed: jinja2 3.1.4)
Handling pyparsing from tox --print-deps-only: py311
Requirement satisfied: pyparsing
   (installed: pyparsing 3.0.9)
Handling requests from tox --print-deps-only: py311
Requirement satisfied: requests
   (installed: requests 2.28.2)
Handling termcolor from tox --print-deps-only: py311
Requirement satisfied: termcolor
   (installed: termcolor 2.3.0)
Handling tqdm from tox --print-deps-only: py311
Requirement satisfied: tqdm
   (installed: tqdm 4.66.1)
warning: no files found matching 'data/*'
Handling cargo2rpm >=0.1.2 from wheel metadata: Requires-Dist
Requirement satisfied: cargo2rpm >=0.1.2
   (installed: cargo2rpm 0.1.16)
Handling jinja2 from wheel metadata: Requires-Dist
Requirement satisfied: jinja2
   (installed: jinja2 3.1.4)
Handling pyparsing from wheel metadata: Requires-Dist
Requirement satisfied: pyparsing
   (installed: pyparsing 3.0.9)
Handling requests from wheel metadata: Requires-Dist
Requirement satisfied: requests
   (installed: requests 2.28.2)
Handling termcolor from wheel metadata: Requires-Dist
Requirement satisfied: termcolor
   (installed: termcolor 2.3.0)
Handling tqdm from wheel metadata: Requires-Dist
Requirement satisfied: tqdm
   (installed: tqdm 4.66.1)
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JvKLu3
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld  -Wl,--build-id=sha1'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd rust2rpm-24.3.3
+ mkdir -p /builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld  -Wl,--build-id=sha1'
+ TMPDIR=/builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir
+ /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/rust2rpm-24.3.3/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose .
Processing /builddir/build/BUILD/rust2rpm-24.3.3
  Preparing metadata (pyproject.toml): started
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info
  writing /builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info/PKG-INFO
  writing dependency_links to /builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info/dependency_links.txt
  writing entry points to /builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info/entry_points.txt
  writing requirements to /builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info/requires.txt
  writing top-level names to /builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info/top_level.txt
  writing manifest file '/builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info/SOURCES.txt'
  reading manifest file '/builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'data/*'
  adding license file 'LICENSE'
  writing manifest file '/builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm.egg-info/SOURCES.txt'
  creating '/builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-modern-metadata-dex51cph/rust2rpm-24.3.3.dist-info'
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: rust2rpm
  Building wheel for rust2rpm (pyproject.toml): started
  Running command Building wheel for rust2rpm (pyproject.toml)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/rust2rpm
  copying rust2rpm/cli.py -> build/lib/rust2rpm
  copying rust2rpm/utils.py -> build/lib/rust2rpm
  copying rust2rpm/__main__.py -> build/lib/rust2rpm
  copying rust2rpm/crate.py -> build/lib/rust2rpm
  copying rust2rpm/__init__.py -> build/lib/rust2rpm
  copying rust2rpm/distgit.py -> build/lib/rust2rpm
  copying rust2rpm/generator.py -> build/lib/rust2rpm
  copying rust2rpm/metadata.py -> build/lib/rust2rpm
  copying rust2rpm/patching.py -> build/lib/rust2rpm
  copying rust2rpm/log.py -> build/lib/rust2rpm
  copying rust2rpm/sysinfo.py -> build/lib/rust2rpm
  copying rust2rpm/cratesio.py -> build/lib/rust2rpm
  copying rust2rpm/cfg.py -> build/lib/rust2rpm
  copying rust2rpm/conf.py -> build/lib/rust2rpm
  copying rust2rpm/licensing.py -> build/lib/rust2rpm
  running egg_info
  writing rust2rpm.egg-info/PKG-INFO
  writing dependency_links to rust2rpm.egg-info/dependency_links.txt
  writing entry points to rust2rpm.egg-info/entry_points.txt
  writing requirements to rust2rpm.egg-info/requires.txt
  writing top-level names to rust2rpm.egg-info/top_level.txt
  reading manifest file 'rust2rpm.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'data/*'
  adding license file 'LICENSE'
  writing manifest file 'rust2rpm.egg-info/SOURCES.txt'
  /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'rust2rpm.templates' is absent from the `packages` configuration.
  !!
          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'rust2rpm.templates' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.
          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'rust2rpm.templates' is explicitly added
          to the `packages` configuration field.
          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
          You can read more about "package discovery" on setuptools documentation page:
          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
          If you don't want 'rust2rpm.templates' to be distributed and are
          already explicitly excluding 'rust2rpm.templates' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.
          You can read more about "package data files" on setuptools documentation page:
          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************
  !!
    check.warn(importable)
  copying rust2rpm/spdx_to_fedora.csv -> build/lib/rust2rpm
  creating build/lib/rust2rpm/templates
  copying rust2rpm/templates/README.md -> build/lib/rust2rpm/templates
  copying rust2rpm/templates/crate.spec -> build/lib/rust2rpm/templates
  copying rust2rpm/templates/fedora-changelog.spec.inc -> build/lib/rust2rpm/templates
  copying rust2rpm/templates/mageia-changelog.spec.inc -> build/lib/rust2rpm/templates
  copying rust2rpm/templates/opensuse-changelog.spec.inc -> build/lib/rust2rpm/templates
  copying rust2rpm/templates/opensuse-header.spec.inc -> build/lib/rust2rpm/templates
  copying rust2rpm/templates/plain-changelog.spec.inc -> build/lib/rust2rpm/templates
  copying rust2rpm/templates/workspace.spec -> build/lib/rust2rpm/templates
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/cli.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  creating build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/templates/opensuse-changelog.spec.inc -> build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/templates/mageia-changelog.spec.inc -> build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/templates/fedora-changelog.spec.inc -> build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/templates/opensuse-header.spec.inc -> build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/templates/crate.spec -> build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/templates/README.md -> build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/templates/workspace.spec -> build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/templates/plain-changelog.spec.inc -> build/bdist.linux-x86_64/wheel/rust2rpm/templates
  copying build/lib/rust2rpm/utils.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/__main__.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/crate.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/__init__.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/distgit.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/generator.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/spdx_to_fedora.csv -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/metadata.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/patching.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/log.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/sysinfo.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/cratesio.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/cfg.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/conf.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  copying build/lib/rust2rpm/licensing.py -> build/bdist.linux-x86_64/wheel/rust2rpm
  running install_egg_info
  Copying rust2rpm.egg-info to build/bdist.linux-x86_64/wheel/rust2rpm-24.3.3-py3.11.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/rust2rpm-24.3.3.dist-info/WHEEL
  creating '/builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir/pip-wheel-pjj0m3_w/.tmp-aphdnk71/rust2rpm-24.3.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
  adding 'rust2rpm/__init__.py'
  adding 'rust2rpm/__main__.py'
  adding 'rust2rpm/cfg.py'
  adding 'rust2rpm/cli.py'
  adding 'rust2rpm/conf.py'
  adding 'rust2rpm/crate.py'
  adding 'rust2rpm/cratesio.py'
  adding 'rust2rpm/distgit.py'
  adding 'rust2rpm/generator.py'
  adding 'rust2rpm/licensing.py'
  adding 'rust2rpm/log.py'
  adding 'rust2rpm/metadata.py'
  adding 'rust2rpm/patching.py'
  adding 'rust2rpm/spdx_to_fedora.csv'
  adding 'rust2rpm/sysinfo.py'
  adding 'rust2rpm/utils.py'
  adding 'rust2rpm/templates/README.md'
  adding 'rust2rpm/templates/crate.spec'
  adding 'rust2rpm/templates/fedora-changelog.spec.inc'
  adding 'rust2rpm/templates/mageia-changelog.spec.inc'
  adding 'rust2rpm/templates/opensuse-changelog.spec.inc'
  adding 'rust2rpm/templates/opensuse-header.spec.inc'
  adding 'rust2rpm/templates/plain-changelog.spec.inc'
  adding 'rust2rpm/templates/workspace.spec'
  adding 'rust2rpm-24.3.3.dist-info/LICENSE'
  adding 'rust2rpm-24.3.3.dist-info/METADATA'
  adding 'rust2rpm-24.3.3.dist-info/WHEEL'
  adding 'rust2rpm-24.3.3.dist-info/entry_points.txt'
  adding 'rust2rpm-24.3.3.dist-info/top_level.txt'
  adding 'rust2rpm-24.3.3.dist-info/RECORD'
  removing build/bdist.linux-x86_64/wheel
  Building wheel for rust2rpm (pyproject.toml): finished with status 'done'
  Created wheel for rust2rpm: filename=rust2rpm-24.3.3-py3-none-any.whl size=38551 sha256=4fbc61c662294b43c2f01cd3f54393dfacf360a8a148aa4b2cfa2704ccc107de
  Stored in directory: /builddir/.cache/pip/wheels/c6/6e/e4/96aca4d5eb878cb3a2b8f4bb735a386bcecae832d380d6e9eb
Successfully built rust2rpm
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.P8f22s
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch
++ dirname /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch
+ cd rust2rpm-24.3.3
++ ls /builddir/build/BUILD/rust2rpm-24.3.3/pyproject-wheeldir/rust2rpm-24.3.3-py3-none-any.whl
++ xargs basename --multiple
++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/'
+ specifier=rust2rpm==24.3.3
+ TMPDIR=/builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir
+ /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/rust2rpm-24.3.3/pyproject-wheeldir rust2rpm==24.3.3
Using pip 23.3.1 from /usr/lib/python3.11/site-packages/pip (python 3.11)
Looking in links: /builddir/build/BUILD/rust2rpm-24.3.3/pyproject-wheeldir
Processing ./pyproject-wheeldir/rust2rpm-24.3.3-py3-none-any.whl
Installing collected packages: rust2rpm
  Creating /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/bin
  changing mode of /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/bin/rust2rpm to 755
Successfully installed rust2rpm-24.3.3
+ '[' -d /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/bin ']'
+ '[' -f /usr/bin/pathfix3.11.py ']'
+ pathfix=/usr/bin/pathfix3.11.py
+ '[' -z s ']'
+ shebang_flags=-kas
+ /usr/bin/pathfix3.11.py -pni /usr/bin/python3 -kas /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/bin/rust2rpm
/builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/bin/rust2rpm: updating
+ rm -rfv /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/bin/__pycache__
+ rm -f /builddir/build/BUILD/pyproject-ghost-distinfo
+ site_dirs=()
+ '[' -d /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages ']'
+ site_dirs+=("/usr/lib/python3.11/site-packages")
+ '[' /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib64/python3.11/site-packages '!=' /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages ']'
+ '[' -d /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib64/python3.11/site-packages ']'
+ for site_dir in ${site_dirs[@]}
+ for distinfo in /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch$site_dir/*.dist-info
+ echo '%ghost /usr/lib/python3.11/site-packages/rust2rpm-24.3.3.dist-info'
+ sed -i s/pip/rpm/ /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages/rust2rpm-24.3.3.dist-info/INSTALLER
+ PYTHONPATH=/usr/lib/rpm/OpenCloudOS
+ /usr/bin/python3 -B /usr/lib/rpm/OpenCloudOS/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch --record /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages/rust2rpm-24.3.3.dist-info/RECORD --output /builddir/build/BUILD/pyproject-record
+ rm -fv /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages/rust2rpm-24.3.3.dist-info/RECORD
removed '/builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages/rust2rpm-24.3.3.dist-info/RECORD'
+ rm -fv /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages/rust2rpm-24.3.3.dist-info/REQUESTED
removed '/builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages/rust2rpm-24.3.3.dist-info/REQUESTED'
+ /usr/bin/python3 /usr/lib/rpm/OpenCloudOS/pyproject_save_files.py --output-files /builddir/build/BUILD/pyproject-files --output-modules /builddir/build/BUILD/pyproject-modules --buildroot /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch --sitelib /usr/lib/python3.11/site-packages --sitearch /usr/lib64/python3.11/site-packages --python-version 3.11 --pyproject-record /builddir/build/BUILD/pyproject-record --prefix /usr rust2rpm
+ /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 24.3.3-4.ocs23 --unique-debug-suffix -24.3.3-4.ocs23.noarch --unique-debug-src-base rust2rpm-24.3.3-4.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/rust2rpm-24.3.3
find: 'debug': No such file or directory
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/OpenCloudOS/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs
+ /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0
Bytecompiling .py files below /builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11 using python3.11
+ /usr/lib/rpm/OpenCloudOS/brp-python-hardlink
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.BkMWtk
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld  -Wl,--build-id=sha1'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd rust2rpm-24.3.3
+ TOX_TESTENV_PASSENV='*'
+ PYTHONDONTWRITEBYTECODE=1
+ PATH=/builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
+ PYTHONPATH=/builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/rust2rpm-24.3.3-4.ocs23.noarch/usr/lib/python3.11/site-packages
+ PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/rust2rpm-24.3.3/.pyproject-builddir'
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -m tox --current-env -q --recreate -e py311
============================= test session starts ==============================
platform linux -- Python 3.11.6, pytest-7.4.0, pluggy-1.3.0 -- /usr/bin/python3
cachedir: .tox/py311/.pytest_cache
rootdir: /builddir/build/BUILD/rust2rpm-24.3.3
collecting ... collected 104 items
rust2rpm/tests/test_cfg.py::test_pyparsing_run_tests PASSED              [  0%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(target_os = "macos")-False] PASSED [  1%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(foo, bar))-False] PASSED [  2%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(all(unix, target_pointer_width = "16"))-True] PASSED [  3%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(not(foo))-True] PASSED  [  4%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(unix)-True] PASSED      [  5%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(not(unix))-False] PASSED [  6%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(windows)-False] PASSED  [  7%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(miri)-False] PASSED     [  8%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(linux)-False] PASSED    [  9%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(not(windows))-True] PASSED [ 10%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(unix, windows))-True] PASSED [ 11%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(windows, unix))-True] PASSED [ 12%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(windows, windows, windows))-False] PASSED [ 13%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(target_os = "linux")-True] PASSED [ 14%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(target_os = "linux"))-True] PASSED [ 15%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(all(target_os = "linux"))-True] PASSED [ 16%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(target_os = "linux", target_os = "macos"))-True] PASSED [ 17%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(target_pointer_width = "16", target_pointer_width = "32", target_pointer_width = "64"))-True] PASSED [ 18%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(target_os = "android", target_os = "linux"))-True] PASSED [ 19%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))-True] PASSED [ 20%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))-True] PASSED [ 21%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(not(target_os = "emscripten"))-True] PASSED [ 22%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), not(target_os = "wasi")))-False] PASSED [ 23%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(loom)-False] PASSED     [ 24%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(not(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown")))-True] PASSED [ 25%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))-True] PASSED [ 25%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(target_os = "freebsd")-False] PASSED [ 26%]
rust2rpm/tests/test_cfg.py::test_expressions[cfg(tokio_unstable)-False] PASSED [ 27%]
rust2rpm/tests/test_conf.py::test_rust2rpm_conf_load[askalono-cli-0.4.6.rust2rpm.conf-features0-expected0] PASSED [ 28%]
rust2rpm/tests/test_conf.py::test_rust2rpm_conf_load[chrono-0.4.23.rust2rpm.conf-features1-expected1] PASSED [ 29%]
rust2rpm/tests/test_conf.py::test_rust2rpm_conf_load[libsqlite3-sys-0.25.2.rust2rpm.conf-features2-expected2] PASSED [ 30%]
rust2rpm/tests/test_conf.py::test_rust2rpm_conf_load[glib-sys-0.17.2.rust2rpm.conf-features3-expected3] PASSED [ 31%]
rust2rpm/tests/test_conf.py::test_to_list PASSED                         [ 32%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[plain-cxx-build-1.0.71.json] FAILED [ 33%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[plain-dotenvy-0.15.6.json] PASSED [ 34%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[plain-nix-0.24.1.json] FAILED [ 35%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[plain-tokio-1.19.2.json] FAILED [ 36%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[fedora-cxx-build-1.0.71.json] PASSED [ 37%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[fedora-dotenvy-0.15.6.json] PASSED [ 38%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[fedora-nix-0.24.1.json] PASSED [ 39%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[fedora-tokio-1.19.2.json] PASSED [ 40%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[mageia-cxx-build-1.0.71.json] FAILED [ 41%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[mageia-dotenvy-0.15.6.json] PASSED [ 42%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[mageia-nix-0.24.1.json] FAILED [ 43%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[mageia-tokio-1.19.2.json] FAILED [ 44%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[opensuse-cxx-build-1.0.71.json] FAILED [ 45%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[opensuse-dotenvy-0.15.6.json] PASSED [ 46%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[opensuse-nix-0.24.1.json] FAILED [ 47%]
rust2rpm/tests/test_generator.py::test_spec_file_render_crate[opensuse-tokio-1.19.2.json] FAILED [ 48%]
rust2rpm/tests/test_generator.py::test_spec_file_render_workspace[plain-zola-0.16.1.json] PASSED [ 49%]
rust2rpm/tests/test_generator.py::test_spec_file_render_workspace[fedora-zola-0.16.1.json] PASSED [ 50%]
rust2rpm/tests/test_generator.py::test_spec_file_render_workspace[mageia-zola-0.16.1.json] PASSED [ 50%]
rust2rpm/tests/test_generator.py::test_spec_file_render_workspace[opensuse-zola-0.16.1.json] PASSED [ 51%]
rust2rpm/tests/test_generator.py::test_drop_foreign_dependencies[cxx-build-1.0.71.toml-features0-cxx-build-1.0.71.toml.patched] PASSED [ 52%]
rust2rpm/tests/test_generator.py::test_drop_foreign_dependencies[nix-0.24.1.toml-features1-nix-0.24.1.toml.patched] PASSED [ 53%]
rust2rpm/tests/test_generator.py::test_drop_foreign_dependencies[tokio-1.19.2.toml-features2-tokio-1.19.2.toml.patched] PASSED [ 54%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[ahash-0.8.3-features0-True] PASSED [ 55%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[assert_cmd-2.0.8-features1-True] PASSED [ 56%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[assert_fs-1.0.10-features2-True] PASSED [ 57%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[autocfg-1.1.0-features3-False] PASSED [ 58%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[bstr-1.2.0-features4-True] PASSED [ 59%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[cfg-if-1.0.0-features5-False] PASSED [ 60%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[clap-4.1.4-features6-True] PASSED [ 61%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[gstreamer-0.19.7-features7-True] PASSED [ 62%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[human-panic-1.1.0-features8-True] PASSED [ 63%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[hyperfine-1.15.0-features9-False] PASSED [ 64%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[libc-0.2.139-features10-False] PASSED [ 65%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[predicates-2.1.5-features11-True] PASSED [ 66%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[proc-macro2-1.0.50-features12-False] PASSED [ 67%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[quote-1.0.23-features13-False] PASSED [ 68%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[rand-0.8.5-features14-False] PASSED [ 69%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[rand_core-0.6.4-features15-False] PASSED [ 70%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[rpm-sequoia-1.2.0-features16-False] PASSED [ 71%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[rust_decimal-1.28.0-features17-True] PASSED [ 72%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[rustix-0.36.8-features18-False] PASSED [ 73%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[serde-1.0.152-features19-False] PASSED [ 74%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[serde_derive-1.0.152-features20-False] PASSED [ 75%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[syn-1.0.107-features21-False] PASSED [ 75%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[time-0.3.17-features22-True] PASSED [ 76%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[tokio-1.25.0-features23-False] PASSED [ 77%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[unicode-xid-0.2.4-features24-False] PASSED [ 78%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[zbus-3.8.0-features25-True] PASSED [ 79%]
rust2rpm/tests/test_metadata.py::test_package_uses_rust_1_60_feature_syntax[zoxide-0.9.0-features26-False] PASSED [ 80%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['~0.1'-False] PASSED [ 81%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['~0'-False] PASSED   [ 82%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['~1'-False] PASSED   [ 83%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['~1.0'-True] PASSED  [ 84%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['^1.0'-False] PASSED [ 85%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['0.1.*'-False] PASSED [ 86%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['1.0.*'-True] PASSED [ 87%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['1.*'-False] PASSED  [ 88%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['=1.2'-True] PASSED  [ 89%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['=1.2.3'-False] PASSED [ 90%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['=0.1'-False] PASSED [ 91%]
rust2rpm/tests/test_metadata.py::test_is_strict_dep['=0'-False] PASSED   [ 92%]
rust2rpm/tests/test_utils.py::test_package_name_suffixed['syn'-'0.4'-'rust-syn0.4'] PASSED [ 93%]
rust2rpm/tests/test_utils.py::test_package_name_suffixed['syn'-'1'-'rust-syn1'] PASSED [ 94%]
rust2rpm/tests/test_utils.py::test_package_name_suffixed['socket2'-'0.3'-'rust-socket2_0.3'] PASSED [ 95%]
rust2rpm/tests/test_utils.py::test_package_name_suffixed['version-compare'-'0.0.11'-'rust-version-compare0.0.11'] PASSED [ 96%]
rust2rpm/tests/test_utils.py::test_package_name_compat['syn'-'0.4.0'-'rust-syn0.4'] PASSED [ 97%]
rust2rpm/tests/test_utils.py::test_package_name_compat['syn'-'1.0.109'-'rust-syn1'] PASSED [ 98%]
rust2rpm/tests/test_utils.py::test_package_name_compat['socket2'-'0.3.4'-'rust-socket2_0.3'] PASSED [ 99%]
rust2rpm/tests/test_utils.py::test_package_name_compat['version-compare'-'0.0.11'-'rust-version-compare0.0.11'] PASSED [100%]
=================================== FAILURES ===================================
___________ test_spec_file_render_crate[plain-cxx-build-1.0.71.json] ___________
filename = 'cxx-build-1.0.71.json', target = 'plain'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '# Generated ...ial package\n' == '# Generated ...ial package\n'
E               # Generated by rust2rpm NNN
E               %bcond_without check
E               %global debug_package %{nil}
E               
E               %global crate cxx-build
E               
E               Name:           rust-cxx-build...
E             
E             ...Full output truncated (133 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
______________ test_spec_file_render_crate[plain-nix-0.24.1.json] ______________
filename = 'nix-0.24.1.json', target = 'plain'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '# Generated ...ial package\n' == '# Generated ...ial package\n'
E               # Generated by rust2rpm NNN
E               %bcond_without check
E               %global debug_package %{nil}
E               
E               %global crate nix
E               
E               Name:           rust-nix...
E             
E             ...Full output truncated (633 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
_____________ test_spec_file_render_crate[plain-tokio-1.19.2.json] _____________
filename = 'tokio-1.19.2.json', target = 'plain'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '# Generated ...ial package\n' == '# Generated ...ial package\n'
E               # Generated by rust2rpm NNN
E               %bcond_without check
E               %global debug_package %{nil}
E               
E               %global crate tokio
E               
E               Name:           rust-tokio...
E             
E             ...Full output truncated (576 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
__________ test_spec_file_render_crate[mageia-cxx-build-1.0.71.json] ___________
filename = 'cxx-build-1.0.71.json', target = 'mageia'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '# Generated ...ial package\n' == '# Generated ...ial package\n'
E               # Generated by rust2rpm NNN
E               %bcond_without check
E               %global debug_package %{nil}
E               
E               %global crate cxx-build
E               
E               Name:           rust-cxx-build...
E             
E             ...Full output truncated (114 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
----------------------------- Captured stderr call -----------------------------
• Upstream license tag 'Apache-2.0' translated to 'ASL 2.0'.
_____________ test_spec_file_render_crate[mageia-nix-0.24.1.json] ______________
filename = 'nix-0.24.1.json', target = 'mageia'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '# Generated ...ial package\n' == '# Generated ...ial package\n'
E               # Generated by rust2rpm NNN
E               %bcond_without check
E               %global debug_package %{nil}
E               
E               %global crate nix
E               
E               Name:           rust-nix...
E             
E             ...Full output truncated (515 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
____________ test_spec_file_render_crate[mageia-tokio-1.19.2.json] _____________
filename = 'tokio-1.19.2.json', target = 'mageia'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '# Generated ...ial package\n' == '# Generated ...ial package\n'
E               # Generated by rust2rpm NNN
E               %bcond_without check
E               %global debug_package %{nil}
E               
E               %global crate tokio
E               
E               Name:           rust-tokio...
E             
E             ...Full output truncated (434 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
_________ test_spec_file_render_crate[opensuse-cxx-build-1.0.71.json] __________
filename = 'cxx-build-1.0.71.json', target = 'opensuse'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '#\n# spec fi...ial package\n' == '#\n# spec fi...ial package\n'
E               #
E               # spec file for package rust-cxx-build
E               #
E               # Copyright (c) XXXX Jane Jane <jane@jane.org>.
E               #
E               # All modifications and additions to the file contributed by third parties
E               # remain the property of their copyright owners, unless otherwise agreed...
E             
E             ...Full output truncated (131 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
____________ test_spec_file_render_crate[opensuse-nix-0.24.1.json] _____________
filename = 'nix-0.24.1.json', target = 'opensuse'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '#\n# spec fi...ial package\n' == '#\n# spec fi...ial package\n'
E               #
E               # spec file for package rust-nix
E               #
E               # Copyright (c) XXXX Jane Jane <jane@jane.org>.
E               #
E               # All modifications and additions to the file contributed by third parties
E               # remain the property of their copyright owners, unless otherwise agreed...
E             
E             ...Full output truncated (533 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
___________ test_spec_file_render_crate[opensuse-tokio-1.19.2.json] ____________
filename = 'tokio-1.19.2.json', target = 'opensuse'
    @pytest.mark.parametrize(
        "filename", ["cxx-build-1.0.71.json", "dotenvy-0.15.6.json", "nix-0.24.1.json", "tokio-1.19.2.json"]
    )
    @pytest.mark.parametrize("target", ["plain", "fedora", "mageia", "opensuse"])
    def test_spec_file_render_crate(filename: str, target: str):
        crate_name_version = filename.removesuffix(".json")
        crate = crate_name_version.rsplit("-", 1)[0]
    
        args = get_parser().parse_args(["foobar", f"--target={target}", "-a" if target == "fedora" else "--no-rpmautospec"])
        rpm_name = package_name_suffixed(crate, args.suffix)
    
        real_path = resources.files("rust2rpm.tests.samples").joinpath(filename)
        metadata = Metadata.from_json(real_path.read_text())
    
        rendered = spec_render_crate(
            target=target,
            metadata=metadata,
            rpm_name=rpm_name,
            patch_file_automatic=f"{crate}-patch1.diff",
            patch_file_manual=f"{crate}-patch2.diff",
            license_files=["LIC1", "LIC2"],
            doc_files=["DOC1", "DOC2"],
            distconf=Rust2RpmConf(),
            feature_flags=FeatureFlags(),
            relative_license_paths=False,
            rpmautospec=target == "fedora",
            auto_changelog_entry=True,
            date=FIXED_DATE,
            packager="Jane Jane <jane@jane.org>",
        )
    
        rendered = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", rendered)
    
        if target == "opensuse":
            spec_copyright_year = time.strftime("%Y")
            rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
    
        fixture_path = resources.files("rust2rpm.tests.samples").joinpath(f"{crate_name_version}.{target}.spec")
    
        if os.getenv("UPDATE_FIXTURES") == "1":  # pragma nocover
            # helper mode to create test data
            fixture_path.write_text(rendered)
    
        else:
            expected = fixture_path.read_text()
>           assert rendered == expected
E           AssertionError: assert '#\n# spec fi...ial package\n' == '#\n# spec fi...ial package\n'
E               #
E               # spec file for package rust-tokio
E               #
E               # Copyright (c) XXXX Jane Jane <jane@jane.org>.
E               #
E               # All modifications and additions to the file contributed by third parties
E               # remain the property of their copyright owners, unless otherwise agreed...
E             
E             ...Full output truncated (452 lines hidden), use '-vv' to show
rust2rpm/tests/test_generator.py:73: AssertionError
=============================== warnings summary ===============================
rust2rpm/tests/test_generator.py:63
  /builddir/build/BUILD/rust2rpm-24.3.3/rust2rpm/tests/test_generator.py:63: DeprecationWarning: invalid escape sequence '\('
    rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
rust2rpm/tests/test_generator.py:104
  /builddir/build/BUILD/rust2rpm-24.3.3/rust2rpm/tests/test_generator.py:104: DeprecationWarning: invalid escape sequence '\('
    rendered = re.sub(f"(Copyright \(c\)) {spec_copyright_year}", r"\1 XXXX", rendered)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[plain-cxx-build-1.0.71.json]
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[plain-nix-0.24.1.json]
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[plain-tokio-1.19.2.json]
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[mageia-cxx-build-1.0.71.json]
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[mageia-nix-0.24.1.json]
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[mageia-tokio-1.19.2.json]
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[opensuse-cxx-build-1.0.71.json]
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[opensuse-nix-0.24.1.json]
FAILED rust2rpm/tests/test_generator.py::test_spec_file_render_crate[opensuse-tokio-1.19.2.json]
=================== 9 failed, 95 passed, 2 warnings in 0.78s ===================
py311: exit 1 (0.98 seconds) /builddir/build/BUILD/rust2rpm-24.3.3> pytest -v pid=3391188
  py311: FAIL code 1 (0.99 seconds)
  evaluation failed :( (1.03 seconds)
error: Bad exit status from /var/tmp/rpm-tmp.BkMWtk (%check)
    Bad exit status from /var/tmp/rpm-tmp.BkMWtk (%check)
RPM build errors:
Child return code was: 1
EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec\n', 1)]
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, 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 -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/rust2rpm.spec