diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-21 16:56:34 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-21 16:56:34 +0000 |
commit | fa794ba974334800ea9810fc6423cbf0f9b4897d (patch) | |
tree | 32bd8f6c14d5a5b657b017b84781b12ef07ce379 | |
parent | 7bafbb7429cc4fe72047d78356b7e92859198224 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | golang-oras.spec | 64 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 66 insertions, 0 deletions
@@ -0,0 +1 @@ +/oras-690716b1a4e4424e89305f665e0aae4793a0a763.tar.gz diff --git a/golang-oras.spec b/golang-oras.spec new file mode 100644 index 0000000..9999e91 --- /dev/null +++ b/golang-oras.spec @@ -0,0 +1,64 @@ +# 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 @@ -0,0 +1 @@ +1215cc5ab106c6bfabc82ca3c9dd9246 oras-690716b1a4e4424e89305f665e0aae4793a0a763.tar.gz |