## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 # https://github.com/opencontainers/umoci %global goipath github.com/opencontainers/umoci Name: umoci Version: 0.5.0 Release: %autorelease Summary: Umoci modifies Open Container images # Main source code is Apache-2.0 # see comments above bundled provides for a breakdown of the rest License: Apache-2.0 AND MIT AND BSD-2-Clause AND BSD-3-Clause AND ISC URL: https://umo.ci Source0: https://%{goipath}/archive/v%{version}/umoci-%{version}.tar.gz Source1: umoci-%{version}-vendor.tar.gz Source2: create-vendor-tarball.sh Patch10: 0001-tests-fix-failures-on-SELinux-enabled-systems.patch BuildRequires: go-rpm-macros BuildRequires: golang >= 1.23 BuildRequires: go-md2man ExclusiveArch: %{golang_arches_future} # Apache-2.0: Provides: bundled(golang(github.com/AdaLogics/go-fuzz-headers)) = 43070de Provides: bundled(golang(github.com/docker/go-units)) = 0.5.0 Provides: bundled(golang(github.com/moby/sys/user)) = 0.4.0 Provides: bundled(golang(github.com/moby/sys/userns)) = 0.1.0 Provides: bundled(golang(github.com/opencontainers/go-digest)) = 1.0.0 Provides: bundled(golang(github.com/opencontainers/image-spec)) = 1.0.2 Provides: bundled(golang(github.com/opencontainers/runtime-spec)) = 1c3f411 Provides: bundled(golang(github.com/rootless-containers/proto/go-proto)) = 4cd87eb # Apache-2.0 AND MIT: Provides: bundled(golang(gopkg.in/yaml.v3)) = 3.0.1 # BSD-2-Clause: Provides: bundled(golang(github.com/pkg/errors)) = 0.9.1 Provides: bundled(golang(github.com/russross/blackfriday/v2)) = 2.1.0 Provides: bundled(golang(gopkg.in/check.v1)) = 8fa4692 # BSD-3-Clause: Provides: bundled(golang(github.com/cyphar/filepath-securejoin)) = 0.4.1 Provides: bundled(golang(github.com/klauspost/compress)) = 1.11.3 Provides: bundled(golang(github.com/klauspost/pgzip)) = 1.2.6 Provides: bundled(golang(github.com/pmezard/go-difflib)) = 1.0.0 Provides: bundled(golang(github.com/vbatts/go-mtree)) = 0.5.4 Provides: bundled(golang(golang.org/x/crypto)) = 0.37.0 Provides: bundled(golang(golang.org/x/sys)) = 0.33.0 Provides: bundled(golang(google.golang.org/protobuf)) = 1.36.6 # ISC: Provides: bundled(golang(github.com/davecgh/go-spew)) = 1.1.1 # MIT: Provides: bundled(golang(github.com/apex/log)) = 1.9.0 Provides: bundled(golang(github.com/blang/semver/v4)) = 4.0.0 Provides: bundled(golang(github.com/cpuguy83/go-md2man/v2)) = 2.0.4 Provides: bundled(golang(github.com/fatih/color)) = 1.17.0 Provides: bundled(golang(github.com/kr/text)) = 0.2.0 Provides: bundled(golang(github.com/mattn/go-colorable)) = 0.1.13 Provides: bundled(golang(github.com/mattn/go-isatty)) = 0.0.20 Provides: bundled(golang(github.com/mohae/deepcopy)) = c48cc78 Provides: bundled(golang(github.com/niemeyer/pretty)) = a10e7ca Provides: bundled(golang(github.com/sirupsen/logrus)) = 1.9.3 Provides: bundled(golang(github.com/stretchr/testify)) = 1.10.0 Provides: bundled(golang(github.com/urfave/cli)) = 1.22.12 %description %{expand: umoci (pronounced /uːmoˈʨi/ or approximately "oo-mo-tchee") is a reference implementation of the OCI image specification and provides users with the ability to create, manipulate, and otherwise interact with container images. It is designed to be as small and unopinonated as possible, so as to act as a foundation for larger systems to be built on top of.} %prep %autosetup -a 1 -p 1 mkdir -p src/$(dirname %{goipath}) ln -s $PWD src/%{goipath} %build export GOPATH=$PWD export LDFLAGS="-X %{goipath}.CustomVersion=v%{version}" %gobuild -o bin/umoci %{goipath}/cmd/umoci # TODO: generate manpages %install install -Dpm 0755 -t %{buildroot}%{_bindir} bin/umoci %check export GOPATH=$PWD cd src/%{goipath} %gotest ./... %files %license COPYING contrib/logo/LICENSE %doc doc CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md GOVERNANCE.md README.md %doc RELEASES.md .site/README.md oci/README.md oci/cas/README.md %doc oci/config/convert/README.md oci/config/generate/README.md %doc oci/layer/README.md %{_bindir}/umoci %changelog ## START: Generated by rpmautospec * Tue Aug 26 2025 John Doe - 0.5.0-1 - Uncommitted changes ## END: Generated by rpmautospec