golang-github-containerd-rpm/golang-github-containerd.spec

212 lines
9.5 KiB
RPMSpec
Raw Normal View History

2025-01-07 13:37:36 +01:00
## START: Set by rpmautospec
## (rpmautospec version 0.6.3)
## 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.11.0
%global debug_package %{nil}
%bcond_without check
%bcond_with bootstrap
# https://github.com/containerd/containerd
%global goipath github.com/containerd/containerd
Version: 1.7.24
%gometa -L
%global common_description %{expand:
An open and reliable container runtime.}
%global golicenses LICENSE NOTICE
%global godocs docs ROADMAP.md SCOPE.md code-of-conduct.md\\\
BUILDING.md README.md RELEASES.md
%global godevelheader %{expand:
# This package exists as a temporary measure to prepare for the de-vendoring of
# the docker stack.
# Once the rest of the containerd/docker/moby ecosystem is de-vendored, this
# package will be retired.
# Therefore, it's marked as deprecated() so nothing new will depend on it.
Provides: deprecated()
# Replace old containerd-devel package
Provides: containerd-devel = %{?epoch:%{epoch}:}%{version}-%{release}
Obsoletes: containerd-devel < 1.6.23-6
}
Name: golang-github-containerd
Release: %autorelease
Summary: An open and reliable container runtime
License: Apache-2.0
URL: %{gourl}
Source: %{gosource}
# Carve out code requiring github.com/Microsoft/hcsshim
Patch0: 0001-Revert-commit-for-Windows-metrics.patch
Patch1: 0002-Remove-windows-only-dep.patch
# Backport for github.com/containerd/typeurl update
# To use with latest go-runc
Patch2: 0001-Add-reaper-StartLocked.patch
%if %{without bootstrap}
BuildRequires: golang(github.com/containerd/aufs/plugin)
%endif
BuildRequires: golang(github.com/containerd/btrfs)
BuildRequires: golang(github.com/containerd/cgroups)
BuildRequires: golang(github.com/containerd/cgroups/stats/v1)
BuildRequires: golang(github.com/containerd/cgroups/v2)
BuildRequires: golang(github.com/containerd/cgroups/v2/stats)
BuildRequires: golang(github.com/containerd/console)
BuildRequires: golang(github.com/containerd/continuity)
BuildRequires: golang(github.com/containerd/continuity/fs)
BuildRequires: golang(github.com/containerd/continuity/fs/fstest)
BuildRequires: golang(github.com/containerd/continuity/sysx)
BuildRequires: golang(github.com/containerd/fifo)
BuildRequires: golang(github.com/containerd/go-cni)
BuildRequires: golang(github.com/containerd/go-runc)
BuildRequires: golang(github.com/containerd/imgcrypt)
BuildRequires: golang(github.com/containerd/imgcrypt/images/encryption)
BuildRequires: golang(github.com/containerd/nri)
BuildRequires: golang(github.com/containerd/nri/types/v1)
BuildRequires: golang(github.com/containerd/ttrpc)
BuildRequires: golang(github.com/containerd/ttrpc/plugin)
BuildRequires: golang(github.com/containerd/typeurl)
%if %{without bootstrap}
BuildRequires: golang(github.com/containerd/zfs/plugin)
%endif
BuildRequires: golang(github.com/containernetworking/plugins/pkg/ns)
BuildRequires: golang(github.com/coreos/go-systemd/v22/daemon)
BuildRequires: golang(github.com/davecgh/go-spew/spew)
BuildRequires: golang(github.com/docker/go-events)
BuildRequires: golang(github.com/docker/go-metrics)
BuildRequires: golang(github.com/docker/go-units)
BuildRequires: golang(github.com/emicklei/go-restful)
BuildRequires: golang(github.com/fsnotify/fsnotify)
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/protoc-gen-gogo/descriptor)
BuildRequires: golang(github.com/gogo/protobuf/protoc-gen-gogo/generator)
BuildRequires: golang(github.com/gogo/protobuf/sortkeys)
BuildRequires: golang(github.com/gogo/protobuf/types)
BuildRequires: golang(github.com/gogo/protobuf/vanity)
BuildRequires: golang(github.com/gogo/protobuf/vanity/command)
BuildRequires: golang(github.com/google/uuid)
BuildRequires: golang(github.com/grpc-ecosystem/go-grpc-middleware)
BuildRequires: golang(github.com/grpc-ecosystem/go-grpc-prometheus)
BuildRequires: golang(github.com/hashicorp/go-multierror)
BuildRequires: golang(github.com/imdario/mergo)
BuildRequires: golang(github.com/intel/goresctrl/pkg/rdt)
BuildRequires: golang(github.com/klauspost/compress/zstd)
# BuildRequires: golang(github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options)
# BuildRequires: golang(github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/stats)
BuildRequires: golang(github.com/moby/locker)
BuildRequires: golang(github.com/moby/sys/mountinfo)
BuildRequires: golang(github.com/moby/sys/signal)
BuildRequires: golang(github.com/moby/sys/symlink)
BuildRequires: golang(github.com/opencontainers/go-digest)
BuildRequires: golang(github.com/opencontainers/go-digest/digestset)
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/pelletier/go-toml)
BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
BuildRequires: golang(github.com/sirupsen/logrus)
BuildRequires: golang(github.com/stretchr/testify/require)
BuildRequires: golang(github.com/tchap/go-patricia/patricia)
BuildRequires: golang(github.com/urfave/cli)
BuildRequires: golang(github.com/vishvananda/netlink)
BuildRequires: golang(go.etcd.io/bbolt)
BuildRequires: golang(go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc)
BuildRequires: golang(go.opentelemetry.io/otel)
BuildRequires: golang(go.opentelemetry.io/otel/attribute)
BuildRequires: golang(go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc)
BuildRequires: golang(go.opentelemetry.io/otel/propagation)
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(golang.org/x/net/context)
BuildRequires: golang(golang.org/x/net/context/ctxhttp)
BuildRequires: golang(golang.org/x/sync/errgroup)
BuildRequires: golang(golang.org/x/sync/semaphore)
BuildRequires: golang(golang.org/x/sys/execabs)
BuildRequires: golang(golang.org/x/sys/unix)
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/credentials/insecure)
BuildRequires: golang(google.golang.org/grpc/grpclog)
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)
BuildRequires: golang(gotest.tools/v3/assert)
BuildRequires: golang(gotest.tools/v3/assert/cmp)
BuildRequires: golang(k8s.io/api/core/v1)
BuildRequires: golang(k8s.io/apimachinery/pkg/api/errors)
BuildRequires: golang(k8s.io/apimachinery/pkg/api/resource)
BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1)
BuildRequires: golang(k8s.io/apimachinery/pkg/types)
BuildRequires: golang(k8s.io/apimachinery/pkg/util/httpstream)
BuildRequires: golang(k8s.io/apimachinery/pkg/util/httpstream/spdy)
BuildRequires: golang(k8s.io/apimachinery/pkg/util/net)
BuildRequires: golang(k8s.io/apimachinery/pkg/util/remotecommand)
BuildRequires: golang(k8s.io/apimachinery/pkg/util/runtime)
BuildRequires: golang(k8s.io/apimachinery/pkg/util/sets)
BuildRequires: golang(k8s.io/apiserver/pkg/server/httplog)
BuildRequires: golang(k8s.io/apiserver/pkg/util/wsstream)
BuildRequires: golang(k8s.io/client-go/tools/remotecommand)
BuildRequires: golang(k8s.io/client-go/util/cert)
BuildRequires: golang(k8s.io/component-base/logs/logreduction)
BuildRequires: golang(k8s.io/cri-api/pkg/apis/runtime/v1)
BuildRequires: golang(k8s.io/cri-api/pkg/apis/runtime/v1alpha2)
BuildRequires: golang(k8s.io/klog/v2)
BuildRequires: golang(k8s.io/utils/clock)
BuildRequires: golang(k8s.io/utils/exec)
%if %{with check}
# Tests
BuildRequires: golang(github.com/containerd/continuity/testutil)
BuildRequires: golang(github.com/containerd/continuity/testutil/loopback)
BuildRequires: golang(github.com/google/go-cmp/cmp)
BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts)
BuildRequires: golang(github.com/stretchr/testify/assert)
BuildRequires: golang(google.golang.org/protobuf/proto)
BuildRequires: golang(k8s.io/utils/clock/testing)
%endif
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1
%install
%gopkginstall
%if %{with check}
%check
%gocheck -d pkg/cri/server -t integration -d platforms
%endif
%gopkgfiles
%changelog
## START: Generated by rpmautospec
* Fri Apr 12 2024 Maxwell G <maxwell@gtmx.me> - 1.6.23-1
- Initial package (rhbz#2274601).
## END: Generated by rpmautospec