2021-06-14 14:01:16 +00:00
|
|
|
%global with_debug 1
|
2018-05-18 15:18:40 +00:00
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%if 0%{?with_debug}
|
2018-05-17 03:58:22 +00:00
|
|
|
%global _find_debuginfo_dwz_opts %{nil}
|
2018-02-06 22:05:10 +00:00
|
|
|
%global _dwz_low_mem_die_limit 0
|
|
|
|
%else
|
2018-08-12 03:03:46 +00:00
|
|
|
%global debug_package %{nil}
|
2018-02-06 22:05:10 +00:00
|
|
|
%endif
|
|
|
|
|
2023-05-24 13:41:45 +00:00
|
|
|
# RHEL 8's default %%gobuild macro doesn't account for the BUILDTAGS variable, so we
|
|
|
|
# set it separately here and do not depend on RHEL 8's go-srpm-macros package.
|
|
|
|
%if !0%{?fedora} && 0%{?rhel} <= 8
|
|
|
|
%define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};
|
|
|
|
%endif
|
|
|
|
|
2023-04-24 23:16:03 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
%bcond_with btrfs
|
2023-05-24 13:41:45 +00:00
|
|
|
# _user_tmpfiles.d currently undefined on rhel
|
|
|
|
%global _user_tmpfilesdir %{_datadir}/user-tmpfiles.d
|
2023-04-24 23:16:03 +00:00
|
|
|
%else
|
|
|
|
%bcond_without btrfs
|
|
|
|
%endif
|
|
|
|
|
2023-05-24 13:41:45 +00:00
|
|
|
# RHEL 8 needs /usr/bin/python3 to build docs
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
%bcond_without python3
|
|
|
|
%else
|
|
|
|
%bcond_with python3
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 10
|
|
|
|
%bcond_without modules_load
|
|
|
|
%else
|
|
|
|
%bcond_with modules_load
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
|
|
|
%bcond_without go_rpm_macros
|
|
|
|
%else
|
|
|
|
%bcond_with go_rpm_macros
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# copr_username is only set on copr environments, not on others like koji
|
|
|
|
%if "%{?copr_username}" != "rhcontainerbot"
|
|
|
|
%bcond_with copr
|
|
|
|
%else
|
|
|
|
%bcond_without copr
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?centos} <= 8
|
|
|
|
%bcond_without changelog
|
|
|
|
%else
|
|
|
|
%bcond_with changelog
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%bcond_without golang_arches_future
|
|
|
|
%else
|
|
|
|
%bcond_with golang_arches_future
|
|
|
|
%endif
|
|
|
|
|
2018-03-27 14:24:36 +00:00
|
|
|
%global provider github
|
|
|
|
%global provider_tld com
|
2018-08-30 13:25:40 +00:00
|
|
|
%global project containers
|
2020-07-28 14:39:13 +00:00
|
|
|
%global repo %{name}
|
2020-08-31 14:04:00 +00:00
|
|
|
# https://github.com/containers/%%{name}
|
2020-05-12 18:38:05 +00:00
|
|
|
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
|
%global git0 https://%{import_path}
|
2018-03-27 14:24:36 +00:00
|
|
|
|
2021-06-08 14:30:35 +00:00
|
|
|
# dnsname
|
2019-10-18 13:02:37 +00:00
|
|
|
%global repo_plugins dnsname
|
2020-08-31 14:04:00 +00:00
|
|
|
# https://github.com/containers/dnsname
|
2021-06-08 14:30:35 +00:00
|
|
|
%global import_path_plugins %{provider}.%{provider_tld}/%{project}/%{repo_plugins}
|
2019-10-18 13:02:37 +00:00
|
|
|
%global git_plugins https://%{import_path_plugins}
|
2021-09-15 17:04:02 +00:00
|
|
|
%global commit_plugins 18822f9a4fb35d1349eb256f4cd2bfd372474d84
|
2019-10-18 13:02:37 +00:00
|
|
|
|
2021-08-16 12:52:47 +00:00
|
|
|
# gvproxy
|
|
|
|
%global repo_gvproxy gvisor-tap-vsock
|
|
|
|
# https://github.com/containers/gvisor-tap-vsock
|
2023-04-25 18:19:10 +00:00
|
|
|
%global import_path_gvproxy %{provider}.%{provider_tld}/%{project}/%{repo_gvproxy}
|
2021-08-16 12:52:47 +00:00
|
|
|
%global git_gvproxy https://%{import_path_gvproxy}
|
2023-01-19 13:13:17 +00:00
|
|
|
%global commit_gvproxy aab0ac9367fc5142f5857c36ac2352bcb3c60ab7
|
2021-08-16 12:52:47 +00:00
|
|
|
|
2023-05-24 13:41:45 +00:00
|
|
|
# podman
|
|
|
|
%global git0 https://github.com/containers/%{name}
|
2019-07-30 23:27:52 +00:00
|
|
|
|
2022-01-28 21:02:15 +00:00
|
|
|
Name: podman
|
2023-05-24 13:41:45 +00:00
|
|
|
%if %{with copr}
|
|
|
|
Epoch: 101
|
|
|
|
%else
|
2023-01-23 10:34:03 +00:00
|
|
|
Epoch: 5
|
2023-05-24 13:41:45 +00:00
|
|
|
%endif
|
|
|
|
# DO NOT TOUCH the Version string!
|
|
|
|
# The TRUE source of this specfile is:
|
|
|
|
# https://github.com/containers/podman/blob/main/rpm/podman.spec
|
|
|
|
# If that's what you're reading, Version must be 0, and will be updated by Packit for
|
|
|
|
# copr and koji builds.
|
|
|
|
# If you're reading this on dist-git, the version is automatically filled in by Packit.
|
|
|
|
Version: 4.5.0
|
2023-03-06 10:52:21 +00:00
|
|
|
License: Apache-2.0 and BSD-2-Clause and BSD-3-Clause and ISC and MIT and MPL-2.0
|
2022-02-17 19:40:27 +00:00
|
|
|
Release: %autorelease
|
2023-05-24 13:41:45 +00:00
|
|
|
%if %{with golang_arches_future}
|
2023-02-09 10:25:12 +00:00
|
|
|
ExclusiveArch: %{golang_arches_future}
|
2023-05-24 13:41:45 +00:00
|
|
|
%else
|
|
|
|
ExclusiveArch: aarch64 ppc64le s390x x86_64
|
|
|
|
%endif
|
2018-03-27 14:24:36 +00:00
|
|
|
Summary: Manage Pods, Containers and Container Images
|
2019-05-24 14:43:28 +00:00
|
|
|
URL: https://%{name}.io/
|
2022-10-07 14:08:46 +00:00
|
|
|
# All SourceN files fetched from upstream
|
2023-05-24 13:41:45 +00:00
|
|
|
Source0: %{git0}/archive/v%{version}.tar.gz
|
2022-05-18 19:16:30 +00:00
|
|
|
Source1: %{git_plugins}/archive/%{commit_plugins}/%{repo_plugins}-%{commit_plugins}.tar.gz
|
|
|
|
Source2: %{git_gvproxy}/archive/%{commit_gvproxy}/%{repo_gvproxy}-%{commit_gvproxy}.tar.gz
|
2020-01-06 15:54:08 +00:00
|
|
|
Provides: %{name}-manpages = %{epoch}:%{version}-%{release}
|
2023-05-24 13:41:45 +00:00
|
|
|
BuildRequires: %{_bindir}/envsubst
|
2022-05-18 19:16:30 +00:00
|
|
|
BuildRequires: go-md2man
|
2023-04-24 23:16:03 +00:00
|
|
|
%if %{with btrfs}
|
2021-04-05 14:38:31 +00:00
|
|
|
BuildRequires: btrfs-progs-devel
|
2023-04-24 23:16:03 +00:00
|
|
|
%endif
|
2020-12-03 16:12:40 +00:00
|
|
|
BuildRequires: gcc
|
2018-04-16 03:12:23 +00:00
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: glibc-static
|
2022-08-19 20:13:59 +00:00
|
|
|
BuildRequires: golang
|
2021-01-11 19:37:44 +00:00
|
|
|
BuildRequires: git-core
|
2023-05-24 13:41:45 +00:00
|
|
|
%if %{with go_rpm_macros}
|
2021-06-14 14:01:16 +00:00
|
|
|
BuildRequires: go-rpm-macros
|
2023-05-24 13:41:45 +00:00
|
|
|
%endif
|
2018-04-16 03:12:23 +00:00
|
|
|
BuildRequires: gpgme-devel
|
|
|
|
BuildRequires: libassuan-devel
|
|
|
|
BuildRequires: libgpg-error-devel
|
|
|
|
BuildRequires: libseccomp-devel
|
|
|
|
BuildRequires: libselinux-devel
|
2021-09-23 19:11:45 +00:00
|
|
|
BuildRequires: shadow-utils-subid-devel
|
2018-04-16 03:12:23 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: make
|
2021-04-05 14:38:31 +00:00
|
|
|
BuildRequires: ostree-devel
|
2019-03-19 11:55:36 +00:00
|
|
|
BuildRequires: systemd
|
2019-05-24 14:43:28 +00:00
|
|
|
BuildRequires: systemd-devel
|
2023-05-24 13:41:45 +00:00
|
|
|
%if %{with python3}
|
|
|
|
BuildRequires: python3
|
|
|
|
%endif
|
2022-10-07 14:08:46 +00:00
|
|
|
Requires: catatonit
|
2023-04-03 11:20:02 +00:00
|
|
|
Requires: conmon >= 2:2.1.7-2
|
2023-04-12 13:25:24 +00:00
|
|
|
%if 0%{?fedora} > 38
|
|
|
|
Requires: containers-common-extra >= 4:1-90
|
2022-10-07 14:08:46 +00:00
|
|
|
%else
|
2023-04-12 13:25:24 +00:00
|
|
|
%if 0%{?fedora} == 38
|
|
|
|
Requires: containers-common-extra >= 4:1-89
|
2022-10-07 14:08:46 +00:00
|
|
|
%else
|
2023-04-12 13:25:24 +00:00
|
|
|
Requires: containers-common-extra >= 4:1-82
|
2022-10-07 14:08:46 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
2022-07-06 17:41:29 +00:00
|
|
|
Recommends: %{name}-gvproxy = %{epoch}:%{version}-%{release}
|
2023-02-09 10:25:12 +00:00
|
|
|
Provides: %{name}-quadlet
|
|
|
|
Obsoletes: %{name}-quadlet <= 5:4.4.0-1
|
|
|
|
Provides: %{name}-quadlet = %{epoch}:%{version}-%{release}
|
2023-05-24 13:41:45 +00:00
|
|
|
# TODO: need to find the right action in packit propose-downstream to update
|
|
|
|
# the goimports here. None of the actions seem to work so far.
|
|
|
|
# DO NOT DELETE BELOW LINE - used for updating downstream goimports
|
2018-02-06 22:05:10 +00:00
|
|
|
# vendored libraries
|
2023-05-24 13:41:45 +00:00
|
|
|
Provides: bundled(golang(github.com/BurntSushi/toml))
|
|
|
|
Provides: bundled(golang(github.com/blang/semver/v4))
|
|
|
|
Provides: bundled(golang(github.com/buger/goterm))
|
|
|
|
Provides: bundled(golang(github.com/checkpoint-restore/checkpointctl/lib))
|
|
|
|
Provides: bundled(golang(github.com/checkpoint-restore/go-criu/v6))
|
|
|
|
Provides: bundled(golang(github.com/checkpoint-restore/go-criu/v6/rpc))
|
|
|
|
Provides: bundled(golang(github.com/checkpoint-restore/go-criu/v6/stats))
|
|
|
|
Provides: bundled(golang(github.com/container-orchestrated-devices/container-device-interface/pkg/cdi))
|
|
|
|
Provides: bundled(golang(github.com/containernetworking/cni/pkg/types/040))
|
|
|
|
Provides: bundled(golang(github.com/containernetworking/plugins/pkg/ns))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/copier))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/define))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/imagebuildah))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/pkg/chrootuser))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/pkg/cli))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/pkg/overlay))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/pkg/parse))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/pkg/util))
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah/util))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libimage))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libimage/define))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libnetwork/cni))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libnetwork/etchosts))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libnetwork/network))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libnetwork/resolvconf))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libnetwork/types))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libnetwork/util))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/apparmor))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/auth))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/capabilities))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/cgroups))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/chown))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/completion))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/config))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/download))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/filters))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/flag))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/hooks))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/hooks/exec))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/machine))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/netns))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/parse))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/report))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/resize))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/seccomp))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/secrets))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/ssh))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/subscriptions))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/sysinfo))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/umask))
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg/util))
|
|
|
|
Provides: bundled(golang(github.com/containers/conmon/runner/config))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/copy))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/docker))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/docker/reference))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/manifest))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/pkg/cli))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/pkg/cli/sigstore))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/pkg/compression))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/pkg/docker/config))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/pkg/shortnames))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/pkg/sysregistriesv2))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/signature))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/signature/signer))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/storage))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/transports))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/transports/alltransports))
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5/types))
|
|
|
|
Provides: bundled(golang(github.com/containers/ocicrypt/config))
|
|
|
|
Provides: bundled(golang(github.com/containers/ocicrypt/helpers))
|
|
|
|
Provides: bundled(golang(github.com/containers/psgo))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/drivers/quota))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/archive))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/chrootarchive))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/directory))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/fileutils))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/homedir))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/idmap))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/idtools))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/ioutils))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/lockfile))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/mount))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/parsers/kernel))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/reexec))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/regexp))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/stringid))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/system))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/pkg/unshare))
|
|
|
|
Provides: bundled(golang(github.com/containers/storage/types))
|
|
|
|
Provides: bundled(golang(github.com/coreos/go-systemd/v22/activation))
|
|
|
|
Provides: bundled(golang(github.com/coreos/go-systemd/v22/daemon))
|
|
|
|
Provides: bundled(golang(github.com/coreos/go-systemd/v22/dbus))
|
|
|
|
Provides: bundled(golang(github.com/coreos/stream-metadata-go/fedoracoreos))
|
|
|
|
Provides: bundled(golang(github.com/coreos/stream-metadata-go/release))
|
|
|
|
Provides: bundled(golang(github.com/coreos/stream-metadata-go/stream))
|
|
|
|
Provides: bundled(golang(github.com/cyphar/filepath-securejoin))
|
|
|
|
Provides: bundled(golang(github.com/digitalocean/go-qemu/qmp))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/api/types))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/api/types/container))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/api/types/events))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/api/types/mount))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/api/types/network))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/api/types/registry))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/api/types/swarm))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/api/types/volume))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/homedir))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/jsonmessage))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/meminfo))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/namesgenerator))
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/parsers))
|
|
|
|
Provides: bundled(golang(github.com/docker/go-connections/nat))
|
|
|
|
Provides: bundled(golang(github.com/docker/go-plugins-helpers/sdk))
|
|
|
|
Provides: bundled(golang(github.com/docker/go-plugins-helpers/volume))
|
|
|
|
Provides: bundled(golang(github.com/docker/go-units))
|
|
|
|
Provides: bundled(golang(github.com/fsnotify/fsnotify))
|
|
|
|
Provides: bundled(golang(github.com/godbus/dbus/v5))
|
|
|
|
Provides: bundled(golang(github.com/google/gofuzz))
|
|
|
|
Provides: bundled(golang(github.com/google/shlex))
|
|
|
|
Provides: bundled(golang(github.com/google/uuid))
|
|
|
|
Provides: bundled(golang(github.com/gorilla/handlers))
|
|
|
|
Provides: bundled(golang(github.com/gorilla/mux))
|
|
|
|
Provides: bundled(golang(github.com/gorilla/schema))
|
|
|
|
Provides: bundled(golang(github.com/hashicorp/go-multierror))
|
|
|
|
Provides: bundled(golang(github.com/json-iterator/go))
|
|
|
|
Provides: bundled(golang(github.com/mattn/go-sqlite3))
|
|
|
|
Provides: bundled(golang(github.com/moby/term))
|
|
|
|
Provides: bundled(golang(github.com/nxadm/tail))
|
|
|
|
Provides: bundled(golang(github.com/nxadm/tail/watch))
|
|
|
|
Provides: bundled(golang(github.com/onsi/ginkgo/v2))
|
|
|
|
Provides: bundled(golang(github.com/onsi/gomega))
|
|
|
|
Provides: bundled(golang(github.com/onsi/gomega/format))
|
|
|
|
Provides: bundled(golang(github.com/onsi/gomega/gexec))
|
|
|
|
Provides: bundled(golang(github.com/onsi/gomega/matchers))
|
|
|
|
Provides: bundled(golang(github.com/onsi/gomega/types))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/go-digest))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/image-spec/specs-go/v1))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/runc/libcontainer/cgroups))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/runc/libcontainer/configs))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/runc/libcontainer/devices))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/runc/libcontainer/user))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/runtime-spec/specs-go))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/runtime-tools/generate))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/runtime-tools/validate/capabilities))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/selinux/go-selinux))
|
|
|
|
Provides: bundled(golang(github.com/opencontainers/selinux/go-selinux/label))
|
|
|
|
Provides: bundled(golang(github.com/openshift/imagebuilder))
|
|
|
|
Provides: bundled(golang(github.com/rootless-containers/rootlesskit/pkg/port))
|
|
|
|
Provides: bundled(golang(github.com/rootless-containers/rootlesskit/pkg/port/builtin))
|
|
|
|
Provides: bundled(golang(github.com/rootless-containers/rootlesskit/pkg/port/portutil))
|
|
|
|
Provides: bundled(golang(github.com/sirupsen/logrus))
|
|
|
|
Provides: bundled(golang(github.com/sirupsen/logrus/hooks/syslog))
|
|
|
|
Provides: bundled(golang(github.com/spf13/cobra))
|
|
|
|
Provides: bundled(golang(github.com/spf13/pflag))
|
|
|
|
Provides: bundled(golang(github.com/syndtr/gocapability/capability))
|
|
|
|
Provides: bundled(golang(github.com/ulikunitz/xz))
|
|
|
|
Provides: bundled(golang(github.com/vbauerster/mpb/v8))
|
|
|
|
Provides: bundled(golang(github.com/vbauerster/mpb/v8/decor))
|
|
|
|
Provides: bundled(golang(github.com/vishvananda/netlink))
|
|
|
|
Provides: bundled(golang(go.etcd.io/bbolt))
|
|
|
|
Provides: bundled(golang(golang.org/x/net/proxy))
|
|
|
|
Provides: bundled(golang(golang.org/x/sync/semaphore))
|
|
|
|
Provides: bundled(golang(golang.org/x/sys/unix))
|
|
|
|
Provides: bundled(golang(golang.org/x/term))
|
|
|
|
Provides: bundled(golang(google.golang.org/protobuf/proto))
|
|
|
|
Provides: bundled(golang(gopkg.in/inf.v0))
|
|
|
|
Provides: bundled(golang(gopkg.in/yaml.v3))
|
|
|
|
Provides: bundled(golang(sigs.k8s.io/yaml))
|
2023-01-23 10:34:03 +00:00
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%description
|
2019-05-24 14:43:28 +00:00
|
|
|
%{name} (Pod Manager) is a fully featured container engine that is a simple
|
|
|
|
daemonless tool. %{name} provides a Docker-CLI comparable command line that
|
|
|
|
eases the transition from other container engines and allows the management of
|
|
|
|
pods, containers and images. Simply put: alias docker=%{name}.
|
2019-09-17 18:06:00 +00:00
|
|
|
Most %{name} commands can be run as a regular user, without requiring
|
|
|
|
additional privileges.
|
2019-05-17 16:56:00 +00:00
|
|
|
|
2019-09-17 18:06:00 +00:00
|
|
|
%{name} uses Buildah(1) internally to create container images.
|
|
|
|
Both tools share image (not container) storage, hence each can use or
|
|
|
|
manipulate images (but not containers) created by the other.
|
2019-05-17 16:56:00 +00:00
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%{summary}
|
2019-05-17 16:56:00 +00:00
|
|
|
%{repo} Simple management tool for pods, containers and images
|
2018-02-06 22:05:10 +00:00
|
|
|
|
2018-08-12 10:30:14 +00:00
|
|
|
%package docker
|
2019-05-24 14:43:28 +00:00
|
|
|
Summary: Emulate Docker CLI using %{name}
|
2018-08-20 19:31:47 +00:00
|
|
|
BuildArch: noarch
|
2018-10-18 18:55:59 +00:00
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2018-08-20 19:31:47 +00:00
|
|
|
Conflicts: docker
|
|
|
|
Conflicts: docker-latest
|
|
|
|
Conflicts: docker-ce
|
|
|
|
Conflicts: docker-ee
|
2019-01-18 17:59:24 +00:00
|
|
|
Conflicts: moby-engine
|
2018-08-12 10:30:14 +00:00
|
|
|
|
|
|
|
%description docker
|
|
|
|
This package installs a script named docker that emulates the Docker CLI by
|
2019-05-24 14:43:28 +00:00
|
|
|
executes %{name} commands, it also creates links between all Docker CLI man
|
|
|
|
pages and %{name}.
|
2018-08-12 10:30:14 +00:00
|
|
|
|
2019-01-18 17:59:24 +00:00
|
|
|
%package tests
|
2019-05-24 14:43:28 +00:00
|
|
|
Summary: Tests for %{name}
|
2019-01-18 17:59:24 +00:00
|
|
|
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: bats
|
|
|
|
Requires: jq
|
2020-02-20 13:19:58 +00:00
|
|
|
Requires: skopeo
|
2020-06-01 21:09:26 +00:00
|
|
|
Requires: nmap-ncat
|
2020-08-05 11:57:36 +00:00
|
|
|
Requires: httpd-tools
|
|
|
|
Requires: openssl
|
2020-08-18 13:34:36 +00:00
|
|
|
Requires: socat
|
2020-10-19 12:27:01 +00:00
|
|
|
Requires: buildah
|
2021-11-11 14:20:05 +00:00
|
|
|
Requires: gnupg
|
2019-01-18 17:59:24 +00:00
|
|
|
|
|
|
|
%description tests
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
This package contains system tests for %{name}
|
|
|
|
|
2019-07-07 17:54:36 +00:00
|
|
|
%package remote
|
|
|
|
Summary: (Experimental) Remote client for managing %{name} containers
|
|
|
|
|
|
|
|
%description remote
|
|
|
|
Remote client for managing %{name} containers.
|
|
|
|
|
|
|
|
This experimental remote client is under heavy development. Please do not
|
|
|
|
run %{name}-remote in production.
|
|
|
|
|
2020-06-01 16:48:43 +00:00
|
|
|
%{name}-remote uses the version 2 API to connect to a %{name} client to
|
2019-07-07 17:54:36 +00:00
|
|
|
manage pods, containers and container images. %{name}-remote supports ssh
|
|
|
|
connections as well.
|
2019-07-07 19:16:20 +00:00
|
|
|
|
2019-10-18 13:02:37 +00:00
|
|
|
%package plugins
|
|
|
|
Summary: Plugins for %{name}
|
2020-09-16 14:55:30 +00:00
|
|
|
Requires: dnsmasq
|
2021-08-16 12:52:47 +00:00
|
|
|
Recommends: %{name}-gvproxy = %{epoch}:%{version}-%{release}
|
2019-10-18 13:02:37 +00:00
|
|
|
|
|
|
|
%description plugins
|
|
|
|
This plugin sets up the use of dnsmasq on a given CNI network so
|
|
|
|
that Pods can resolve each other by name. When configured,
|
|
|
|
the pod and its IP address are added to a network specific hosts file
|
|
|
|
that dnsmasq will read in. Similarly, when a pod
|
|
|
|
is removed from the network, it will remove the entry from the hosts
|
|
|
|
file. Each CNI network will have its own dnsmasq instance.
|
|
|
|
|
2021-08-16 12:52:47 +00:00
|
|
|
%package gvproxy
|
|
|
|
Summary: Go replacement for libslirp and VPNKit
|
|
|
|
|
|
|
|
%description gvproxy
|
|
|
|
A replacement for libslirp and VPNKit, written in pure Go.
|
|
|
|
It is based on the network stack of gVisor. Compared to libslirp,
|
|
|
|
gvisor-tap-vsock brings a configurable DNS server and
|
|
|
|
dynamic port forwarding.
|
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%prep
|
2023-05-24 13:41:45 +00:00
|
|
|
%autosetup -Sgit -n %{name}-%{version}
|
2022-01-19 20:35:02 +00:00
|
|
|
sed -i 's;@@PODMAN@@\;$(BINDIR);@@PODMAN@@\;%{_bindir};' Makefile
|
2018-02-06 22:05:10 +00:00
|
|
|
|
2019-10-18 13:02:37 +00:00
|
|
|
# untar dnsname
|
|
|
|
tar zxf %{SOURCE1}
|
|
|
|
|
2021-08-16 12:52:47 +00:00
|
|
|
# untar %%{name}-gvproxy
|
2022-01-19 20:35:02 +00:00
|
|
|
tar zxf %{SOURCE2}
|
2021-08-16 12:52:47 +00:00
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%build
|
2021-10-01 06:33:17 +00:00
|
|
|
%set_build_flags
|
|
|
|
export CGO_CFLAGS=$CFLAGS
|
|
|
|
# These extra flags present in $CFLAGS have been skipped for now as they break the build
|
|
|
|
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-flto=auto//g')
|
|
|
|
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-Wp,D_GLIBCXX_ASSERTIONS//g')
|
|
|
|
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-specs=\/usr\/lib\/rpm\/redhat\/redhat-annobin-cc1//g')
|
|
|
|
|
2020-12-04 17:30:36 +00:00
|
|
|
%ifarch x86_64
|
2021-07-16 19:49:21 +00:00
|
|
|
export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
|
2020-12-04 17:30:36 +00:00
|
|
|
%endif
|
2022-05-18 19:16:30 +00:00
|
|
|
|
|
|
|
export GO111MODULE=off
|
|
|
|
export GOPATH=$(pwd)/_build:$(pwd)
|
2019-10-18 13:02:37 +00:00
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
mkdir _build
|
2022-05-18 19:16:30 +00:00
|
|
|
cd _build
|
2018-02-06 22:05:10 +00:00
|
|
|
mkdir -p src/%{provider}.%{provider_tld}/%{project}
|
|
|
|
ln -s ../../../../ src/%{import_path}
|
2022-05-18 19:16:30 +00:00
|
|
|
cd ..
|
2018-02-06 22:05:10 +00:00
|
|
|
ln -s vendor src
|
2019-05-24 14:43:28 +00:00
|
|
|
|
2022-01-19 20:35:02 +00:00
|
|
|
# build date. FIXME: Makefile uses '/v2/libpod', that doesn't work here?
|
|
|
|
LDFLAGS="-X %{import_path}/libpod/define.buildInfo=$(date +%s)"
|
|
|
|
|
|
|
|
# build rootlessport first
|
|
|
|
%gobuild -o bin/rootlessport %{import_path}/cmd/rootlessport
|
|
|
|
|
2023-05-24 13:41:45 +00:00
|
|
|
export BASEBUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh)"
|
2023-02-02 11:54:35 +00:00
|
|
|
|
2019-05-24 14:43:28 +00:00
|
|
|
# build %%{name}
|
2023-02-02 11:54:35 +00:00
|
|
|
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh)"
|
2018-08-12 03:03:46 +00:00
|
|
|
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
|
2018-02-06 22:05:10 +00:00
|
|
|
|
2019-05-24 14:43:28 +00:00
|
|
|
# build %%{name}-remote
|
2023-02-02 11:54:35 +00:00
|
|
|
export BUILDTAGS="$BASEBUILDTAGS exclude_graphdriver_btrfs btrfs_noversion remote"
|
2020-06-23 17:55:54 +00:00
|
|
|
%gobuild -o bin/%{name}-remote %{import_path}/cmd/%{name}
|
2019-05-24 14:43:28 +00:00
|
|
|
|
2023-02-02 11:54:35 +00:00
|
|
|
# build quadlet
|
|
|
|
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh)"
|
|
|
|
%gobuild -o bin/quadlet %{import_path}/cmd/quadlet
|
|
|
|
|
2022-05-18 19:16:30 +00:00
|
|
|
cd %{repo_plugins}-%{commit_plugins}
|
2019-10-18 13:02:37 +00:00
|
|
|
mkdir _build
|
2022-05-18 19:16:30 +00:00
|
|
|
cd _build
|
2019-10-18 13:02:37 +00:00
|
|
|
mkdir -p src/%{provider}.%{provider_tld}/%{project}
|
|
|
|
ln -s ../../../../ src/%{import_path_plugins}
|
2022-05-18 19:16:30 +00:00
|
|
|
cd ..
|
2019-10-18 13:02:37 +00:00
|
|
|
ln -s vendor src
|
|
|
|
export GOPATH=$(pwd)/_build:$(pwd)
|
|
|
|
%gobuild -o bin/dnsname %{import_path_plugins}/plugins/meta/dnsname
|
2022-05-18 19:16:30 +00:00
|
|
|
cd ..
|
2019-10-18 13:02:37 +00:00
|
|
|
|
2022-05-18 19:16:30 +00:00
|
|
|
cd %{repo_gvproxy}-%{commit_gvproxy}
|
2021-08-16 12:52:47 +00:00
|
|
|
mkdir _build
|
2022-05-18 19:16:30 +00:00
|
|
|
cd _build
|
2021-08-16 12:52:47 +00:00
|
|
|
mkdir -p src/%{provider}.%{provider_tld}/%{project}
|
|
|
|
ln -s ../../../../ src/%{import_path_gvproxy}
|
2022-05-18 19:16:30 +00:00
|
|
|
cd ..
|
2021-08-16 12:52:47 +00:00
|
|
|
ln -s vendor src
|
|
|
|
export GOPATH=$(pwd)/_build:$(pwd)
|
2021-08-27 13:52:32 +00:00
|
|
|
%gobuild -o bin/gvproxy %{import_path_gvproxy}/cmd/gvproxy
|
2022-05-18 19:16:30 +00:00
|
|
|
cd ..
|
2021-08-16 12:52:47 +00:00
|
|
|
|
2021-03-03 21:03:36 +00:00
|
|
|
%{__make} docs docker-docs
|
2020-06-23 17:55:54 +00:00
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%install
|
2018-04-24 19:27:43 +00:00
|
|
|
install -dp %{buildroot}%{_unitdir}
|
2023-04-03 12:48:19 +00:00
|
|
|
PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{_sysconfdir} \
|
2022-01-31 13:38:15 +00:00
|
|
|
install.bin \
|
|
|
|
install.man \
|
2022-01-19 20:35:02 +00:00
|
|
|
install.systemd \
|
|
|
|
install.completions \
|
|
|
|
install.docker \
|
2022-01-31 13:38:15 +00:00
|
|
|
install.docker-docs \
|
|
|
|
install.remote \
|
2023-05-24 13:41:45 +00:00
|
|
|
%if %{with modules_load}
|
2022-02-25 16:50:25 +00:00
|
|
|
install.modules-load
|
|
|
|
%endif
|
2018-02-06 22:05:10 +00:00
|
|
|
|
2023-04-05 07:22:06 +00:00
|
|
|
sed -i 's;%{buildroot};;g' %{buildroot}%{_bindir}/docker
|
|
|
|
|
2021-06-08 14:30:35 +00:00
|
|
|
# install dnsname plugin
|
2022-05-18 19:16:30 +00:00
|
|
|
cd %{repo_plugins}-%{commit_plugins}
|
2019-10-18 13:02:37 +00:00
|
|
|
%{__make} PREFIX=%{_prefix} DESTDIR=%{buildroot} install
|
2022-05-18 19:16:30 +00:00
|
|
|
cd ..
|
2019-10-18 13:02:37 +00:00
|
|
|
|
2021-08-16 12:52:47 +00:00
|
|
|
# install gvproxy
|
2022-05-18 19:16:30 +00:00
|
|
|
cd %{repo_gvproxy}-%{commit_gvproxy}
|
2021-08-16 12:52:47 +00:00
|
|
|
install -dp %{buildroot}%{_libexecdir}/%{name}
|
2021-08-27 13:52:32 +00:00
|
|
|
install -p -m0755 bin/gvproxy %{buildroot}%{_libexecdir}/%{name}
|
2022-05-18 19:16:30 +00:00
|
|
|
cd ..
|
2021-08-16 12:52:47 +00:00
|
|
|
|
2020-01-08 13:51:56 +00:00
|
|
|
# do not include docker and podman-remote man pages in main package
|
|
|
|
for file in `find %{buildroot}%{_mandir}/man[15] -type f | sed "s,%{buildroot},," | grep -v -e remote -e docker`; do
|
|
|
|
echo "$file*" >> podman.file-list
|
|
|
|
done
|
|
|
|
|
2022-01-31 13:38:15 +00:00
|
|
|
rm -f %{buildroot}%{_mandir}/man5/docker*.5
|
|
|
|
|
2019-01-18 17:59:24 +00:00
|
|
|
install -d -p %{buildroot}/%{_datadir}/%{name}/test/system
|
|
|
|
cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/
|
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
#define license tag if not already defined
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
|
2020-03-30 15:49:05 +00:00
|
|
|
%files -f %{name}.file-list
|
2018-02-06 22:05:10 +00:00
|
|
|
%license LICENSE
|
2022-08-03 13:55:33 +00:00
|
|
|
%doc README.md CONTRIBUTING.md install.md transfer.md
|
2018-02-06 22:05:10 +00:00
|
|
|
%{_bindir}/%{name}
|
2022-01-19 20:35:02 +00:00
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/rootlessport
|
2023-02-09 10:25:12 +00:00
|
|
|
%{_libexecdir}/%{name}/quadlet
|
2020-11-17 16:18:25 +00:00
|
|
|
%{_datadir}/bash-completion/completions/%{name}
|
2019-03-17 15:16:57 +00:00
|
|
|
# By "owning" the site-functions dir, we don't need to Require zsh
|
2019-05-24 11:52:44 +00:00
|
|
|
%dir %{_datadir}/zsh/site-functions
|
2019-05-24 14:43:28 +00:00
|
|
|
%{_datadir}/zsh/site-functions/_%{name}
|
2020-11-16 01:27:29 +00:00
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
|
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
2022-01-19 20:35:02 +00:00
|
|
|
%{_unitdir}/%{name}*
|
|
|
|
%{_userunitdir}/%{name}*
|
2022-08-24 14:14:56 +00:00
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
2023-02-09 10:25:12 +00:00
|
|
|
%{_systemdgeneratordir}/%{name}-system-generator
|
|
|
|
%{_systemdusergeneratordir}/%{name}-user-generator
|
2023-05-24 13:41:45 +00:00
|
|
|
%if %{with modules_load}
|
2022-02-25 16:50:25 +00:00
|
|
|
%{_modulesloaddir}/%{name}-iptables.conf
|
2023-02-22 01:09:20 +00:00
|
|
|
%endif
|
2018-02-06 22:05:10 +00:00
|
|
|
|
2018-08-20 19:31:47 +00:00
|
|
|
%files docker
|
|
|
|
%{_bindir}/docker
|
|
|
|
%{_mandir}/man1/docker*.1*
|
2022-08-24 15:08:01 +00:00
|
|
|
%{_tmpfilesdir}/%{name}-docker.conf
|
2023-02-09 10:25:12 +00:00
|
|
|
%{_user_tmpfilesdir}/%{name}-docker.conf
|
2018-08-20 19:31:47 +00:00
|
|
|
|
2020-06-23 17:55:54 +00:00
|
|
|
%files remote
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/%{name}-remote
|
|
|
|
%{_mandir}/man1/%{name}-remote*.*
|
2020-11-17 16:18:25 +00:00
|
|
|
%{_datadir}/bash-completion/completions/%{name}-remote
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
|
%{_datadir}/fish/vendor_completions.d/%{name}-remote.fish
|
|
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
%{_datadir}/zsh/site-functions/_%{name}-remote
|
2019-02-26 22:44:04 +00:00
|
|
|
|
2019-01-18 17:59:24 +00:00
|
|
|
%files tests
|
|
|
|
%license LICENSE
|
|
|
|
%{_datadir}/%{name}/test
|
|
|
|
|
2019-10-18 13:02:37 +00:00
|
|
|
%files plugins
|
2021-08-16 12:52:47 +00:00
|
|
|
%license %{repo_plugins}-%{commit_plugins}/LICENSE
|
|
|
|
%doc %{repo_plugins}-%{commit_plugins}/{README.md,README_PODMAN.md}
|
2021-06-29 15:10:59 +00:00
|
|
|
%dir %{_libexecdir}/cni
|
2019-10-18 13:02:37 +00:00
|
|
|
%{_libexecdir}/cni/dnsname
|
|
|
|
|
2021-08-16 12:52:47 +00:00
|
|
|
%files gvproxy
|
|
|
|
%license %{repo_gvproxy}-%{commit_gvproxy}/LICENSE
|
|
|
|
%doc %{repo_gvproxy}-%{commit_gvproxy}/README.md
|
|
|
|
%dir %{_libexecdir}/%{name}
|
2021-08-27 13:52:32 +00:00
|
|
|
%{_libexecdir}/%{name}/gvproxy
|
2021-08-16 12:52:47 +00:00
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%changelog
|
2023-05-24 13:41:45 +00:00
|
|
|
%if %{with changelog}
|
|
|
|
* Mon May 01 2023 RH Container Bot <rhcontainerbot@fedoraproject.org>
|
|
|
|
- Placeholder changelog for envs that are not autochangelog-ready
|
|
|
|
%else
|
2022-06-06 19:17:21 +00:00
|
|
|
%autochangelog
|
2023-05-24 13:41:45 +00:00
|
|
|
%endif
|