- Update to umoci v0.4.6. umoci has been adopted by the Open Container Initative as a reference implementation of the OCI Image Specification. This will have little impact on the roadmap or scope of umoci, but it does further solidify umoci as a useful piece of "boring container infrastructure" that can be used to build larger systems. > **NOTICE**: As part of the adoption procedure, the import path and module > name of umoci has changed from `github.com/openSUSE/umoci` to > `github.com/opencontainers/umoci`. This means that users of our (still > unstable) Go API will have to change their import paths in order to update > to newer versions of umoci. > > The old GitHub project will contain a snapshot of `v0.4.5` with a few > minor changes to the readme that explain the situation. Go projects which > import import the archived project will receive build warnings that > explain the need to update their import paths. + umoci now builds on MacOS, and we currently run the unit tests on MacOS to hopefully catch core regressions (in the future we will get the integration tests running to catch more possible regressions). opencontainers/umoci#318 * Suppress repeated xattr warnings on destination filesystems that do not support xattrs. opencontainers/umoci#311 * Work around a long-standing issue in our command-line parsing library (see urfave/cli#1152) by disabling argument re-ordering for `umoci config`, which often takes `-`-prefixed flag arguments. opencontainers/umoci#328 * For details, see CHANGELOG.md in the package. OBS-URL: https://build.opensuse.org/request/show/816888 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/umoci?expand=0&rev=49
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package umoci
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
# Project name when using go tooling.
|
|
%define project github.com/opencontainers/umoci
|
|
|
|
Name: umoci
|
|
Version: 0.4.6
|
|
Release: 0
|
|
Summary: Open Container Image manipulation tool
|
|
License: Apache-2.0
|
|
Group: System/Management
|
|
URL: https://umo.ci
|
|
Source0: https://github.com/opencontainers/umoci/releases/download/v%{version}/umoci.tar.xz#/%{name}-%{version}.tar.xz
|
|
Source1: https://github.com/opencontainers/umoci/releases/download/v%{version}/umoci.tar.xz.asc#/%{name}-%{version}.tar.xz.asc
|
|
Source2: https://umo.ci/%{name}.keyring
|
|
BuildRequires: fdupes
|
|
# Due to a limitation in openSUSE's Go packaging we cannot have a BuildRequires
|
|
# for 'golang(API) >= 1.13' here, so just require 1.13 exactly. bsc#1172608
|
|
BuildRequires: go-go-md2man
|
|
BuildRequires: go1.14
|
|
|
|
%description
|
|
umoci modifies Open Container images. umoci is a manipulation tool for OCI
|
|
images. In particular, it is a more complete alternative to oci-image-tools
|
|
provided by the OCI.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export VERSION="$(cat ./VERSION)"
|
|
if [ "$VERSION" != "%{version}" ]; then
|
|
# Append "_suse" if the version is not an upstream one.
|
|
VERSION="%{version}_suse"
|
|
fi
|
|
# Build umoci and docs.
|
|
make VERSION="$VERSION" umoci docs
|
|
|
|
%install
|
|
# Install the binary.
|
|
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
|
|
|
|
# Install all of the docs.
|
|
for file in doc/man/*.1; do
|
|
install -D -m 0644 $file "%{buildroot}/%{_mandir}/man1/$(basename $file)"
|
|
done
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.md CHANGELOG.md doc/*
|
|
%license COPYING
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/umoci*
|
|
|
|
%changelog
|