Name: nrfutil Version: 6.1.7 Release: 1%{?dist} Summary: nrfutil utilities and command line client License: BSD URL: https://github.com/python-nrfutil/nrfutil Source0: https://github.com/python-nrfutil/nrfutil/archive/%{version}.tar.gz#/pc-%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-libusb1 BuildRequires: python3-setuptools %description nRF Util is a Python package and command-line utility that supports Device Firmware Updates (DFU) and cryptographic functionality. %prep %autosetup -p1 -n pc-%{name}-%{version} sed -i 's/libusb1==1.9.3/libusb1/' requirements.txt %build %py3_build %install %py3_install rm -rf %{buildroot}/%{python3_sitelib}/requirements.txt rm -rf %{buildroot}/%{python3_sitelib}/libusb/ %files %license LICENSE %doc README.md %{_bindir}/nrfutil %{python3_sitelib}/nordicsemi/ %{python3_sitelib}/nrfutil-%{version}-py3.*.egg-info/ %changelog * Tue Oct 18 2022 Peter Robinson 6.1.3-1 - Initial package