forked from pool/python-libusb1
Accepting request 1289275 from devel:languages:python
Forwarded request #1289264 from glaubitz - Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install - Use Python 3.11 on SLE-15 by default OBS-URL: https://build.opensuse.org/request/show/1289275 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-libusb1?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 30 12:04:24 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Switch build system from setuptools to pyproject.toml
|
||||||
|
* Add python-pip and python-wheel to BuildRequires
|
||||||
|
* Replace %python_build with %pyproject_wheel
|
||||||
|
* Replace %python_install with %pyproject_install
|
||||||
|
- Use Python 3.11 on SLE-15 by default
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 11 12:45:26 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
Fri Apr 11 12:45:26 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-libusb1
|
Name: python-libusb1
|
||||||
Version: 3.3.1
|
Version: 3.3.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,7 +26,9 @@ Summary: Python wrapper for libusb-1.0
|
|||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
URL: https://github.com/vpelletier/%{name}
|
URL: https://github.com/vpelletier/%{name}
|
||||||
Source: https://files.pythonhosted.org/packages/source/l/libusb1/libusb1-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/l/libusb1/libusb1-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libusb-1_0-0 >= 1.0.21
|
BuildRequires: libusb-1_0-0 >= 1.0.21
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -44,10 +47,10 @@ sed -i '1{/^#!/d}' examples/*.py
|
|||||||
chmod a-x examples/*.py
|
chmod a-x examples/*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|||||||
Reference in New Issue
Block a user