# Generated by go2rpm 1.19.0 %bcond check 1 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/sigstore/cosign %global goipath github.com/sigstore/cosign Version: 3.1.1 %gometa -L -f %global common_description %{expand: Code signing and transparency for containers and binaries.} %global golicenses COPYRIGHT.txt LICENSE %global godocs doc ALUMNI.md CHANGELOG.md CLI.md CODE_OF_CONDUCT.md\\\ CONTRIBUTING.md README.md VERSIONING.md\\\ hack/boilerplate/boilerplate.go.txt release/README.md\\\ specs/ATTESTATION_SPEC.md specs/BUNDLE_SPEC.md\\\ specs/COSIGN_PREDICATE_SPEC.md\\\ specs/COSIGN_VULN_ATTESTATION_SPEC.md\\\ specs/SBOM_SPEC.md specs/SIGNATURE_SPEC.md Name: cosign Release: %autorelease Summary: Code signing and transparency for containers and binaries License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %if %{without bootstrap} %files %license COPYRIGHT.txt LICENSE %doc doc ALUMNI.md CHANGELOG.md CLI.md CODE_OF_CONDUCT.md CONTRIBUTING.md %doc README.md VERSIONING.md hack/boilerplate/boilerplate.go.txt %doc release/README.md specs/ATTESTATION_SPEC.md specs/BUNDLE_SPEC.md %doc specs/COSIGN_PREDICATE_SPEC.md specs/COSIGN_VULN_ATTESTATION_SPEC.md %doc specs/SBOM_SPEC.md specs/SIGNATURE_SPEC.md %{_bindir}/conformance %{_bindir}/cosign %{_bindir}/help %{_bindir}/sample %endif %gopkgfiles %changelog %autochangelog