2025-02-07 10:52:23 +00:00
committed by Git OBS Bridge
parent efae5050e9
commit b4d71ab34d

View File

@@ -30,8 +30,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python3-pyserial
Requires: python3-pyudev
Requires: python-pyserial
Requires: python-pyudev
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
@@ -50,9 +50,10 @@ sed -i -e 's_#!/usr/bin/env python3__' rshell/*.py
%build
%pyproject_wheel
# tests can't run as they require a micropython board connected via USB
%install
%pyproject_install
%python3_fix_shebang
%python_clone -a %{buildroot}%{_bindir}/rshell
%python_clone -a %{buildroot}%{_bindir}/pyboard
%python_expand %fdupes %{buildroot}%{$python_sitelib}