From f34f3a2f5e99cdc7493e5f6946e3972926d2d17f Mon Sep 17 00:00:00 2001 From: Jonny Heggheim Date: Jul 11 2020 19:12:00 +0000 Subject: Updated to 1.8 + refactoring --- diff --git a/.gitignore b/.gitignore index e45636c..724e8bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /libusb1-1.6.4.tar.gz +/libusb1-1.8.tar.gz diff --git a/python-libusb1.spec b/python-libusb1.spec index 97b1f57..186d0a4 100644 --- a/python-libusb1.spec +++ b/python-libusb1.spec @@ -1,19 +1,18 @@ %global srcname libusb1 -%global sum Pure-python wrapper for libusb-1.0 Name: python-%{srcname} -Version: 1.6.4 -Release: 10%{?dist} -Summary: %{sum} +Version: 1.8 +Release: 1%{?dist} +Summary: Pure-python wrapper for libusb-1.0 License: LGPLv2+ URL: https://github.com/vpelletier/python-libusb1 -Source0: https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz +Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel +BuildRequires: python3-Cython BuildRequires: libusb-devel -BuildRequires: libusbx-devel %description Pure-python wrapper for libusb-1.0. @@ -21,8 +20,8 @@ Pure-python wrapper for libusb-1.0. Supports all transfer types, both in synchronous and asynchronous mode. %package -n python3-%{srcname} -Requires: (libusb1 or libusbx) -Summary: %{sum} +Requires: libusb1 +Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} @@ -34,6 +33,7 @@ Supports all transfer types, both in synchronous and asynchronous mode. %prep %autosetup -n %{srcname}-%{version} rm -rf %{srcname}.egg-info +rm -rf __pycache__ %build %py3_build @@ -46,10 +46,15 @@ rm -rf %{srcname}.egg-info %files -n python3-%{srcname} %license COPYING COPYING.LESSER -%doc README.rst -%{python3_sitelib}/* +%doc README.rst PKG-INFO +%pycached %{python3_sitelib}/%{srcname}.py +%{python3_sitelib}/usb1/ +%{python3_sitelib}/%{srcname}-*.egg-info %changelog +* Sat Jul 11 2020 Jonny Heggheim - 1.8-1 +- Updated to 1.8 + * Tue May 26 2020 Miro HronĨok - 1.6.4-10 - Rebuilt for Python 3.9 diff --git a/sources b/sources index 6e8d0b7..1e788bc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libusb1-1.6.4.tar.gz) = 103a2332ea1d9135c9768fbdb821cbe393f721b4104c3a6f7ef98e3159380fd25827665f3a85cea7b299135d03c905d51e1c6ad68728dd3a2130b32b1448a1a0 +SHA512 (libusb1-1.8.tar.gz) = 756d091dbae089d719f8c2b21419fb850b00547152c457501dc8e3296ece10418a6a255f9eece25b05eb5e039c892f2f31b52f3b7ca8668f8bd152ebfb8a90eb