Bug 1583052

Summary: Autogenerated provides are not populated
Product: [Fedora] Fedora Reporter: Pavel Zhukov <pzhukov>
Component: python-rpm-generatorsAssignee: Tomas Orsava <torsava>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: cstratak, lbalhar, mcyprian, mhroncok, pviktori, shcherbina.iryna, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-28 08:08:10 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:
Embargoed:

Description Pavel Zhukov 2018-05-28 07:43:33 UTC
Description of problem:
Some of python rpms (I've found python-dns so far) don't provide python3dist() as the result mock build is failed.

Version-Release number of selected component (if applicable):
python3-rpm-generators-5-1.fc28.noarch

How reproducible:
100%

Steps to Reproduce:
1. Build python-dns
2. Check provides


Actual results:
$ rpm -qpR python3-dns-1.15.0-8.fc28.noarch.rpm 
python(abi) = 3.6
python3-crypto
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

$ rpm -qpP python3-falcon-1.4.1-2.fc28.x86_64.rpm 
python3-falcon = 1.4.1-2.fc28
python3-falcon(x86-64) = 1.4.1-2.fc28
python3.6dist(falcon) = 1.4.1
python3dist(falcon) = 1.4.1


Expected results:
python3dist(dns) = 1.15.0



Additional info:

Comment 1 Miro HronĨok 2018-05-28 08:08:10 UTC
Actually, python3-dnf provides python3dist(dnspython):

$ rpm -qp --provides ./python3-dns-1.15.0-8.fc28.noarch.rpm 
python3-dns = 1.15.0-8.fc28
python3.6dist(dnspython) = 1.15.0
python3dist(dnspython) = 1.15.0

Your reproducer show requires.

Also, it's not python3dist(dns) because the Python package is called dnspython, not dns. The Fedora package maintainer here probably went a bit creative when naming it python-dnf (12 years ago).