2022-07-26 14:18:45 +08:00
|
|
|
%define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld '" -a -v -x %{?**};
|
2022-07-05 16:28:52 +08:00
|
|
|
|
2019-12-14 18:23:01 +08:00
|
|
|
Name: podman
|
2023-06-30 02:01:42 +00:00
|
|
|
Version: 4.5.1
|
|
|
|
|
Release: 1
|
2019-12-14 18:23:01 +08:00
|
|
|
Summary: A daemonless container engine for managing Containers
|
2022-07-19 05:51:51 +00:00
|
|
|
Epoch: 1
|
2023-06-30 02:01:42 +00:00
|
|
|
License: Apache-2.0 and MIT
|
2019-12-14 18:23:01 +08:00
|
|
|
URL: https://podman.io/
|
2023-06-30 02:01:42 +00:00
|
|
|
Source0: https://github.com/containers/podman/archive/refs/tags/v4.5.1.tar.gz
|
2022-07-05 16:28:52 +08:00
|
|
|
Source1: https://github.com/containers/dnsname/archive/18822f9a4fb35d1349eb256f4cd2bfd372474d84/dnsname-18822f9.tar.gz
|
|
|
|
|
Source2: https://github.com/containers/podman-machine-cni/archive/0749884b8d1a455c68da30789e37811ec0809d51/podman-machine-cni-0749884.tar.gz
|
2023-06-30 02:01:42 +00:00
|
|
|
Source3: https://github.com/containers/gvisor-tap-vsock/archive/refs/tags/v0.6.2.tar.gz
|
|
|
|
|
Source4: https://github.com/cpuguy83/go-md2man/archive/refs/tags/v2.0.2.tar.gz
|
2022-07-05 16:28:52 +08:00
|
|
|
|
2023-06-30 02:01:42 +00:00
|
|
|
BuildRequires: gcc golang btrfs-progs-devel glib2-devel glibc-devel glibc-static
|
2021-07-30 23:16:46 +08:00
|
|
|
BuildRequires: gpgme-devel libassuan-devel libgpg-error-devel libseccomp-devel
|
2023-06-30 02:01:42 +00:00
|
|
|
BuildRequires: libselinux-devel ostree-devel pkgconfig make git systemd systemd-devel shadow-subid-devel
|
2022-07-05 16:28:52 +08:00
|
|
|
Requires: crun containers-common containernetworking-plugins >= 0.7.3-2 iptables nftables conmon
|
2023-06-30 02:01:42 +00:00
|
|
|
Requires: (container-selinux if selinux-policy) catatonit
|
|
|
|
|
Recommends: %{name}-plugins = %{epoch}:%{version}-%{release}
|
|
|
|
|
Recommends: slirp4netns
|
|
|
|
|
|
|
|
|
|
Provides: %{name}-quadlet
|
|
|
|
|
Provides: %{name}-quadlet = %{epoch}:%{version}-%{release}
|
|
|
|
|
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/container-orchestrated-devices/container-device-interface/pkg/cdi))
|
|
|
|
|
Provides: bundled(golang(github.com/containernetworking/cni))
|
|
|
|
|
Provides: bundled(golang(github.com/containernetworking/plugins))
|
|
|
|
|
Provides: bundled(golang(github.com/containers/buildah))
|
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libimage))
|
|
|
|
|
Provides: bundled(golang(github.com/containers/common/libnetwork))
|
|
|
|
|
Provides: bundled(golang(github.com/containers/common/pkg))
|
|
|
|
|
Provides: bundled(golang(github.com/containers/conmon/runner/config))
|
|
|
|
|
Provides: bundled(golang(github.com/containers/image/v5))
|
|
|
|
|
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/coreos/go-systemd/v22))
|
|
|
|
|
Provides: bundled(golang(github.com/coreos/stream-metadata-go))
|
|
|
|
|
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/pkg/homedir))
|
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/jsonmessage))
|
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/namesgenerator))
|
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/parsers))
|
|
|
|
|
Provides: bundled(golang(github.com/docker/docker/pkg/system))
|
|
|
|
|
Provides: bundled(golang(github.com/docker/distribution))
|
|
|
|
|
Provides: bundled(golang(github.com/docker/go-connections))
|
|
|
|
|
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))
|
|
|
|
|
Provides: bundled(golang(github.com/onsi/gomega))
|
|
|
|
|
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/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))
|
2021-01-09 14:21:53 +08:00
|
|
|
|
2019-12-14 18:23:01 +08:00
|
|
|
%description
|
|
|
|
|
Podman manages the entire container ecosystem which includes pods,
|
|
|
|
|
containers, container images, and container volumes using the libpod library.
|
|
|
|
|
|
|
|
|
|
%package docker
|
|
|
|
|
Summary: Docker CLI emulator for podman
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Conflicts: docker docker-latest docker-ce docker-ee moby-engine
|
|
|
|
|
|
|
|
|
|
%description docker
|
|
|
|
|
This package installs a script named docker, which emulates the Docker CLI through podman command.
|
|
|
|
|
|
2023-06-30 02:01:42 +00:00
|
|
|
%package remote
|
|
|
|
|
Summary: (Experimental) Remote client for managing %{name} containers
|
|
|
|
|
|
2022-07-05 16:28:52 +08:00
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
|
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: bats
|
|
|
|
|
Requires: jq
|
|
|
|
|
Requires: skopeo
|
|
|
|
|
Requires: nmap-ncat
|
|
|
|
|
Requires: httpd-tools
|
|
|
|
|
Requires: openssl
|
|
|
|
|
Requires: socat
|
|
|
|
|
Requires: buildah
|
|
|
|
|
Requires: gnupg
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
|
|
This package contains system tests for %{name}
|
|
|
|
|
|
|
|
|
|
%description remote
|
|
|
|
|
Remote client for managing %{name} containers.
|
|
|
|
|
|
|
|
|
|
This experimental remote client is under heavy development. Please do not
|
|
|
|
|
run %{name}-remote in production.
|
|
|
|
|
|
|
|
|
|
%{name}-remote uses the version 2 API to connect to a %{name} client to
|
|
|
|
|
manage pods, containers and container images. %{name}-remote supports ssh
|
|
|
|
|
connections as well.
|
|
|
|
|
|
|
|
|
|
%package plugins
|
|
|
|
|
Summary: Plugins for %{name}
|
|
|
|
|
Requires: dnsmasq
|
|
|
|
|
Recommends: %{name}-gvproxy = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
2019-12-14 18:23:01 +08:00
|
|
|
%package help
|
2020-09-09 11:50:59 +08:00
|
|
|
Summary: Help document for the podman package
|
|
|
|
|
Conflicts: docker docker-latest docker-ce docker-ee moby-engine
|
2019-12-14 18:23:01 +08:00
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Help document for the podman package
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-07-05 16:28:52 +08:00
|
|
|
%autosetup -Sgit -n %{name}-%{version}
|
|
|
|
|
# untar dnsname
|
|
|
|
|
tar zxf %{SOURCE1}
|
|
|
|
|
# untar %%{name}-machine-cni
|
|
|
|
|
tar zxf %{SOURCE2}
|
|
|
|
|
# untar %%{name}-gvproxy
|
|
|
|
|
tar zxf %{SOURCE3}
|
|
|
|
|
tar -xf %SOURCE4
|
2019-12-14 18:23:01 +08:00
|
|
|
|
|
|
|
|
%build
|
2022-07-05 16:28:52 +08:00
|
|
|
GO_MD2MAN_PATH="$(pwd)%{_bindir}"
|
|
|
|
|
mkdir -p _buildgo2man/bin $GO_MD2MAN_PATH
|
2021-02-18 14:15:07 +08:00
|
|
|
cd go-md2man-*
|
2022-07-05 16:28:52 +08:00
|
|
|
go build -mod=vendor -o ../_buildgo2man/bin/go-md2man .
|
|
|
|
|
cp ../_buildgo2man/bin/go-md2man $GO_MD2MAN_PATH/go-md2man
|
|
|
|
|
export PATH=$GO_MD2MAN_PATH:$PATH
|
2021-02-18 14:15:07 +08:00
|
|
|
cd -
|
2022-07-05 16:28:52 +08:00
|
|
|
|
|
|
|
|
%set_build_flags
|
|
|
|
|
export GO111MODULE=off
|
|
|
|
|
export GOPATH=$(pwd)/_build:$(pwd)
|
|
|
|
|
export CGO_CFLAGS=$CFLAGS
|
2023-06-30 02:01:42 +00:00
|
|
|
export CGO_CFLAGS="$CGO_CFLAGS -Wno-unused-function"
|
2022-07-05 16:28:52 +08: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')
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
2023-06-30 02:01:42 +00:00
|
|
|
export CGO_CFLAGS="$CGO_CFLAGS -m64 -mtune=generic -fcf-protection=full"
|
2022-07-05 16:28:52 +08:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
mkdir _build
|
|
|
|
|
pushd _build
|
2019-12-14 18:23:01 +08:00
|
|
|
mkdir -p src/github.com/containers
|
2022-07-05 16:28:52 +08:00
|
|
|
ln -s ../../../../ src/github.com/containers/podman
|
|
|
|
|
popd
|
2019-12-14 18:23:01 +08:00
|
|
|
ln -s vendor src
|
2022-07-05 16:28:52 +08:00
|
|
|
|
|
|
|
|
# build date. FIXME: Makefile uses '/v2/libpod', that doesn't work here?
|
|
|
|
|
LDFLAGS="-X github.com/containers/podman/libpod/define.buildInfo=$(date +%s)"
|
|
|
|
|
|
2023-06-30 02:01:42 +00:00
|
|
|
# build rootlessport first
|
|
|
|
|
%gobuild -o bin/rootlessport github.com/containers/podman/cmd/rootlessport
|
|
|
|
|
|
|
|
|
|
export BASEBUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh)"
|
|
|
|
|
|
|
|
|
|
# build %%{name}
|
|
|
|
|
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh)"
|
2022-07-05 16:28:52 +08:00
|
|
|
%gobuild -o bin/%{name} github.com/containers/podman/cmd/%{name}
|
|
|
|
|
|
|
|
|
|
# build %%{name}-remote
|
2023-06-30 02:01:42 +00:00
|
|
|
export BUILDTAGS="$BASEBUILDTAGS exclude_graphdriver_btrfs btrfs_noversion remote"
|
2022-07-05 16:28:52 +08:00
|
|
|
%gobuild -o bin/%{name}-remote github.com/containers/podman/cmd/%{name}
|
|
|
|
|
|
2023-06-30 02:01:42 +00:00
|
|
|
# build quadlet
|
|
|
|
|
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh)"
|
|
|
|
|
%gobuild -o bin/quadlet github.com/containers/podman/cmd/quadlet
|
|
|
|
|
|
2022-07-05 16:28:52 +08:00
|
|
|
pushd dnsname-18822f9a4fb35d1349eb256f4cd2bfd372474d84
|
|
|
|
|
mkdir _build
|
|
|
|
|
pushd _build
|
|
|
|
|
mkdir -p src/github.com/containers
|
|
|
|
|
ln -s ../../../../ src/github.com/containers/dnsname
|
|
|
|
|
popd
|
|
|
|
|
ln -s vendor src
|
|
|
|
|
export GOPATH=$(pwd)/_build:$(pwd)
|
|
|
|
|
%gobuild -o bin/dnsname github.com/containers/dnsname/plugins/meta/dnsname
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd podman-machine-cni-0749884b8d1a455c68da30789e37811ec0809d51
|
|
|
|
|
mkdir _build
|
|
|
|
|
pushd _build
|
|
|
|
|
mkdir -p src/github.com/containers
|
|
|
|
|
ln -s ../../../../ src/github.com/containers/podman-machine-cni
|
|
|
|
|
popd
|
|
|
|
|
ln -s vendor src
|
|
|
|
|
export GOPATH=$(pwd)/_build:$(pwd)
|
|
|
|
|
%gobuild -o bin/%{name}-machine github.com/containers/podman-machine-cni/plugins/meta/%{name}-machine
|
|
|
|
|
popd
|
|
|
|
|
|
2023-06-30 02:01:42 +00:00
|
|
|
pushd gvisor-tap-vsock-0.6.2
|
2022-07-05 16:28:52 +08:00
|
|
|
mkdir _build
|
|
|
|
|
pushd _build
|
|
|
|
|
mkdir -p src/github.com/containers
|
|
|
|
|
ln -s ../../../../ src/github.com/containers/gvisor-tap-vsock
|
|
|
|
|
popd
|
|
|
|
|
ln -s vendor src
|
|
|
|
|
export GOPATH=$(pwd)/_build:$(pwd)
|
|
|
|
|
%gobuild -o bin/gvproxy github.com/containers/gvisor-tap-vsock/cmd/gvproxy
|
2023-06-30 02:01:42 +00:00
|
|
|
%gobuild -o bin/gvforwarder github.com/containers/gvisor-tap-vsock/cmd/vm
|
2022-07-05 16:28:52 +08:00
|
|
|
popd
|
|
|
|
|
|
2023-06-30 02:01:42 +00:00
|
|
|
make docs docker-docs
|
2019-12-14 18:23:01 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-06-30 02:01:42 +00:00
|
|
|
PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{buildroot}%{_sysconfdir} \
|
|
|
|
|
install.bin install.man install.systemd install.completions install.docker install.docker-docs install.remote
|
|
|
|
|
|
|
|
|
|
sed -i 's;%{buildroot};;g' %{buildroot}%{_bindir}/docker
|
|
|
|
|
|
|
|
|
|
for unit_file in %{buildroot}%{_unitdir}/*.service; do
|
|
|
|
|
sed -i 's;%{buildroot};;g' ${unit_file}
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
for user_unit_file in %{buildroot}%{_userunitdir}/*.service; do
|
|
|
|
|
sed -i 's;%{buildroot};;g' ${user_unit_file}
|
|
|
|
|
done
|
2022-07-05 16:28:52 +08:00
|
|
|
|
|
|
|
|
# install dnsname plugin
|
|
|
|
|
pushd dnsname-18822f9a4fb35d1349eb256f4cd2bfd372474d84
|
|
|
|
|
%{__make} PREFIX=%{_prefix} DESTDIR=%{buildroot} install
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# install machine-cni plugin
|
|
|
|
|
pushd podman-machine-cni-0749884b8d1a455c68da30789e37811ec0809d51
|
|
|
|
|
%{__make} PREFIX=%{_prefix} DESTDIR=%{buildroot} install
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# install gvproxy
|
2023-06-30 02:01:42 +00:00
|
|
|
pushd gvisor-tap-vsock-0.6.2
|
2022-07-05 16:28:52 +08:00
|
|
|
install -dp %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
install -p -m0755 bin/gvproxy %{buildroot}%{_libexecdir}/%{name}
|
2023-06-30 02:01:42 +00:00
|
|
|
install -p -m0755 bin/gvforwarder %{buildroot}%{_libexecdir}/%{name}
|
2022-07-05 16:28:52 +08:00
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# 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
|
2019-12-14 18:23:01 +08:00
|
|
|
|
2023-06-30 02:01:42 +00:00
|
|
|
rm -f %{buildroot}%{_mandir}/man5/docker*.5
|
|
|
|
|
|
|
|
|
|
install -d -p %{buildroot}/%{_datadir}/%{name}/test/system
|
|
|
|
|
cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/
|
|
|
|
|
|
2019-12-14 18:23:01 +08:00
|
|
|
%global license %doc
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
2023-06-30 02:01:42 +00:00
|
|
|
%doc README.md CONTRIBUTING.md install.md transfer.md
|
2019-12-14 18:23:01 +08:00
|
|
|
%{_bindir}/%{name}
|
2023-06-30 02:01:42 +00:00
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
|
%{_libexecdir}/%{name}/rootlessport
|
|
|
|
|
%{_libexecdir}/%{name}/quadlet
|
2022-07-05 16:28:52 +08:00
|
|
|
%{_datadir}/bash-completion/completions/%{name}
|
2023-06-30 02:01:42 +00:00
|
|
|
# By "owning" the site-functions dir, we don't need to Require zsh
|
2022-07-05 16:28:52 +08:00
|
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
|
%{_datadir}/zsh/site-functions/_%{name}
|
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
|
|
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
2023-06-30 02:01:42 +00:00
|
|
|
%{_unitdir}/%{name}*
|
|
|
|
|
%{_userunitdir}/%{name}*
|
|
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
|
|
|
|
%{_systemdgeneratordir}/%{name}-system-generator
|
|
|
|
|
%{_systemdusergeneratordir}/%{name}-user-generator
|
2019-12-14 18:23:01 +08:00
|
|
|
|
|
|
|
|
%files docker
|
|
|
|
|
%{_bindir}/docker
|
2023-06-30 02:01:42 +00:00
|
|
|
%{_tmpfilesdir}/%{name}-docker.conf
|
|
|
|
|
%{_prefix}/share/user-tmpfiles.d/%{name}-docker.conf
|
2019-12-14 18:23:01 +08:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man1/{docker*.1*,podman*.1*}
|
|
|
|
|
%{_mandir}/man5/*.5*
|
|
|
|
|
|
2022-07-05 16:28:52 +08:00
|
|
|
%files remote
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_bindir}/%{name}-remote
|
|
|
|
|
%{_mandir}/man1/%{name}-remote*.*
|
|
|
|
|
%{_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
|
|
|
|
|
|
2023-06-30 02:01:42 +00:00
|
|
|
%files tests
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_datadir}/%{name}/test
|
|
|
|
|
|
2022-07-05 16:28:52 +08:00
|
|
|
%files plugins
|
|
|
|
|
%license dnsname-18822f9a4fb35d1349eb256f4cd2bfd372474d84/LICENSE
|
|
|
|
|
%doc dnsname-18822f9a4fb35d1349eb256f4cd2bfd372474d84/{README.md,README_PODMAN.md}
|
|
|
|
|
%dir %{_libexecdir}/cni
|
|
|
|
|
%{_libexecdir}/cni/dnsname
|
2023-06-30 02:01:42 +00:00
|
|
|
%{_libexecdir}/cni/podman-machine
|
2022-07-05 16:28:52 +08:00
|
|
|
|
|
|
|
|
%files gvproxy
|
2023-06-30 02:01:42 +00:00
|
|
|
%license gvisor-tap-vsock-0.6.2/LICENSE
|
|
|
|
|
%doc gvisor-tap-vsock-0.6.2/README.md
|
2022-07-05 16:28:52 +08:00
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
|
%{_libexecdir}/%{name}/gvproxy
|
2023-06-30 02:01:42 +00:00
|
|
|
%{_libexecdir}/%{name}/gvforwarder
|
2022-07-05 16:28:52 +08:00
|
|
|
|
2019-12-14 18:23:01 +08:00
|
|
|
%changelog
|
2023-06-30 02:01:42 +00:00
|
|
|
* Fri Jun 30 2023 lijian <lijian2@kylinos.cn> 1:4.5.1-1
|
|
|
|
|
- update to 4.5.1
|
|
|
|
|
|
2023-02-14 12:46:58 +08:00
|
|
|
* Tue Feb 14 2023 fushanqing <fushanqing@kylinos.cn> - 1:3.4.4-3
|
|
|
|
|
- fix obs build problem
|
|
|
|
|
|
2022-07-26 14:18:45 +08:00
|
|
|
* Tue Jul 26 2022 laokz <laokz@foxmail.com> - 1:3.4.4-2
|
|
|
|
|
- remove redundant patch2
|
|
|
|
|
|
2022-07-19 05:51:51 +00:00
|
|
|
* Tue Jul 05 2022 fushanqing <fushanqing@kylinos.cn> - 1:3.4.4-1
|
2022-07-05 16:28:52 +08:00
|
|
|
- update to 3.4.4
|
|
|
|
|
|
2022-04-14 15:33:20 +08:00
|
|
|
* Thu Apr 14 2022 wangkai<wangkai385@h-partners.com> - 0.10.1-12
|
|
|
|
|
- Fix build error
|
|
|
|
|
|
2021-07-30 23:16:46 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.10.1-11
|
|
|
|
|
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2021-03-31 14:59:59 +08:00
|
|
|
* Wed Mar 31 2021 maminjie <maminjie1@huawei.com> - 1:0.10.1-10
|
|
|
|
|
- Eat signal 23 in signal proxy
|
|
|
|
|
- Require container-selinux only when selinux-policy is installed
|
|
|
|
|
|
2021-03-15 11:45:49 +08:00
|
|
|
* Sat Mar 13 2021 maminjie <maminjie1@huawei.com> - 1:0.10.1-9
|
|
|
|
|
- Fix the invalid memory address reference
|
|
|
|
|
|
2021-03-04 09:31:37 +08:00
|
|
|
* Wed Mar 3 2021 wangxiao <wangxiao65@huawei.com> - 1:0.10.1-8
|
|
|
|
|
- Fix CVE-2021-20188
|
|
|
|
|
|
2021-02-18 14:15:07 +08:00
|
|
|
* Thu Feb 18 2021 lingsheng <lingsheng@huawei.com> - 1:0.10.1-7
|
|
|
|
|
- Resolve go-md2man dependency
|
|
|
|
|
|
2021-02-08 10:56:25 +08:00
|
|
|
* Mon Feb 8 2021 lingsheng <lingsheng@huawei.com> - 1:0.10.1-6
|
|
|
|
|
- Change BuildRequires to golang
|
|
|
|
|
|
2021-01-09 14:21:53 +08:00
|
|
|
* Sat Jan 9 2021 Shengjing Wei <weishengjing1@huawei.com> - 1:0.10.1-5
|
|
|
|
|
- Fixed podman pull failed with issue I2BF99
|
|
|
|
|
|
2020-09-09 11:50:59 +08:00
|
|
|
* Wed Sep 9 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 1:0.10.1-4
|
|
|
|
|
- Add conflicts with docker-engine for help package
|
|
|
|
|
|
2020-03-12 12:12:50 +08:00
|
|
|
* Thu Mar 12 2020 Ling Yang <lingyang2@huawei.com> - 1:0.10.1-3
|
|
|
|
|
- Fixed install fail
|
|
|
|
|
|
2019-12-14 18:23:01 +08:00
|
|
|
* Mon Dec 2 2019 shijian <shijian16@huawei.com> - 1:0.10.1-2
|
|
|
|
|
- Package init
|