Mageia Bugzilla – Attachment 13682 Details for
Bug 31518
{PKG REQUEST}python-pyusb - USB access on the Python language
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
python-pyusb.spec (text/x-matlab), 1.27 KB, created by
Kristoffer Grundström
on 2023-02-06 19:13:37 CET
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2023-02-06 19:13:37 CET
Size:
1.27 KB
patch
obsolete
>%{?!python_module:%define python_module() python-%{**} python3-%{**}} >%global skip_python2 1 >%define srcname pyusb >%define srcversion 1.2.1 >Name: python-pyusb >Version: 1.2.1 >Release: %mkrel 1 >Summary: USB access on the Python language >License: BSD-3-Clause >Group: Development/Python >URL: https://github.com/pyusb/pyusb >Source0: https://files.pythonhosted.org/packages/d9/6e/433a5614132576289b8643fe598dd5d51b16e130fd591564be952e15bb45/pyusb-1.2.1.tar.gz >BuildRequires: %{python_module pytest} >BuildRequires: %{python_module setuptools_scm} >BuildRequires: %{python_module setuptools} >BuildRequires: dos2unix >BuildRequires: fdupes >BuildRequires: python-rpm-macros >Requires: libusb1.0_0 >Provides: python-usb = %{version}-%{release} >BuildArch: noarch > >%description >Provides USB access to the Python language. > >%prep >%setup -q -n pyusb-%{version} ># Convert dos format files to unix format >find . -name "*.rst" -exec dos2unix {} + > >%build >%py3_build > >%install >%py3_install > >fdupes %{buildroot}%{$python_sitelib} > >%check ># Testing mostly requires a device, which is not mocked or emulated ># See https://github.com/pyusb/pyusb/issues/235 >%pytest tests/test_find.py tests/test_util.py -k 'not FindDescriptorTest' > >%files >%license LICENSE >%doc ACKNOWLEDGEMENTS README.rst docs/* >%{python_sitelib}/*
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global skip_python2 1 %define srcname pyusb %define srcversion 1.2.1 Name: python-pyusb Version: 1.2.1 Release: %mkrel 1 Summary: USB access on the Python language License: BSD-3-Clause Group: Development/Python URL: https://github.com/pyusb/pyusb Source0: https://files.pythonhosted.org/packages/d9/6e/433a5614132576289b8643fe598dd5d51b16e130fd591564be952e15bb45/pyusb-1.2.1.tar.gz BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: libusb1.0_0 Provides: python-usb = %{version}-%{release} BuildArch: noarch %description Provides USB access to the Python language. %prep %setup -q -n pyusb-%{version} # Convert dos format files to unix format find . -name "*.rst" -exec dos2unix {} + %build %py3_build %install %py3_install fdupes %{buildroot}%{$python_sitelib} %check # Testing mostly requires a device, which is not mocked or emulated # See https://github.com/pyusb/pyusb/issues/235 %pytest tests/test_find.py tests/test_util.py -k 'not FindDescriptorTest' %files %license LICENSE %doc ACKNOWLEDGEMENTS README.rst docs/* %{python_sitelib}/*
View Attachment As Raw
Actions:
View
Attachments on
bug 31518
: 13682