Bug 1022851

Summary: Add Python 3 support
Product: [Fedora] Fedora Reporter: Johan Swensson <kupo>
Component: pyusbAssignee: Gwyn Ciesla <gwync>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gwync
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-11 17:36:26 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 Johan Swensson 2013-10-24 07:22:58 UTC
I'm packaging a software that requires pyusb. Upstream supports Python 3 but this package have not yet been updated to support Python 3 in Fedora.

Also note:
https://fedoraproject.org/wiki/Changes/Python_3_as_Default

A few comments on the current spec that should be fixed:
1. Remove BuildRoot
2. Make Source0 viable
3. Use %{__python2} / %{__python3} instead of %{__python}
4. BuildRequires: python-devel should be python2-devel or python3-devel
4. Remove rm -rf $RPM_BUILD_ROOT in %install
5. Remove %clean
6. %defattr(-,root,root,-) is no longer needed

Comment 1 Gwyn Ciesla 2013-11-11 17:36:26 UTC
Done in rawhide, let me know if you want/need this in any other branches.