## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %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.19.0 %bcond check 1 %global goipath oras.land/oras %global forgeurl https://github.com/oras-project/oras Version: 1.4.0 %gometa -L -f Name: oras Release: %autorelease Summary: OCI registry client - managing content like artifacts, images, packages # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description OCI registry client - managing content like artifacts, images, packages. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done mkdir -p completions/bash completions/fish %{gobuilddir}/bin/oras completion bash >completions/bash/oras %{gobuilddir}/bin/oras completion fish >completions/fish/oras.fish %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dp -m 0644 -t %{buildroot}%{_datadir}/bash-completion/completions completions/bash/* install -Dp -m 0644 -t %{buildroot}%{_datadir}/fish/vendor_completions.d completions/fish/*.fish %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc docs CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md OWNERS.md README.md %doc RELEASING.md SECURITY.md %{_bindir}/oras %{_datadir}/bash-completion/completions/oras %{_datadir}/fish/vendor_completions.d/oras.fish %changelog ## START: Generated by rpmautospec * Tue Nov 17 2026 Daniel Hast - 1.4.0-1 - chore: bump version to 1.4.0 * Fri Nov 13 2026 Daniel Hast <32797673+HastD@users.noreply.github.com> - 1.3.6-2 - feat: install bash and fish completions (#1) * Mon Nov 09 2026 Daniel Hast - 1.3.6-1 - Initial commit ## END: Generated by rpmautospec