# Generated by go2rpm 1.8.2 %bcond_without check # https://github.com/oras-project/oras %global goipath oras.land/oras %global forgeurl https://github.com/oras-project/oras Version: 0.15.1 %global commit 690716b1a4e4424e89305f665e0aae4793a0a763 %gometa -f %global goaltipaths github.com/deislabs/oras %global common_description %{expand: Work with OCI registries, but for secure supply chain - managing content like artifacts, images, SBOM.} %global golicenses LICENSE %global godocs CODE_OF_CONDUCT.md OWNERS.md README.md Name: %{goname} Release: %autorelease Summary: Work with OCI registries, but for secure supply chain License: Apache-2.0 URL: %{gourl} Source: %{gosource} BuildRequires: golang(oras.land/oras-go/v2) %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; 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 CODE_OF_CONDUCT.md OWNERS.md README.md %{_bindir}/oras %gopkgfiles %changelog %autochangelog