# Generated by rust2rpm 27 %bcond check 1 Name: aws-nitro-tpm-tools Version: 1.0.0 Release: %autorelease Summary: A collection of utilities for working with NitroTPM attestation SourceLicense: Apache-2.0 OR MIT # FIXME: paste output of %%cargo_license_summary here License: Apache-2.0 # LICENSE.dependencies contains a full license breakdown URL: https://github.com/aws/NitroTPM-Tools Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: %{name}-dependencies.tar.gz Requires: tpm2-tss-devel BuildRequires: cargo-rpm-macros >= 24 BuildRequires: tpm2-tss-devel %global _description %{expand: Retrieve a signed attestation document from the NitroTPM.} %description %{_description} %prep %autosetup -n NitroTPM-Tools-%{version} -p1 -a1 %cargo_prep -v %{name}-dependencies #%generate_buildrequires #%cargo_generate_buildrequires %build #cd nitro-tpm-attest cargo build --release --manifest-path nitro-tpm-attest/Cargo.toml %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %cargo_vendor_manifest %clean cargo clean %install mkdir -p %{buildroot}/usr/bin install -m 0755 target/rpm/nitro-tpm-attest %{buildroot}/usr/bin/nitro-tpm-attest %if %{with check} %check %cargo_test %endif %files %license LICENSE LICENSES/APACHEv2-LICENSE LICENSES/MIT0-LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %{_bindir}/nitro-tpm-attest %changelog * Mon Dec 08 2025 Frank Liang - 1.0.0-1 - Initial package