# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) # SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors # SPDX-FileContributor: Jvle # # SPDX-License-Identifier: MulanPSL-2.0 %define _name api %define go_import_path github.com/moby/moby/api Name: go-github-moby-moby-api Version: 1.55.0 Release: %autorelease Summary: API types for Moby License: Apache-2.0 URL: https://github.com/moby/moby #!RemoteAsset: sha256:5e6428e58b17018a8e1ecffb176dbdffc7678b97f7bf4f50fd3f814747de4847 Source0: https://proxy.golang.org/github.com/moby/moby/api/@v/v%{version}.zip#/%{_name}-%{version}.zip BuildArch: noarch BuildSystem: golangmodules BuildRequires: go BuildRequires: go-rpm-macros BuildRequires: unzip BuildRequires: go(github.com/docker/go-units) BuildRequires: go(github.com/google/go-cmp) BuildRequires: go(github.com/moby/docker-image-spec) BuildRequires: go(github.com/opencontainers/go-digest) BuildRequires: go(github.com/opencontainers/image-spec) BuildRequires: go(gotest.tools/v3) BuildRequires: go(pgregory.net/rapid) Provides: go(github.com/moby/moby/api) = %{version} Requires: go(github.com/docker/go-units) Requires: go(github.com/moby/docker-image-spec) Requires: go(github.com/opencontainers/go-digest) Requires: go(github.com/opencontainers/image-spec) %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/api@v%{version} [ -d "$_go_proxy_dir" ] || _go_proxy_dir=moby/moby/api@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 API types for Moby. %files %doc README.md %license LICENSE %{go_sys_gopath}/%{go_import_path} %changelog %autochangelog