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.
|
2023-07-03 14:06:58 +00:00
|
|
|
%if %{defined rhel} && 0%{?rhel} == 8
|
2023-05-24 13:41:45 +00:00
|
|
|
%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 %{?**};
|
2023-07-03 14:06:58 +00:00
|
|
|
%define rhel8py3 1
|
2023-05-24 13:41:45 +00:00
|
|
|
%endif
|
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
%global gomodulesmode GO111MODULE=on
|
|
|
|
|
|
|
|
%if %{defined rhel}
|
2023-05-24 13:41:45 +00:00
|
|
|
# _user_tmpfiles.d currently undefined on rhel
|
|
|
|
%global _user_tmpfilesdir %{_datadir}/user-tmpfiles.d
|
|
|
|
%endif
|
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
%if %{defined fedora}
|
|
|
|
%define build_with_btrfs 1
|
2023-05-24 13:41:45 +00:00
|
|
|
%endif
|
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
%global container_base_path github.com/containers
|
|
|
|
%global container_base_url https://%{container_base_path}
|
2023-05-24 13:41:45 +00:00
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
# For LDFLAGS
|
|
|
|
%global ld_project %{container_base_path}/%{name}/v4
|
|
|
|
%global ld_libpod %{ld_project}/libpod
|
2023-05-24 13:41:45 +00:00
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
# %%{name}
|
|
|
|
%global git0 %{container_base_url}/%{name}
|
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
|
2023-07-03 14:06:58 +00:00
|
|
|
%global git_plugins %{container_base_url}/%{repo_plugins}
|
2021-09-15 17:04:02 +00:00
|
|
|
%global commit_plugins 18822f9a4fb35d1349eb256f4cd2bfd372474d84
|
2023-07-03 14:06:58 +00:00
|
|
|
%global import_path_plugins %{container_base_path}/%{repo_plugins}
|
2019-10-18 13:02:37 +00:00
|
|
|
|
2021-08-16 12:52:47 +00:00
|
|
|
# gvproxy
|
|
|
|
%global repo_gvproxy gvisor-tap-vsock
|
2023-07-03 14:06:58 +00:00
|
|
|
%global git_gvproxy %{container_base_url}/%{repo_gvproxy}
|
2023-05-26 17:40:48 +00:00
|
|
|
%global commit_gvproxy 407efb5dcdb0f4445935f7360535800b60447544
|
2021-08-16 12:52:47 +00:00
|
|
|
|
2022-01-28 21:02:15 +00:00
|
|
|
Name: podman
|
2023-07-03 14:06:58 +00:00
|
|
|
%if %{defined copr_username}
|
|
|
|
Epoch: 102
|
2023-05-24 13:41:45 +00:00
|
|
|
%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.
|
2023-07-20 22:09:02 +00:00
|
|
|
Version: 4.6.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-07-03 14:06:58 +00:00
|
|
|
%if %{defined 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-07-20 22:09:02 +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
|
2023-07-03 14:06:58 +00:00
|
|
|
BuildRequires: %{_bindir}/go-md2man
|
|
|
|
%if %{defined build_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-07-03 14:06:58 +00:00
|
|
|
%if !%{defined gobuild}
|
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-07-03 14:06:58 +00:00
|
|
|
%if %{defined rhel8py3}
|
2023-05-24 13:41:45 +00:00
|
|
|
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-07-03 14:06:58 +00:00
|
|
|
Requires: containers-common-extra
|
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-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.
|
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
%package -n %{name}sh
|
|
|
|
Summary: Confined login and user shell using %{name}
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: %{name}-shell = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: %{name}-%{name}sh = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{name}sh
|
|
|
|
%{name}sh provides a confined login and user shell with access to volumes and
|
|
|
|
capabilities specified in user quadlets.
|
|
|
|
|
|
|
|
It is a symlink to %{_bindir}/%{name} and execs into the `%{name}sh` container
|
|
|
|
when `%{_bindir}/%{name}sh is set as a login shell or set as os.Args[0].
|
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%prep
|
2023-07-20 22:09:02 +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
|
2023-07-03 14:06:58 +00:00
|
|
|
|
2021-10-01 06:33:17 +00:00
|
|
|
# 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
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
LDFLAGS="-X %{ld_libpod}/define.buildInfo=$(date +%s) \
|
|
|
|
-X %{ld_libpod}/config._installPrefix=%{_prefix} \
|
|
|
|
-X %{ld_libpod}/config._etcDir=%{_sysconfdir} \
|
|
|
|
-X %{ld_project}/pkg/systemd/quadlet._binDir=%{_bindir}"
|
2022-01-19 20:35:02 +00:00
|
|
|
|
|
|
|
# build rootlessport first
|
2023-07-03 14:06:58 +00:00
|
|
|
%gobuild -o bin/rootlessport ./cmd/rootlessport
|
2022-01-19 20:35:02 +00:00
|
|
|
|
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)"
|
2023-07-03 14:06:58 +00:00
|
|
|
%gobuild -o bin/%{name} ./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"
|
2023-07-03 14:06:58 +00:00
|
|
|
%gobuild -o bin/%{name}-remote ./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)"
|
2023-07-03 14:06:58 +00:00
|
|
|
%gobuild -o bin/quadlet ./cmd/quadlet
|
|
|
|
|
|
|
|
# reset LDFLAGS for plugins and gvisor binaries
|
|
|
|
LDFLAGS=''
|
2023-02-02 11:54:35 +00:00
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
# build gvisor-tap-vsock binaries
|
|
|
|
cd %{repo_gvproxy}-%{commit_gvproxy}
|
|
|
|
%gobuild -o bin/gvproxy ./cmd/gvproxy
|
|
|
|
%gobuild -o bin/gvforwarder ./cmd/vm
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
%{__make} docs docker-docs
|
|
|
|
|
|
|
|
# build dnsname the old way otherwise it fails on koji
|
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
|
2023-07-03 14:06:58 +00:00
|
|
|
mkdir -p src/%{container_base_path}
|
2019-10-18 13:02:37 +00:00
|
|
|
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)
|
2023-07-03 14:06:58 +00:00
|
|
|
%define gomodulesmode GO111MODULE=off
|
2019-10-18 13:02:37 +00:00
|
|
|
%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
|
|
|
|
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-07-03 14:06:58 +00:00
|
|
|
%if %{defined _modulesloaddir}
|
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}
|
2023-05-26 17:40:48 +00:00
|
|
|
install -p -m0755 bin/gvforwarder %{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-07-03 14:06:58 +00:00
|
|
|
%if %{defined _modulesloaddir}
|
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
|
2023-05-26 17:40:48 +00:00
|
|
|
%{_libexecdir}/%{name}/gvforwarder
|
2021-08-16 12:52:47 +00:00
|
|
|
|
2023-07-03 14:06:58 +00:00
|
|
|
%files -n %{name}sh
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md CONTRIBUTING.md install.md transfer.md
|
|
|
|
%{_bindir}/%{name}sh
|
|
|
|
|
2018-02-06 22:05:10 +00:00
|
|
|
%changelog
|
2023-07-03 14:06:58 +00:00
|
|
|
%if %{defined autochangelog}
|
|
|
|
%autochangelog
|
|
|
|
%else
|
2023-05-24 13:41:45 +00:00
|
|
|
* Mon May 01 2023 RH Container Bot <rhcontainerbot@fedoraproject.org>
|
|
|
|
- Placeholder changelog for envs that are not autochangelog-ready
|
|
|
|
%endif
|