## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # 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 * Sat Nov 05 2022 Robert-André Mauchin 0.15.1-1 - Uncommitted changes