# Temp disable checks %bcond check 0 %global goipath github.com/opencontainers/umoci Name: umoci Version: 0.5.0 Release: %autorelease Summary: Umoci modifies Open Container images # TODO: document vendor licenses License: Apache-2.0 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 BuildRequires: go-rpm-macros BuildRequires: golang >= 1.23 BuildRequires: go-md2man ExclusiveArch: %{golang_arches_future} # TODO: add Provides for bundled deps %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 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 # TODO: create selinux policy files? %install install -Dpm 0755 -t %{buildroot}%{_bindir} bin/umoci %if %{with check} %check export GOPATH=$PWD cd src/%{goipath} %gotest ./... # Upstream unit test script # sh hack/test-unit.sh %endif %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 %autochangelog