## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.5.0 %bcond_without check %bcond_without bootstrap # https://github.com/moby/buildkit %global goipath github.com/moby/buildkit Version: 0.9.0 %gometa %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif %global common_description %{expand: BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.} %global golicenses LICENSE %global godocs docs examples AUTHORS README.md docs Name: %{goname} Release: %autorelease Summary: Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # Fail if import comment is kept Patch0: 0001-Remove-import-comment.patch # See otel rc2 release note https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md#v100-rc2---2021-07-26 Patch1: 0001-Replace-trace.Link-with-tracesdk.Link.patch %if %{without bootstrap} BuildRequires: golang(github.com/agext/levenshtein) BuildRequires: golang(github.com/BurntSushi/toml) BuildRequires: golang(github.com/containerd/console) BuildRequires: golang(github.com/containerd/containerd) BuildRequires: golang(github.com/containerd/containerd/api/services/content/v1) BuildRequires: golang(github.com/containerd/containerd/api/services/snapshots/v1) BuildRequires: golang(github.com/containerd/containerd/archive) BuildRequires: golang(github.com/containerd/containerd/archive/compression) BuildRequires: golang(github.com/containerd/containerd/cio) BuildRequires: golang(github.com/containerd/containerd/containers) BuildRequires: golang(github.com/containerd/containerd/content) BuildRequires: golang(github.com/containerd/containerd/content/local) BuildRequires: golang(github.com/containerd/containerd/content/proxy) BuildRequires: golang(github.com/containerd/containerd/defaults) BuildRequires: golang(github.com/containerd/containerd/diff) BuildRequires: golang(github.com/containerd/containerd/diff/apply) BuildRequires: golang(github.com/containerd/containerd/diff/walking) BuildRequires: golang(github.com/containerd/containerd/errdefs) BuildRequires: golang(github.com/containerd/containerd/filters) BuildRequires: golang(github.com/containerd/containerd/gc) BuildRequires: golang(github.com/containerd/containerd/images) BuildRequires: golang(github.com/containerd/containerd/images/archive) BuildRequires: golang(github.com/containerd/containerd/images/converter) BuildRequires: golang(github.com/containerd/containerd/images/converter/uncompress) BuildRequires: golang(github.com/containerd/containerd/labels) BuildRequires: golang(github.com/containerd/containerd/leases) BuildRequires: golang(github.com/containerd/containerd/log) BuildRequires: golang(github.com/containerd/containerd/metadata) BuildRequires: golang(github.com/containerd/containerd/mount) BuildRequires: golang(github.com/containerd/containerd/namespaces) BuildRequires: golang(github.com/containerd/containerd/oci) BuildRequires: golang(github.com/containerd/containerd/pkg/dialer) BuildRequires: golang(github.com/containerd/containerd/pkg/seed) BuildRequires: golang(github.com/containerd/containerd/pkg/userns) BuildRequires: golang(github.com/containerd/containerd/platforms) BuildRequires: golang(github.com/containerd/containerd/reference) BuildRequires: golang(github.com/containerd/containerd/remotes) BuildRequires: golang(github.com/containerd/containerd/remotes/docker) BuildRequires: golang(github.com/containerd/containerd/remotes/docker/auth) BuildRequires: golang(github.com/containerd/containerd/remotes/docker/schema1) BuildRequires: golang(github.com/containerd/containerd/remotes/errors) BuildRequires: golang(github.com/containerd/containerd/rootfs) BuildRequires: golang(github.com/containerd/containerd/services/content/contentserver) BuildRequires: golang(github.com/containerd/containerd/snapshots) BuildRequires: golang(github.com/containerd/containerd/snapshots/native) BuildRequires: golang(github.com/containerd/containerd/snapshots/overlay) BuildRequires: golang(github.com/containerd/containerd/snapshots/overlay/overlayutils) BuildRequires: golang(github.com/containerd/containerd/snapshots/proxy) BuildRequires: golang(github.com/containerd/containerd/sys) BuildRequires: golang(github.com/containerd/continuity) BuildRequires: golang(github.com/containerd/continuity/fs) BuildRequires: golang(github.com/containerd/continuity/sysx) BuildRequires: golang(github.com/containerd/fuse-overlayfs-snapshotter) BuildRequires: golang(github.com/containerd/go-cni) BuildRequires: golang(github.com/containerd/go-runc) BuildRequires: golang(github.com/containerd/stargz-snapshotter/fs) BuildRequires: golang(github.com/containerd/stargz-snapshotter/fs/config) BuildRequires: golang(github.com/containerd/stargz-snapshotter/fs/source) BuildRequires: golang(github.com/containerd/stargz-snapshotter/snapshot) BuildRequires: golang(github.com/containerd/typeurl) BuildRequires: golang(github.com/coreos/go-systemd/v22/activation) BuildRequires: golang(github.com/coreos/go-systemd/v22/daemon) BuildRequires: golang(github.com/docker/cli/cli/config) BuildRequires: golang(github.com/docker/cli/cli/config/configfile) BuildRequires: golang(github.com/docker/cli/cli/connhelper/commandconn) BuildRequires: golang(github.com/docker/distribution/reference) BuildRequires: golang(github.com/docker/docker/api/types/container) BuildRequires: golang(github.com/docker/docker/api/types/strslice) BuildRequires: golang(github.com/docker/libnetwork/resolvconf) BuildRequires: golang(github.com/docker/libnetwork/types) BuildRequires: golang(github.com/docker/docker/pkg/archive) BuildRequires: golang(github.com/docker/docker/pkg/chrootarchive) BuildRequires: golang(github.com/docker/docker/pkg/fileutils) BuildRequires: golang(github.com/docker/docker/pkg/idtools) BuildRequires: golang(github.com/docker/docker/pkg/reexec) BuildRequires: golang(github.com/docker/docker/pkg/signal) BuildRequires: golang(github.com/docker/docker/profiles/seccomp) BuildRequires: golang(github.com/docker/docker/testutil/daemon) BuildRequires: golang(github.com/docker/go-connections/nat) BuildRequires: golang(github.com/docker/go-connections/sockets) BuildRequires: golang(github.com/gofrs/flock) BuildRequires: golang(github.com/gogo/googleapis/google/rpc) BuildRequires: golang(github.com/gogo/protobuf/gogoproto) BuildRequires: golang(github.com/gogo/protobuf/proto) BuildRequires: golang(github.com/gogo/protobuf/sortkeys) BuildRequires: golang(github.com/gogo/protobuf/types) BuildRequires: golang(github.com/golang/protobuf/jsonpb) BuildRequires: golang(github.com/golang/protobuf/proto) BuildRequires: golang(github.com/golang/protobuf/ptypes/any) BuildRequires: golang(github.com/golang/protobuf/ptypes/timestamp) BuildRequires: golang(github.com/google/shlex) BuildRequires: golang(github.com/grpc-ecosystem/go-grpc-middleware) BuildRequires: golang(github.com/hashicorp/go-immutable-radix) BuildRequires: golang(github.com/hashicorp/golang-lru/simplelru) BuildRequires: golang(github.com/mitchellh/hashstructure) BuildRequires: golang(github.com/moby/locker) BuildRequires: golang(github.com/morikuni/aec) BuildRequires: golang(github.com/opencontainers/go-digest) BuildRequires: golang(github.com/opencontainers/image-spec/identity) BuildRequires: golang(github.com/opencontainers/image-spec/specs-go) BuildRequires: golang(github.com/opencontainers/image-spec/specs-go/v1) BuildRequires: golang(github.com/opencontainers/runc/libcontainer/user) BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go) BuildRequires: golang(github.com/opencontainers/selinux/go-selinux) BuildRequires: golang(github.com/opencontainers/selinux/go-selinux/label) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/pkg/profile) BuildRequires: golang(github.com/serialx/hashring) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(github.com/tonistiigi/fsutil) BuildRequires: golang(github.com/tonistiigi/fsutil/copy) BuildRequires: golang(github.com/tonistiigi/fsutil/types) BuildRequires: golang(github.com/tonistiigi/go-actions-cache) BuildRequires: golang(github.com/tonistiigi/units) BuildRequires: golang(github.com/tonistiigi/vt100) BuildRequires: golang(github.com/urfave/cli) BuildRequires: golang(go.etcd.io/bbolt) BuildRequires: golang(go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc) BuildRequires: golang(go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace) BuildRequires: golang(go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp) BuildRequires: golang(go.opentelemetry.io/otel) BuildRequires: golang(go.opentelemetry.io/otel/attribute) BuildRequires: golang(go.opentelemetry.io/otel/codes) BuildRequires: golang(go.opentelemetry.io/otel/exporters/jaeger) BuildRequires: golang(go.opentelemetry.io/otel/exporters/otlp/otlptrace) BuildRequires: golang(go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc) BuildRequires: golang(go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp) BuildRequires: golang(go.opentelemetry.io/otel/propagation) BuildRequires: golang(go.opentelemetry.io/otel/sdk/instrumentation) BuildRequires: golang(go.opentelemetry.io/otel/sdk/resource) BuildRequires: golang(go.opentelemetry.io/otel/sdk/trace) BuildRequires: golang(go.opentelemetry.io/otel/semconv/v1.4.0) BuildRequires: golang(go.opentelemetry.io/otel/trace) BuildRequires: golang(go.opentelemetry.io/proto/otlp/collector/trace/v1) BuildRequires: golang(go.opentelemetry.io/proto/otlp/common/v1) BuildRequires: golang(go.opentelemetry.io/proto/otlp/resource/v1) BuildRequires: golang(go.opentelemetry.io/proto/otlp/trace/v1) BuildRequires: golang(golang.org/x/crypto/nacl/sign) BuildRequires: golang(golang.org/x/crypto/ssh) BuildRequires: golang(golang.org/x/crypto/ssh/agent) BuildRequires: golang(golang.org/x/net/context) BuildRequires: golang(golang.org/x/net/http2) BuildRequires: golang(golang.org/x/net/trace) BuildRequires: golang(golang.org/x/sync/errgroup) BuildRequires: golang(golang.org/x/sync/semaphore) BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: golang(golang.org/x/time/rate) BuildRequires: golang(google.golang.org/genproto/googleapis/rpc/status) BuildRequires: golang(google.golang.org/grpc) BuildRequires: golang(google.golang.org/grpc/backoff) BuildRequires: golang(google.golang.org/grpc/codes) BuildRequires: golang(google.golang.org/grpc/credentials) BuildRequires: golang(google.golang.org/grpc/health) BuildRequires: golang(google.golang.org/grpc/health/grpc_health_v1) BuildRequires: golang(google.golang.org/grpc/metadata) BuildRequires: golang(google.golang.org/grpc/status) %if %{with check} # Tests BuildRequires: golang(github.com/containerd/continuity/fs/fstest) BuildRequires: golang(github.com/google/go-cmp/cmp) %endif %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %patch1 -p1 # Unmove this in a future version of moby/moby # See https://github.com/moby/libnetwork/issues/2522 sed -i "s|github.com/docker/docker/libnetwork/resolvconf|github.com/docker/libnetwork/resolvconf|" $(find . -iname "*.go" -type f) sed -i "s|github.com/docker/docker/libnetwork/types|github.com/docker/libnetwork/types|" $(find . -iname "*.go" -type f) %if %{without bootstrap} %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check for test in "TestJobsIntegration" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done # cache: operation not permitted %gocheck -t cmd \ -d cache/contenthash \ -d client \ -d frontend \ -d frontend/dockerfile \ -t source \ -d cache %endif %endif %if %{without bootstrap} %files %license LICENSE %doc docs examples AUTHORS README.md docs %{_bindir}/* %endif %gopkgfiles %changelog * Mon Jan 31 2022 Robert-André Mauchin 0.9.0-3 - Uncommitted changes * Thu Jan 20 2022 Fedora Release Engineering 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Aug 03 2021 Robert-André Mauchin 0.9.0-1 - Update to 0.9.0 Close: rhbz#1742419, rhbz#1987535 * Fri Jun 11 20:28:24 CEST 2021 Robert-André Mauchin - 0.8.2-3 - Use new github.com/containerd/fuse-overlayfs-snapshotter import path * Fri Mar 19 2021 Olivier Lemasle - 0.8.2-2 - Adapt to new version of containerd * Sun Mar 07 2021 Olivier Lemasle - 0.8.2-1 - Update to 0.8.2 * Fri Jan 29 2021 Olivier Lemasle - 0.8.1-2 - Unbootstrap * Fri Jan 29 2021 Olivier Lemasle - 0.8.1-1 - Update to 0.8.1 - bootstrap * Tue Jan 26 2021 Fedora Release Engineering - 0.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 23:14:10 CEST 2020 Robert-André Mauchin - 0.7.2-1 - Update to 0.7.2 * Sat Aug 01 2020 Fedora Release Engineering - 0.6.4-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Apr 01 2020 Olivier Lemasle - 0.6.4-1 - Update to upstream 0.6.4 * Wed Jan 29 2020 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jul 04 15:43:01 CEST 2019 Robert-André Mauchin - 0.5.1-1.20190704git21034f4 - Release 0.5.1, commit 21034f4234c5fdbdd7f25d3373e12bd0b950e4db * Sun May 05 18:43:46 CEST 2019 Robert-André Mauchin - 0.5.0-1 - Initial package