## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://github.com/nlscc/samloader %global commit 820375214f1b7b26109e5c3aea8d005fcc56eebf %forgemeta %global pypi_name samloader Name: python-%{pypi_name} Version: 0 Release: %autorelease Summary: Download Samsung firmware from official servers License: GPLv3 URL: %{forgeurl} Source0: %{forgesource} Patch0: %{url}/pull/59.patch#/Use-tqdm-for-progress-bar.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: samloader is a tool to download firmware for Samsung devices from the official servers.} %description %_description %package -n %{pypi_name} Summary: %{summary} %description -n %{pypi_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{commit} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import %{pypi_name} %files -n %{pypi_name} -f %{pyproject_files} %license COPYING %doc README.md %{_bindir}/%{pypi_name} %changelog * Fri Jan 20 2023 Fedora Release Engineering 0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering 0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint 0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 29 2021 Davide Cavalca 0-1 - Initial import; Fixes: RHBZ#2035504