# Generated by go2rpm %bcond_without check # https://github.com/google/go-tspi %global goipath github.com/google/go-tspi Version: 0.2.0 %gometa %global goaltipaths github.com/coreos/go-tspi %global godevelheader %{expand: Requires: trousers-devel} %global common_description %{expand: This is a library providing a set of bindings for communication between code written in Go and libtspi, the library responsible for providing a TPM control interface.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md Name: %{goname} Release: 1%{?dist} Summary: TSPI bindings for Go # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/google/certificate-transparency-go/x509) BuildRequires: trousers-devel %description %{common_description} %gopkg %prep %goprep %build for cmd in tpmd tpmown; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc CONTRIBUTING.md README.md %{_bindir}/* %gopkgfiles %changelog * Sun May 12 21:44:05 CEST 2019 Robert-André Mauchin - 0.2.0-1 - Initial package