74 lines
2.8 KiB
RPMSpec
74 lines
2.8 KiB
RPMSpec
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
|
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
|
|
# SPDX-FileContributor: Jvle <keke.oerv@isrc.iscas.ac.cn>
|
|
#
|
|
# SPDX-License-Identifier: MulanPSL-2.0
|
|
|
|
%define _name client
|
|
%define go_import_path github.com/moby/moby/client
|
|
|
|
Name: go-github-moby-moby-client
|
|
Version: 0.5.0
|
|
Release: %autorelease
|
|
Summary: Is a Go client for the Docker Engine API
|
|
License: Apache-2.0
|
|
URL: https://github.com/moby/moby
|
|
#!RemoteAsset: sha256:11f15099d8455cb5a98374730bb11a0c741815e7506607b335108d294e4b0bff
|
|
Source0: https://proxy.golang.org/github.com/moby/moby/client/@v/v%{version}.zip#/%{_name}-%{version}.zip
|
|
BuildArch: noarch
|
|
BuildSystem: golangmodules
|
|
|
|
BuildRequires: go
|
|
BuildRequires: go-rpm-macros
|
|
BuildRequires: unzip
|
|
BuildRequires: go(github.com/containerd/errdefs)
|
|
BuildRequires: go(github.com/containerd/errdefs/pkg)
|
|
BuildRequires: go(github.com/distribution/reference)
|
|
BuildRequires: go(github.com/docker/go-connections)
|
|
BuildRequires: go(github.com/docker/go-units)
|
|
BuildRequires: go(github.com/google/go-cmp)
|
|
BuildRequires: go(github.com/moby/moby/api)
|
|
BuildRequires: go(github.com/moby/term)
|
|
BuildRequires: go(github.com/opencontainers/go-digest)
|
|
BuildRequires: go(github.com/opencontainers/image-spec)
|
|
BuildRequires: go(go.opentelemetry.io/auto/sdk)
|
|
BuildRequires: go(go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp)
|
|
BuildRequires: go(go.opentelemetry.io/otel/trace)
|
|
BuildRequires: go(golang.org/x/time)
|
|
BuildRequires: go(gotest.tools/v3)
|
|
|
|
Provides: go(github.com/moby/moby/client) = %{version}
|
|
|
|
Requires: go(github.com/containerd/errdefs)
|
|
Requires: go(github.com/containerd/errdefs/pkg)
|
|
Requires: go(github.com/distribution/reference)
|
|
Requires: go(github.com/docker/go-connections)
|
|
Requires: go(github.com/docker/go-units)
|
|
Requires: go(github.com/moby/moby/api)
|
|
Requires: go(github.com/moby/term)
|
|
Requires: go(github.com/opencontainers/go-digest)
|
|
Requires: go(github.com/opencontainers/image-spec)
|
|
Requires: go(go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp)
|
|
Requires: go(go.opentelemetry.io/otel/trace)
|
|
Requires: go(golang.org/x/time)
|
|
|
|
%prep -a
|
|
# Go proxy zips contain source below an @version directory; flatten it so
|
|
# GOPATH-mode macros see the requested import path.
|
|
_go_proxy_dir=github.com/moby/moby/client@v%{version}
|
|
[ -d "$_go_proxy_dir" ] || _go_proxy_dir=moby/moby/client@v%{version}
|
|
mv "$_go_proxy_dir"/* .
|
|
rmdir -p "$_go_proxy_dir" github.com/moby/moby github.com/moby github.com moby/moby moby 2>/dev/null || :
|
|
|
|
%description
|
|
Go client for the Docker Engine API
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{go_sys_gopath}/%{go_import_path}
|
|
|
|
%changelog
|
|
%autochangelog
|
|
|