Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 1792930

Summary: python-congressclient fails to create SRPM in Fedora
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-congressclientAssignee: Alfredo Moralejo <amoralej>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amoralej, cstratak, lobo, mhroncok, openstack-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-20 18:46:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1750908, 1785415    

Description Miro Hrončok 2020-01-20 12:14:39 UTC
python-congressclient fails to create SRPM due to unescaped nested macros.

[python-congressclient (master)]$ fedpkg srpm
error: Cannot use %python if %__python wasn't redefined to something other than /usr/bin/python.
error: lua script failed: [string "<lua>"]:4: error expanding macro
error: .../python-debtcollector/python-congressclient.spec: line 8: Macro %pyver_sitelib failed to expand
error: query of specfile .../python-congressclient/python-congressclient.spec failed, can't parse

Could not execute srpm: Could not get n-v-r-e from .../python-congressclient/python-congressclient.spec

Possible fix is at

Alternate fix is also described there.

This blocks the Python 3.9 rebuild.