## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 Name: python-binary-manager Version: 0.0.6 Release: %autorelease Summary: Binman firmware-packaging tool License: GPL-2.0-or-later URL: https://docs.u-boot.org/en/latest/develop/package/index.html Source: %{pypi_source binary-manager} BuildArch: noarch BuildRequires: python3-devel BuildRequires: sed BuildRequires: python3dist(jsonschema) BuildRequires: python3dist(pycryptodomex) BuildRequires: python3dist(pyyaml) %global _description %{expand: Binman provides a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts. It also allows users to inspect images, extract and replace binaries within them, repacking if needed.} %description %_description %package -n python3-binary-manager Summary: %{summary} Requires: python3dist(jsonschema) Requires: python3dist(pycryptodomex) Requires: python3dist(pyyaml) %description -n python3-binary-manager %_description %prep %autosetup -p1 -n binary-manager-%{version} # Fix dependency name sed -i 's:pylibfdt:libfdt:' pyproject.toml # Remove unnecessary shebangs sed -i "\|#!/usr/bin/env python3|d" src/binman/*.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files binman %check %pyproject_check_import -e binman.setup %files -n python3-binary-manager -f %{pyproject_files} %doc README.rst %{_bindir}/binman %changelog ## START: Generated by rpmautospec * Sat Jan 18 2025 Fedora Release Engineering - 0.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Jan 04 2025 Davide Cavalca - 0.0.6-1 - Initial import; Fixes: RHBZ#2316566 ## END: Generated by rpmautospec