%global _default_patch_fuzz 2 Name: nrfutil Version: 6.1.7 Release: 2%{?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 Patch1: nrfutil-fix-libusb.patch 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/, <3.11//' setup.py sed -i 's/libusb1==1.9.3/libusb1/' requirements.txt %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files nordicsemi %files -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/nrfutil %changelog * Sat Sep 13 2025 Peter Robinson - 6.1.7-2 - Update python build macros * Tue Oct 18 2022 Peter Robinson 6.1.3-1 - Initial package