# Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/Foxboron/age-plugin-tpm %global goipath github.com/Foxboron/age-plugin-tpm Version: 0.3.0 %gometa -L -f Name: age-plugin-tpm Release: 1%{?dist} Summary: TPM 2.0 plugin for age # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools BuildRequires: pkgconfig(openssl) BuildRequires: swtpm-tools BuildRequires: age Requires: (age or rage) %description TPM 2.0 plugin for age. %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/age-plugin-tpm ./cmd/age-plugin-tpm/ %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 ./cmd/scripts_test.go %gotest ./plugin/... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/age-plugin-tpm %changelog * Mon Nov 03 2025 Jerzy Drozdz - 0.3.0-1 - Initial package