## 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 %bcond check 1 # https://github.com/fl-sztp/sztp-client %global goipath github.com/fl-sztp/sztp-client %global commit 2a17708512aa425eb1132937859031996e16fc3f %gometa -L -f Name: sztp-client Version: 0 Release: %autorelease -p Summary: Go implementation of a Secure Zero Touch Provisioning client License: Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description Go implementation of a Secure Zero Touch Provisioning client, designed to automate the secure onboarding and provisioning of devices such as computers, DPUs, and network equipment. It communicates with an SZTP bootstrap server using mutual TLS authentication and supports secure device identity verification and configuration delivery. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on #%%gobuild -o %{gobuilddir}/bin/sztp-client %{goipath} %gobuild -o %{gobuilddir}/bin/sztp-client . %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/sztp-client %changelog ## START: Generated by rpmautospec * Sun Dec 14 2025 John Doe - 0-0.1 - Uncommitted changes ## END: Generated by rpmautospec