Bug 1295693

Summary: nothing provides python-pyasn1-modules
Product: [Fedora] Fedora Reporter: Petr Vobornik <pvoborni>
Component: python-pyasn1Assignee: Rob Crittenden <rcritten>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mail, mkosek, pspacek, pviktori, rcritten, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pyasn1-0.1.9-4.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-05 15:26:58 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:
Attachments:
Description Flags
Spec patch fixing the provides none

Description Petr Vobornik 2016-01-05 09:36:27 UTC
Description of problem:
python-pyasn1 package was updated yesterday[1]. The update changed package names to:

  python2-pyasn1-0.1.9-3.fc24.noarch.rpm
  python2-pyasn1-modules-0.1.9-3.fc24.noarch.rpm
  python3-pyasn1-0.1.9-3.fc24.noarch.rpm
  python3-pyasn1-modules-0.1.9-3.fc24.noarch.rpm 

[1] http://koji.fedoraproject.org/koji/buildinfo?buildID=708994

Following dependencies of python ldap needs to be updated:
  Requires: python-pyasn1, python-pyasn1-modules

Version-Release number of selected component (if applicable):
python-ldap-2.4.17-2.fc23.x86_64

Comment 1 Petr Viktorin 2016-01-05 10:23:25 UTC
The py2 package should have:

%{?python_provide:%python_provide python2-%{srcname}}

and the py3 one should have

%{?python_provide:%python_provide python3-%{srcname}}

This will make one of those (the py2 currently) provide python-%{srcname}.
Same for %{srcname}-modules.

Python packaging guidelines: https://fedoraproject.org/wiki/Packaging:Python

Comment 2 Petr Spacek 2016-01-05 10:27:49 UTC
Rob, please fix python-pyasn1 package to conform to Python packaging guidelines. The alternative is to fix all other packages which is a lot more work. Thank you!

Comment 3 Martin Kosek 2016-01-05 10:47:29 UTC
Right, I rather think python-pyasn1-modules is having wrong provides:

http://koji.fedoraproject.org/koji/rpminfo?rpmID=7157964

The macro is there, there is just a typo. Moving to python-pyasn1.

Comment 4 Martin Kosek 2016-01-05 10:48:38 UTC
Created attachment 1111795 [details]
Spec patch fixing the provides

This one worked in my scratch build.

Comment 5 Rob Crittenden 2016-01-05 15:26:58 UTC
Thanks Martin. Should be fixed now.

$ rpm -qp --provides /home/rcrit/redhat/fedoragit/python-pyasn1/results_python-pyasn1/0.1.9/4.fc24/python2-pyasn1-0.1.9-4.fc24.noarch.rpm 
python-pyasn1 = 0.1.9-4.fc24
python-pyasn1(x86-64) = 0.1.9-4.fc24
python2-pyasn1 = 0.1.9-4.fc24

$ rpm -qp --provides /home/rcrit/redhat/fedoragit/python-pyasn1/results_python-pyasn1/0.1.9/4.fc24/python2-pyasn1-modules-0.1.9-4.fc24.noarch.rpm 
python-pyasn1-modules = 0.1.9-4.fc24
python-pyasn1-modules(x86-64) = 0.1.9-4.fc24
python2-pyasn1-modules = 0.1.9-4.fc24