## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 commit 74e7c69b812923f68ef3eeb0c1cbbee90f80b566 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: eswin-nsign Version: 2.0.0^20250612.g%{shortcommit} Release: %autorelease Summary: ESWIN bootchain image tool License: GPL-2.0-only URL: https://github.com/eswincomputing/Esbd-77serial-nsign Source0: %{url}/archive/%{commit}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: coreutils BuildRequires: gcc-c++ %description nsign is an image creation and signature tool for ESWIN EIC770x series of SOCs It is used to create bootchain image from individual components (ddr_fw.bin, second_boot_fw.bin, fw_payload.bin) %prep %autosetup -p1 -n Esbd-77serial-nsign-%{commit} chmod -v -x COPYING %cmake %build %cmake_build %install %cmake_install mv -v %{buildroot}%{_bindir}/nsign %{buildroot}%{_bindir}/eswin-nsign %files %license LICENSE COPYING %{_bindir}/%{name} %changelog ## START: Generated by rpmautospec * Wed Jun 11 2025 John Doe - 2.0.0^20250612.g74e7c69-1 - Uncommitted changes ## END: Generated by rpmautospec