310ea99
Name:           python-libusb1
bc5efb3
Version:        3.0.0
8ca0621
Release:        2%{?dist}
f34f3a2
Summary:        Pure-python wrapper for libusb-1.0
5ef87c6
5ef87c6
License:        LGPLv2+
5ef87c6
URL:            https://github.com/vpelletier/python-libusb1
310ea99
Source0:        %{pypi_source libusb1}
310ea99
Source1:        %{pypi_source libusb1}.asc
3c96535
3c96535
#https://github.com/vpelletier/python-libusb1/blob/5bc97a163ee1ca98ca6bfc11045f5c4ab94ec654/KEYS
3c96535
#Wed Jan 05 2022, exported the upstream gpg key using the command:
3c96535
#gpg2 --armor --export --export-options export-minimal 983AE8B73B9115987A923845CAC936914257B0C1 > gpgkey-python-libusb1.gpg
3c96535
Source2:        gpgkey-python-libusb1.gpg
3c96535
5ef87c6
5ef87c6
BuildArch:      noarch
2cdc52c
BuildRequires:  python3-devel
889142f
BuildRequires:  python3-setuptools
f34f3a2
BuildRequires:  python3-Cython
f2b7d63
BuildRequires:  python3-wheel
5ef87c6
BuildRequires:  libusb-devel
5ef87c6
3c96535
BuildRequires:  gnupg2
3c96535
5ef87c6
%description
5ef87c6
Pure-python wrapper for libusb-1.0.
5ef87c6
5ef87c6
Supports all transfer types, both in synchronous and asynchronous mode.
5ef87c6
310ea99
%package -n python3-libusb1
f34f3a2
Requires:       libusb1
f34f3a2
Summary:        %{summary}
5ef87c6
310ea99
%description -n python3-libusb1
5ef87c6
Pure-python wrapper for libusb-1.0.
5ef87c6
5ef87c6
Supports all transfer types, both in synchronous and asynchronous mode.
5ef87c6
5ef87c6
5ef87c6
%prep
3c96535
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
310ea99
%autosetup -n libusb1-%{version}
310ea99
rm -rf libusb1.egg-info
5ef87c6
5ef87c6
%build
5ef87c6
%py3_build
5ef87c6
5ef87c6
%install
5ef87c6
%py3_install
5ef87c6
5ef87c6
%check
889142f
%{python3} setup.py test
5ef87c6
310ea99
%files -n python3-libusb1
5ef87c6
%license COPYING COPYING.LESSER
f34f3a2
%doc README.rst PKG-INFO
310ea99
%pycached %{python3_sitelib}/libusb1.py
f34f3a2
%{python3_sitelib}/usb1/
310ea99
%{python3_sitelib}/libusb1-*.egg-info
5ef87c6
5ef87c6
%changelog
8ca0621
* Mon May 23 2022 Jonny Heggheim <hegjon@gmail.com> - 3.0.0-2
8ca0621
- Stop using deprecated zero-argument pypi_source macro
8ca0621
bc5efb3
* Fri Feb 25 2022 Jonny Heggheim <hegjon@gmail.com> - 3.0.0-1
bc5efb3
- Updated to version 3.0.0
bc5efb3
c14a6ba
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
c14a6ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c14a6ba
3c96535
* Wed Jan 05 2022 Jonny Heggheim <hegjon@gmail.com> - 2.0.1-2
3c96535
- Verify the signature of the source tarball
3c96535
4609558
* Fri Nov 26 2021 Jonny Heggheim <hegjon@gmail.com> - 2.0.1-1
4609558
- Updated to 2.0.1
4609558
ddb472d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-3
ddb472d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ddb472d
aa4678a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.9.2-2
aa4678a
- Rebuilt for Python 3.10
aa4678a
889142f
* Fri Apr 02 2021 Jonny Heggheim <hegjon@gmail.com> - 1.9.2-1
889142f
- Updated to 1.9.2
889142f
6cf62ce
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
6cf62ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6cf62ce
1f349ee
* Wed Dec 09 2020 Jonny Heggheim <hegjon@gmail.com> - 1.9.1-1
1f349ee
- Updated to 1.9.1
1f349ee
ad087b3
* Sun Nov 29 2020 Jonny Heggheim <hegjon@gmail.com> - 1.8.1-1
ad087b3
- Updated to 1.8.1
ad087b3
99d5ce4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-2
99d5ce4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
99d5ce4
f34f3a2
* Sat Jul 11 2020 Jonny Heggheim <hegjon@gmail.com> - 1.8-1
f34f3a2
- Updated to 1.8
f34f3a2
a6d20dd
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.6.4-10
a6d20dd
- Rebuilt for Python 3.9
a6d20dd
e6eb6c3
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-9
e6eb6c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e6eb6c3
3970d9b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.4-8
3970d9b
- Rebuilt for Python 3.8.0rc1 (#1748018)
3970d9b
c19fdcf
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.4-7
c19fdcf
- Rebuilt for Python 3.8
c19fdcf
fcac68f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-6
fcac68f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fcac68f
42c5831
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-5
42c5831
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
42c5831
2cdc52c
* Sun Sep 16 2018 Jonny Heggheim <hegjon@gmail.com> - 1.6.4-4
2cdc52c
- Removed Python2 sub-package
2cdc52c
4a7b248
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-3
4a7b248
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4a7b248
928a4df
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.4-2
928a4df
- Rebuilt for Python 3.7
928a4df
5ef87c6
* Tue Mar 20 2018 Jonny Heggheim <hegjon@gmail.com> - 1.6.4-1
5ef87c6
- Inital version