Name: miunlock Version: 1.7.4 Release: 1%{?dist} Summary: Retrieve Xiaomi encryptData(token) to unlock bootloader BuildArch: noarch License: Apache-2.0 URL: https://github.com/MiForge/MiUnlockTool Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel Requires: android-tools %global _description %{expand: MiUnlockTool retrieves the encryptData token that Xiaomi's bootloader unlock service requires. The token is then used with fastboot to unlock the bootloader of a Xiaomi device.} %description %_description %generate_buildrequires cd MiUnlockTool %pyproject_buildrequires %prep %autosetup -n MiUnlockTool-%{version} %build cd MiUnlockTool %pyproject_wheel %install cd MiUnlockTool %pyproject_install %pyproject_save_files miunlock %check %pyproject_check_import test -x %{buildroot}%{_bindir}/miunlock %files -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Thu Oct 22 2026 sachesi - 1.7.4-1 - Initial package for Copr.