Accepting request 1227762 from home:mcalabkova:branches:devel:languages:python
- Add upstream py313.patch to fix build with new python OBS-URL: https://build.opensuse.org/request/show/1227762 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libusb1?expand=0&rev=11
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-libusb1
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-libusb1
|
||||
Version: 3.1.0
|
||||
Release: 0
|
||||
@@ -26,6 +25,8 @@ Summary: Python wrapper for libusb-1.0
|
||||
License: LGPL-2.1-or-later
|
||||
URL: https://github.com/vpelletier/%{name}
|
||||
Source: https://files.pythonhosted.org/packages/source/l/libusb1/libusb1-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/vpelletier/python-libusb1/pull/104 testUSB1: fix python 3.13 support
|
||||
Patch: py313.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libusb-1_0-0 >= 1.0.21
|
||||
@@ -38,7 +39,7 @@ BuildArch: noarch
|
||||
This is a pure python wrapper for libusb-1.0.
|
||||
|
||||
%prep
|
||||
%setup -q -n libusb1-%{version}
|
||||
%autosetup -p1 -n libusb1-%{version}
|
||||
sed -i '/wheel/d' setup.py
|
||||
|
||||
sed -i '1{/^#!/d}' examples/*.py
|
||||
@@ -57,6 +58,9 @@ chmod a-x examples/*.py
|
||||
%files %{python_files}
|
||||
%doc README.rst examples/
|
||||
%license COPYING.LESSER
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/libusb1.py
|
||||
%{python_sitelib}/usb1
|
||||
%pycache_only %{python_sitelib}/__pycache__/libusb1*
|
||||
%{python_sitelib}/libusb1-%{version}*info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user