732155
%if 0%{?rhel} > 7
732155
# Disable python2 build by default
732155
%bcond_with python2
732155
%else
732155
%bcond_without python2
732155
%endif
732155
732155
Name: pyusb
732155
Version: 1.0.0
6ebcad
Release: 9.1%{?dist}
732155
Summary: Python bindings for libusb
732155
License: BSD
732155
URL: http://pyusb.sourceforge.net/
732155
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip
732155
BuildRequires: libusb-devel
732155
BuildArch: noarch
732155
732155
%global _description\
732155
PyUSB provides easy USB access to python. The module contains classes and\
732155
methods to support most USB operations.
732155
732155
%description %_description
732155
732155
%if %{with python2}
732155
%package -n python2-pyusb
732155
Summary: %summary
732155
%{?python_provide:%python_provide python2-pyusb}
732155
BuildRequires: python2-devel
732155
# Remove before F30
732155
Provides:      pyusb = %{version}-%{release}
732155
Obsoletes:     pyusb < %{version}-%{release}
732155
732155
%description -n python2-pyusb %_description
732155
%endif # with python2
732155
732155
%package -n python3-pyusb
732155
Summary:       %summary
732155
%{?python_provide:%python_provide python3-pyusb}
732155
BuildRequires: python3-devel
732155
732155
%description -n python3-pyusb
732155
PyUSB provides easy USB access to python. The module contains classes and 
732155
methods to support most USB operations.
732155
732155
%prep
732155
%autosetup
732155
sed -i -e 's/\r//g' README.rst
732155
732155
%build
732155
%if %{with python2}
732155
%py2_build
732155
%endif # with python2
732155
%py3_build
732155
732155
%install
732155
%if %{with python2}
732155
%py2_install
732155
%endif # with python2
732155
%py3_install
732155
732155
%if %{with python2}
732155
%files -n python2-pyusb
732155
%license LICENSE
732155
%doc README.rst
732155
%{python2_sitelib}/*
732155
%endif # with python2
732155
732155
%files -n python3-pyusb
732155
%license LICENSE
732155
%doc README.rst
732155
%{python3_sitelib}/*
732155
732155
%changelog
6ebcad
* Thu Jun 16 2022 Florence Blanc-Renaud <frenaud@redhat.com> - 1.0.0-9.1
6ebcad
- Rebuilt to fix the NVR issue (#2094880)
6ebcad
732155
* Tue Jun 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.0.0-9
732155
- Conditionalize the python2 subpackage
732155
732155
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
732155
732155
* Tue Sep 05 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.0.0-7
732155
- Cleanup packaging and fix archful provide in noarch package
732155
732155
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.0-6
732155
- Python 2 binary package renamed to python2-pyusb
732155
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
732155
732155
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
732155
732155
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
732155
732155
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-3
732155
- Rebuild for Python 3.6
732155
732155
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
732155
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
732155
732155
* Tue Jun 14 2016 Jon Ciesla <limburgher@gmail.com> - 1.0.0-1
732155
- Latest upstream, BZ 1192561.
732155
732155
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-0.14.b2
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
732155
732155
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.13.b2
732155
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
732155
732155
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.12.b2
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
732155
732155
* Fri Feb 13 2015 Jon Ciesla <limburgher@gmail.com> - 1.0.0-0.11.b2
732155
- Latest upstream, BZ 1192561.
732155
732155
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.10.b1
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
732155
732155
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.0.0-0.9.b1
732155
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
732155
732155
* Mon Nov 11 2013 Jon Ciesla <limburgher@gmail.com> - 1.0.0-0.8.b1
732155
- Latest upstream.
732155
- Add python3 support, spec cleanup, BZ 1022851.
732155
- Fixed changelog.
732155
732155
* Fri Sep 13 2013 Jon Ciesla <limburgher@gmail.com> - 1.0.0-0.7.a3
732155
- Latest upstream.
732155
732155
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.6.a2
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
732155
732155
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.5.a2
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
732155
732155
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.4.a2
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
732155
732155
* Mon Jan 23 2012 Tim Waugh <twaugh@redhat.com> - 1.0.0-0.3.a2
732155
- 1.0.0-a2.
732155
732155
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.2.a1
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
732155
732155
* Thu Jun 30 2011 Tim Waugh <twaugh@redhat.com> - 1.0.0-0.1.a1
732155
- 1.0.0-a1 (bug #586950).
732155
732155
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-7
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
732155
732155
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.1-6
732155
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
732155
732155
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-5
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
732155
732155
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
732155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
732155
732155
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.4.1-3
732155
- Rebuild for Python 2.6
732155
732155
* Mon Jun 16 2008 Jeremy Katz <katzj@redhat.com> - 0.4.1-2
732155
- Fix end-of-line in README
732155
732155
* Mon Jun 16 2008 Jeremy Katz <katzj@redhat.com> - 0.4.1-1
732155
- Initial packaging
732155