# Generated by go2rpm 1.3 %bcond_without check # https://github.com/google/go-tpm %global goipath github.com/google/go-tpm Version: 0.3.2 %gometa %global common_description %{expand: Go-TPM is a Go library that communicates directly with a TPM device. The libraries don't implement the entire spec for neither 1.2 nor 2.0.} %global golicenses LICENSE %global godocs examples CONTRIBUTING.md README.md tpm/testing.md Name: %{goname} Release: 2%{?dist} Summary: Go library that communicates directly with a TPM device # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # Remove Invalid Pack test for ioutil.Discard Patch0: %{url}/commit/d3310770bfec97b19d08524b63c458c3487d0d93.patch # tpmutil: Fix integer casting on 32-bit platforms Patch1: %{url}/pull/253.patch BuildRequires: golang(golang.org/x/sys/unix) %if %{with check} # Tests BuildRequires: golang(github.com/google/go-cmp/cmp) %endif %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Tue Jun 22 2021 Davide Cavalca - 0.3.2-2 - Backport fix for tests on 32 bit platforms * Sat Jun 19 2021 Davide Cavalca - 0.3.2-1 - Initial package