From 01a1b9ad57528c407f9f8fc7cd72b530edb1856d Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 18 Jun 2023 16:47:50 -0400 Subject: [PATCH] Update dependencies to libusb1 The runtime requirement was switched a while ago to a choice of libusb-0.1 and libusb-1.0. Since nowadays the 0.1 API is provided by a compat shim on top of 1.0, better to just use that directly. The -devel package is no longer required to build though since no binding is built; the library is loaded through ctypes. Also, run the tests in accordance with Python packaging guidelines. --- pyusb.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pyusb.spec b/pyusb.spec index f69e613..f395b7d 100644 --- a/pyusb.spec +++ b/pyusb.spec @@ -1,11 +1,11 @@ Name: pyusb Version: 1.2.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Python bindings for libusb License: BSD-3-Clause URL: https://github.com/pyusb/pyusb/ Source0: %{pypi_source} -BuildRequires: libusb-compat-0.1-devel +BuildRequires: libusb1 BuildArch: noarch %global _description\ @@ -20,6 +20,7 @@ Summary: %summary BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm +Requires: libusb1 %description -n python3-pyusb PyUSB provides easy USB access to python. The module contains classes and @@ -35,12 +36,19 @@ sed -i -e 's/\r//g' README.rst %install %py3_install +%check +cd tests +%{py3_test_envvars} %{python3} ./testall.py + %files -n python3-pyusb %license LICENSE %doc README.rst %{python3_sitelib}/* %changelog +* Sun Jun 18 2023 Yaakov Selkowitz - 1.2.1-6 +- Update dependencies to libusb1 + * Tue Jun 13 2023 Python Maint - 1.2.1-5 - Rebuilt for Python 3.12