2018-02-19 13:00:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package podman
|
|
|
|
#
|
Accepting request 874870 from devel:kubic
Drop obsolete varlink.patch
- Update to v3.0.1
* Changes
- Several frequently-occurring WARN level log messages have been downgraded to INFO or DEBUG to not clutter terminal output.
Bugfixes
- Fixed a bug where the Created field of podman ps --format=json was formatted as a string instead of an Unix timestamp (integer) (#9315).
- Fixed a bug where failing lookups of individual layers during the podman images command would cause the whole command to fail without printing output.
- Fixed a bug where --cgroups=split did not function properly on cgroups v1 systems.
- Fixed a bug where mounting a volume over an directory in the container that existed, but was empty, could fail (#9393).
- Fixed a bug where mounting a volume over a directory in the container that existed could copy the entirety of the container's rootfs, instead of just the directory mounted over, into the volume (#9415).
- Fixed a bug where Podman would treat the --entrypoint=[""] option to podman run and podman create as a literal empty string in the entrypoint, when instead it should have been ignored (#9377).
- Fixed a bug where Podman would set the HOME environment variable to "" when the container ran as a user without an assigned home directory (#9378).
- Fixed a bug where specifying a pod infra image that had no tags (by using its ID) would cause podman pod create to panic (#9374).
- Fixed a bug where the --runtime option was not properly handled by the podman build command (#9365).
- Fixed a bug where Podman would incorrectly print an error message related to the remote API when the remote API was not in use and starting Podman failed.
- Fixed a bug where Podman would change ownership of a container's working directory, even if it already existed (#9387).
- Fixed a bug where the podman generate systemd --new command would incorrectly escape %t when generating the path for the PID file (#9373).
- Fixed a bug where Podman could, when run inside a Podman container with the host's containers/storage directory mounted into the container, erroneously detect a reboot and reset container state if the temporary directory was not also mounted in (#9191).
- Fixed a bug where some options of the podman build command (including but not limited to --jobs) were nonfunctional (#9247).
* API
- Fixed a breaking change to the Libpod Wait API for Containers where the Conditions parameter changed type in Podman v3.0 (#9351).
- Fixed a bug where the Compat Create endpoint for Containers did not properly handle forwarded ports that did not specify a host port.
- Fixed a bug where the Libpod Wait endpoint for Containers could write duplicate headers after an error occurred.
- Fixed a bug where the Compat Create endpoint for Images would not pull images that already had a matching tag present locally, even if a more recent version was available at the registry (#9232).
- The Compat Create endpoint for Images has had its compatibility with Docker improved, allowing its use with the docker-java library.
* Misc
- Updated Buildah to v1.19.4
- Updated the containers/storage library to v1.24.6
- Changes from v3.0.0
OBS-URL: https://build.opensuse.org/request/show/874870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/podman?expand=0&rev=75
2021-03-02 12:27:51 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-02-19 13:00:31 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
Accepting request 874870 from devel:kubic
Drop obsolete varlink.patch
- Update to v3.0.1
* Changes
- Several frequently-occurring WARN level log messages have been downgraded to INFO or DEBUG to not clutter terminal output.
Bugfixes
- Fixed a bug where the Created field of podman ps --format=json was formatted as a string instead of an Unix timestamp (integer) (#9315).
- Fixed a bug where failing lookups of individual layers during the podman images command would cause the whole command to fail without printing output.
- Fixed a bug where --cgroups=split did not function properly on cgroups v1 systems.
- Fixed a bug where mounting a volume over an directory in the container that existed, but was empty, could fail (#9393).
- Fixed a bug where mounting a volume over a directory in the container that existed could copy the entirety of the container's rootfs, instead of just the directory mounted over, into the volume (#9415).
- Fixed a bug where Podman would treat the --entrypoint=[""] option to podman run and podman create as a literal empty string in the entrypoint, when instead it should have been ignored (#9377).
- Fixed a bug where Podman would set the HOME environment variable to "" when the container ran as a user without an assigned home directory (#9378).
- Fixed a bug where specifying a pod infra image that had no tags (by using its ID) would cause podman pod create to panic (#9374).
- Fixed a bug where the --runtime option was not properly handled by the podman build command (#9365).
- Fixed a bug where Podman would incorrectly print an error message related to the remote API when the remote API was not in use and starting Podman failed.
- Fixed a bug where Podman would change ownership of a container's working directory, even if it already existed (#9387).
- Fixed a bug where the podman generate systemd --new command would incorrectly escape %t when generating the path for the PID file (#9373).
- Fixed a bug where Podman could, when run inside a Podman container with the host's containers/storage directory mounted into the container, erroneously detect a reboot and reset container state if the temporary directory was not also mounted in (#9191).
- Fixed a bug where some options of the podman build command (including but not limited to --jobs) were nonfunctional (#9247).
* API
- Fixed a breaking change to the Libpod Wait API for Containers where the Conditions parameter changed type in Podman v3.0 (#9351).
- Fixed a bug where the Compat Create endpoint for Containers did not properly handle forwarded ports that did not specify a host port.
- Fixed a bug where the Libpod Wait endpoint for Containers could write duplicate headers after an error occurred.
- Fixed a bug where the Compat Create endpoint for Images would not pull images that already had a matching tag present locally, even if a more recent version was available at the registry (#9232).
- The Compat Create endpoint for Images has had its compatibility with Docker improved, allowing its use with the docker-java library.
* Misc
- Updated Buildah to v1.19.4
- Updated the containers/storage library to v1.24.6
- Changes from v3.0.0
OBS-URL: https://build.opensuse.org/request/show/874870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/podman?expand=0&rev=75
2021-03-02 12:27:51 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-02-19 13:00:31 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-10-02 17:16:45 +02:00
|
|
|
%define project github.com/containers/podman
|
2018-02-19 13:00:31 +01:00
|
|
|
# Build with libostree-devel in Tumbleweed, Leap 15 and SLES 15
|
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%define with_libostree 1
|
|
|
|
%endif
|
|
|
|
Name: podman
|
Accepting request 984428 from home:RBrownSUSE:branches:devel:microos
- Update to version 4.1.1:
* The output of the podman load command now mirrors that of docker load.
* Podman now supports Docker Compose v2.2 and higher. Please note that it may be necessary to disable the use of Buildkit by setting the environment variable DOCKER_BUILDKIT=0.
* A new container command has been added, podman container clone. This command makes a copy of an existing container, with the ability to change some settings (e.g. resource limits) while doing so.
* Podman now supports sending JSON events related to machines to a Unix socket named machine_events.*\.sock in XDG_RUNTIME_DIR/podman or to a socket whose path is set in the PODMAN_MACHINE_EVENTS_SOCK environment variable.
* Two new volume commands have been added, podman volume mount and podman volume unmount. These allow for Podman-managed named volumes to be mounted and accessed from outside containers.
* The podman container checkpoint and podman container restore options now support checkpointing to and restoring from OCI images. This allows checkpoints to be distributed via standard image registries.
* The podman play kube command now supports environment variables that are specified using the fieldRef and resourceFieldRef sources.
* The podman play kube command will now set default resource limits when the provided YAML does not include them.
* The podman play kube command now supports a new option, --annotation, to add annotations to created containers.
* The podman play kube --build command now supports a new option, --context-dir, which allows the user to specify the context directory to use when building the Containerfile.
* The podman container commit command now supports a new option, --squash, which squashes the generated image into a single layer.
* The podman pod logs command now supports two new options, --names, which identifies which container generated a log message by name, instead of ID and --color, which colors messages based on what container generated them.
* The podman rmi command now supports a new option, --ignore, which will ignore errors caused by missing images.
* The podman network create command now features a new option, --ipam-driver, to specify details about how IP addresses are assigned to containers in the network.
* The podman machine list command now features a new option, --quiet, to print only the names of configured VMs and no other information.
* The --ipc option to the podman create, podman run, and podman pod create commands now supports three new modes: none, private, and shareable. The default IPC mode is now shareable, indicating the the IPC namespace can be shared with other containers.
* The --mount option to the podman create and podman run commands can now set options for created named volumes via the volume-opt parameter.
* The --mount option to the podman create and podman run commands now allows parameters to be passed in CSV format.
* The --userns option to the podman create and podman run commands now supports a new option, nomap, that (only for rootless containers) does not map the UID of the user that started the container into the container, increasing security.
* The podman import command now supports three new options, --arch, --os, and --variant, to specify what system the imported image was built for.
* The podman inspect command now includes information on the network configuration of containers that joined a pre-configured network namespace with the --net ns: option to podman run, podman create, and podman pod create.
* The podman run and podman create commands now support a new option, --chrootdirs, which specifies additional locations where container-specific files managed by Podman (e.g. /etc/hosts, `/etc/resolv.conf, etc) will be mounted inside the container (#12961).
* The podman run and podman create commands now support a new option, --passwd-entry, allowing entries to be added to the container's /etc/passwd file.
* The podman images --format command now accepts two new format directives: {{.CreatedAt}} and {{.CreatedSince}}.
* The podman volume create command's -o option now accepts a new argument, o=noquota, to disable XFS quotas entirely and avoid potential issues when Podman is run on an XFS filesystem with existing quotas defined.
* The podman info command now includes additional information on the machine Podman is running on, including disk utilization on the drive Podman is storing containers and images on, and CPU utilization.
- Drop obsolete patches:
* 0001-Adjust-buildah-to-opencontainers-selinux-v1.10.1.patch
* 0001-Relabel-relabel-links-instead-of-their-targets.patch
* 0002-specgen-do-not-set-OOMScoreAdj-by-default.patch
* 0004-fix-Container.cGroupPath-skip-empty-line-to-avoid-fa.patch
OBS-URL: https://build.opensuse.org/request/show/984428
OBS-URL: https://build.opensuse.org/package/show/devel:microos/podman?expand=0&rev=3
2022-06-22 12:01:20 +02:00
|
|
|
Version: 4.1.1
|
2018-02-19 13:00:31 +01:00
|
|
|
Release: 0
|
2019-01-08 12:26:59 +01:00
|
|
|
Summary: Daemon-less container engine for managing containers, pods and images
|
2018-02-19 13:00:31 +01:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: System/Management
|
2021-07-02 13:26:43 +02:00
|
|
|
URL: https://github.com/containers/podman
|
2018-03-22 12:02:26 +01:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2020-03-08 22:23:55 +01:00
|
|
|
Source1: podman.conf
|
2018-08-28 09:24:39 +02:00
|
|
|
Source3: %{name}-rpmlintrc
|
2020-03-08 22:23:55 +01:00
|
|
|
Source4: README.SUSE.SLES
|
2018-02-19 13:00:31 +01:00
|
|
|
BuildRequires: bash-completion
|
|
|
|
BuildRequires: cni
|
|
|
|
BuildRequires: device-mapper-devel
|
|
|
|
BuildRequires: fdupes
|
2018-08-28 09:24:39 +02:00
|
|
|
BuildRequires: git-core
|
2018-02-19 13:00:31 +01:00
|
|
|
BuildRequires: glib2-devel-static
|
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
BuildRequires: go-go-md2man
|
|
|
|
BuildRequires: golang-packaging
|
|
|
|
BuildRequires: libapparmor-devel
|
|
|
|
BuildRequires: libassuan-devel
|
|
|
|
BuildRequires: libbtrfs-devel
|
2018-03-22 12:02:26 +01:00
|
|
|
BuildRequires: libcontainers-common
|
2018-02-19 13:00:31 +01:00
|
|
|
BuildRequires: libgpgme-devel
|
|
|
|
BuildRequires: libseccomp-devel
|
2022-04-08 22:45:21 +02:00
|
|
|
BuildRequires: golang(API) = 1.16
|
2020-08-14 09:31:49 +02:00
|
|
|
BuildRequires: pkgconfig(libselinux)
|
2021-04-29 01:36:27 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2020-08-14 09:31:49 +02:00
|
|
|
Recommends: apparmor-abstractions
|
2021-04-10 15:26:04 +02:00
|
|
|
Recommends: apparmor-parser
|
2022-04-22 21:52:39 +02:00
|
|
|
Requires: catatonit >= 0.1.7
|
2018-02-19 13:00:31 +01:00
|
|
|
Requires: cni
|
2018-03-22 12:02:26 +01:00
|
|
|
Requires: cni-plugins
|
2021-06-14 23:10:32 +02:00
|
|
|
Requires: conmon >= 2.0.24
|
Accepting request 874870 from devel:kubic
Drop obsolete varlink.patch
- Update to v3.0.1
* Changes
- Several frequently-occurring WARN level log messages have been downgraded to INFO or DEBUG to not clutter terminal output.
Bugfixes
- Fixed a bug where the Created field of podman ps --format=json was formatted as a string instead of an Unix timestamp (integer) (#9315).
- Fixed a bug where failing lookups of individual layers during the podman images command would cause the whole command to fail without printing output.
- Fixed a bug where --cgroups=split did not function properly on cgroups v1 systems.
- Fixed a bug where mounting a volume over an directory in the container that existed, but was empty, could fail (#9393).
- Fixed a bug where mounting a volume over a directory in the container that existed could copy the entirety of the container's rootfs, instead of just the directory mounted over, into the volume (#9415).
- Fixed a bug where Podman would treat the --entrypoint=[""] option to podman run and podman create as a literal empty string in the entrypoint, when instead it should have been ignored (#9377).
- Fixed a bug where Podman would set the HOME environment variable to "" when the container ran as a user without an assigned home directory (#9378).
- Fixed a bug where specifying a pod infra image that had no tags (by using its ID) would cause podman pod create to panic (#9374).
- Fixed a bug where the --runtime option was not properly handled by the podman build command (#9365).
- Fixed a bug where Podman would incorrectly print an error message related to the remote API when the remote API was not in use and starting Podman failed.
- Fixed a bug where Podman would change ownership of a container's working directory, even if it already existed (#9387).
- Fixed a bug where the podman generate systemd --new command would incorrectly escape %t when generating the path for the PID file (#9373).
- Fixed a bug where Podman could, when run inside a Podman container with the host's containers/storage directory mounted into the container, erroneously detect a reboot and reset container state if the temporary directory was not also mounted in (#9191).
- Fixed a bug where some options of the podman build command (including but not limited to --jobs) were nonfunctional (#9247).
* API
- Fixed a breaking change to the Libpod Wait API for Containers where the Conditions parameter changed type in Podman v3.0 (#9351).
- Fixed a bug where the Compat Create endpoint for Containers did not properly handle forwarded ports that did not specify a host port.
- Fixed a bug where the Libpod Wait endpoint for Containers could write duplicate headers after an error occurred.
- Fixed a bug where the Compat Create endpoint for Images would not pull images that already had a matching tag present locally, even if a more recent version was available at the registry (#9232).
- The Compat Create endpoint for Images has had its compatibility with Docker improved, allowing its use with the docker-java library.
* Misc
- Updated Buildah to v1.19.4
- Updated the containers/storage library to v1.24.6
- Changes from v3.0.0
OBS-URL: https://build.opensuse.org/request/show/874870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/podman?expand=0&rev=75
2021-03-02 12:27:51 +01:00
|
|
|
Requires: fuse-overlayfs
|
2018-12-07 14:39:50 +01:00
|
|
|
Requires: iptables
|
2021-07-02 13:26:43 +02:00
|
|
|
Requires: libcontainers-common >= 20210626
|
2021-09-21 21:12:28 +02:00
|
|
|
Requires: runc >= 1.0.1
|
2020-03-27 21:56:03 +01:00
|
|
|
Requires: slirp4netns >= 0.4.0
|
2020-10-29 09:22:15 +01:00
|
|
|
Requires: timezone
|
2018-04-11 14:03:27 +02:00
|
|
|
Recommends: %{name}-cni-config = %{version}
|
2020-08-06 17:29:42 +02:00
|
|
|
Suggests: katacontainers
|
2018-02-19 13:00:31 +01:00
|
|
|
%if 0%{?with_libostree}
|
|
|
|
BuildRequires: libostree-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2019-05-27 08:35:26 +02:00
|
|
|
Podman is a container engine for managing pods, containers, and container
|
|
|
|
images.
|
|
|
|
It is a standalone tool and it directly manipulates containers without the need
|
2019-01-08 12:26:59 +01:00
|
|
|
of a container engine daemon.
|
2019-05-27 08:35:26 +02:00
|
|
|
Podman is able to interact with container images create in buildah, cri-o, and
|
2019-01-08 12:26:59 +01:00
|
|
|
skopeo, as they all share the same datastore backend.
|
2018-02-19 13:00:31 +01:00
|
|
|
|
|
|
|
%prep
|
2022-04-08 22:45:21 +02:00
|
|
|
%autosetup -p1
|
2018-02-19 13:00:31 +01:00
|
|
|
|
2021-04-29 01:36:27 +02:00
|
|
|
%package remote
|
|
|
|
Summary: Client for managing podman containers remotely
|
|
|
|
Group: System/Management
|
|
|
|
Conflicts: %{name} < 3.1.2
|
2022-01-14 23:12:43 +01:00
|
|
|
Provides: podman:%{_bindir}/%{name}-remote
|
2021-04-29 01:36:27 +02:00
|
|
|
|
|
|
|
%description remote
|
|
|
|
This client allows controlling podman on a separate host, e.g. over SSH.
|
|
|
|
|
2018-04-11 14:03:27 +02:00
|
|
|
%package cni-config
|
|
|
|
Summary: Basic CNI configuration for podman
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}
|
2021-04-29 01:36:27 +02:00
|
|
|
# iproute2 is needed by the %%triggerun scriplet
|
2020-02-25 16:03:24 +01:00
|
|
|
Requires: iproute2
|
2018-04-11 14:03:27 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description cni-config
|
|
|
|
A "basic" CNI configuration for podman that makes networking usable for basic
|
|
|
|
setups. In more complicated setups, users are recommended to write their own
|
|
|
|
CNI configurations.
|
|
|
|
|
2021-04-10 15:26:04 +02:00
|
|
|
%package docker
|
|
|
|
Summary: Emulate Docker CLI using podman
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Conflicts: docker
|
|
|
|
Conflicts: docker-ce
|
|
|
|
Conflicts: docker-ee
|
|
|
|
Conflicts: docker-latest
|
|
|
|
Conflicts: moby-engine
|
|
|
|
|
|
|
|
%description docker
|
|
|
|
This package installs a script named docker that emulates the Docker CLI by
|
|
|
|
executes podman commands, it also creates links between all Docker CLI man
|
|
|
|
pages and %{name}.
|
|
|
|
|
2018-02-19 13:00:31 +01:00
|
|
|
%build
|
|
|
|
# Build podman
|
2020-10-02 17:16:45 +02:00
|
|
|
BUILDFLAGS="-buildmode=pie" make
|
2019-07-26 12:37:52 +02:00
|
|
|
|
2018-02-19 13:00:31 +01:00
|
|
|
# Build manpages
|
|
|
|
make %{?_smp_mflags} docs
|
|
|
|
|
|
|
|
%check
|
|
|
|
# Too many tests fail due to the restricted permissions in the build enviroment.
|
|
|
|
# Updates must be tested manually.
|
|
|
|
|
|
|
|
%install
|
2022-07-11 10:00:49 +02:00
|
|
|
make DESTDIR=%{buildroot} PREFIX=/usr LIBEXECDIR=%{_libexecdir} install install.completions install.docker
|
2018-02-19 13:00:31 +01:00
|
|
|
|
2020-09-10 22:48:34 +02:00
|
|
|
# packaged in libcontainers-common
|
2021-09-21 21:12:28 +02:00
|
|
|
rm %{buildroot}/usr/share/man/man5/oci-hooks.*
|
2019-03-08 12:00:51 +01:00
|
|
|
|
2020-03-08 22:23:55 +01:00
|
|
|
# Add podman modprobe.d drop-in config
|
2020-08-20 22:27:54 +02:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/modules-load.d
|
|
|
|
install -m 0644 -t %{buildroot}%{_prefix}/lib/modules-load.d/ %{SOURCE1}
|
2020-03-08 22:23:55 +01:00
|
|
|
|
|
|
|
# README.SUSE is SLES specifc currently
|
|
|
|
%if !0%{?is_opensuse}
|
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_docdir}/%{name}/README.SUSE
|
|
|
|
%endif
|
|
|
|
|
2018-02-19 13:00:31 +01:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
|
|
|
|
|
|
|
%files
|
2020-03-08 22:23:55 +01:00
|
|
|
%if !0%{?is_opensuse}
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
%endif
|
2018-02-19 13:00:31 +01:00
|
|
|
# Binaries
|
|
|
|
%{_bindir}/podman
|
|
|
|
# Manpages
|
2018-07-27 10:55:44 +02:00
|
|
|
%{_mandir}/man1/podman*.1*
|
2021-04-29 01:36:27 +02:00
|
|
|
%exclude %{_mandir}/man1/podman-remote*.1*
|
2018-02-19 13:00:31 +01:00
|
|
|
# Configs
|
2020-08-20 22:27:54 +02:00
|
|
|
%dir %{_prefix}/lib/modules-load.d
|
|
|
|
%{_prefix}/lib/modules-load.d/podman.conf
|
2020-12-05 20:36:11 +01:00
|
|
|
%{_tmpfilesdir}/podman.conf
|
2022-04-08 22:45:21 +02:00
|
|
|
# Rootless port
|
|
|
|
%dir %{_libexecdir}/podman
|
|
|
|
%{_libexecdir}/podman/rootlessport
|
2018-02-19 13:00:31 +01:00
|
|
|
# Completion
|
2018-07-27 10:55:44 +02:00
|
|
|
%{_datadir}/bash-completion/completions/podman
|
2020-09-10 22:48:34 +02:00
|
|
|
%{_datadir}/zsh/site-functions/_podman
|
2021-04-29 01:36:27 +02:00
|
|
|
%dir %{_datadir}/fish/
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d/
|
2020-12-05 20:36:11 +01:00
|
|
|
%{_datadir}/fish/vendor_completions.d/podman.fish
|
2020-09-10 22:48:34 +02:00
|
|
|
%{_unitdir}/podman.service
|
|
|
|
%{_unitdir}/podman.socket
|
2020-10-02 17:16:45 +02:00
|
|
|
%{_unitdir}/podman-auto-update.service
|
2021-09-21 21:12:28 +02:00
|
|
|
%{_unitdir}/podman-restart.service
|
2020-10-02 17:16:45 +02:00
|
|
|
%{_unitdir}/podman-auto-update.timer
|
2020-09-10 22:48:34 +02:00
|
|
|
%{_userunitdir}/podman.service
|
|
|
|
%{_userunitdir}/podman.socket
|
2020-10-02 17:16:45 +02:00
|
|
|
%{_userunitdir}/podman-auto-update.service
|
2021-09-21 21:12:28 +02:00
|
|
|
%{_userunitdir}/podman-restart.service
|
2020-10-02 17:16:45 +02:00
|
|
|
%{_userunitdir}/podman-auto-update.timer
|
2019-03-08 12:00:51 +01:00
|
|
|
%ghost /run/podman
|
2020-08-06 17:29:42 +02:00
|
|
|
%ghost %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-libpodconf
|
2018-06-13 15:39:50 +02:00
|
|
|
%license LICENSE
|
2018-02-19 13:00:31 +01:00
|
|
|
|
2021-04-29 01:36:27 +02:00
|
|
|
%files remote
|
|
|
|
%{_bindir}/podman-remote
|
|
|
|
%{_mandir}/man1/podman-remote*.1*
|
|
|
|
%{_datadir}/bash-completion/completions/podman-remote
|
|
|
|
%{_datadir}/zsh/site-functions/_podman-remote
|
|
|
|
%dir %{_datadir}/fish/
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d/
|
|
|
|
%{_datadir}/fish/vendor_completions.d/podman-remote.fish
|
|
|
|
|
2018-04-11 14:03:27 +02:00
|
|
|
%files cni-config
|
2018-06-13 15:39:50 +02:00
|
|
|
%license LICENSE
|
2018-04-11 14:03:27 +02:00
|
|
|
|
2021-04-10 15:26:04 +02:00
|
|
|
%files docker
|
|
|
|
%{_bindir}/docker
|
|
|
|
%{_tmpfilesdir}/podman-docker.conf
|
|
|
|
|
|
|
|
%post docker
|
|
|
|
%tmpfiles_create %{_tmpfilesdir}/podman-docker.conf
|
|
|
|
|
2019-03-27 16:13:10 +01:00
|
|
|
%pre
|
2021-09-21 21:12:28 +02:00
|
|
|
%service_add_pre podman.service podman.socket podman-auto-update.service podman-restart.service podman-auto-update.timer
|
2020-08-06 17:29:42 +02:00
|
|
|
# move away any old rpmsave config file to avoid having it re-activated again in
|
2021-04-29 01:36:27 +02:00
|
|
|
# %%posttrans
|
2020-08-06 17:29:42 +02:00
|
|
|
test -f /etc/containers/libpod.conf.rpmsave && mv -v /etc/containers/libpod.conf.rpmsave /etc/containers/libpod.conf.rpmsave.old ||:
|
2019-03-08 12:00:51 +01:00
|
|
|
|
2019-03-27 16:13:10 +01:00
|
|
|
%post
|
2021-09-21 21:12:28 +02:00
|
|
|
%service_add_post podman.service podman.socket podman-auto-update.service podman-restart.service podman-auto-update.timer
|
2020-12-05 20:36:11 +01:00
|
|
|
%tmpfiles_create %{_tmpfilesdir}/podman.conf
|
2021-09-21 21:12:28 +02:00
|
|
|
%systemd_user_post podman.service podman.socket podman-auto-update.service podman-restart.service podman-auto-update.timer
|
2019-03-08 12:00:51 +01:00
|
|
|
|
2019-03-27 16:13:10 +01:00
|
|
|
%preun
|
2021-09-21 21:12:28 +02:00
|
|
|
%service_del_preun podman.service podman.socket podman-auto-update.service podman-restart.service podman-auto-update.timer
|
|
|
|
%systemd_user_preun podman.service podman.socket podman-auto-update.service podman-restart.service podman-auto-update.timer
|
2019-03-08 12:00:51 +01:00
|
|
|
|
2019-03-27 16:13:10 +01:00
|
|
|
%postun
|
2021-09-21 21:12:28 +02:00
|
|
|
%service_del_postun podman.service podman.socket podman-auto-update.service podman-restart.service podman-auto-update.timer
|
|
|
|
%systemd_user_postun podman.service podman.socket podman-auto-update.service podman-restart.service podman-auto-update.timer
|
2019-03-08 12:00:51 +01:00
|
|
|
|
2020-08-06 17:29:42 +02:00
|
|
|
%posttrans
|
2021-07-02 13:26:43 +02:00
|
|
|
# if libpod.conf.rpmsave was created, set an update
|
2020-08-06 17:29:42 +02:00
|
|
|
# message informing about the libpod.conf -> containers.conf change
|
|
|
|
if test -f /etc/containers/libpod.conf.rpmsave ; then
|
|
|
|
cat >> %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-libpodconf << EOF
|
|
|
|
WARNING: Podman configuration file changes
|
|
|
|
|
|
|
|
With version 2.0 Podman changed to a slightly different configuration file format.
|
|
|
|
Also the name of default configuration file has been changed. The new format is
|
|
|
|
documented in the containers.conf(5) man-page and changes should usually be
|
|
|
|
straight-forward.
|
|
|
|
|
|
|
|
The new default configuration is located in /usr/share/containers/containers.conf.
|
|
|
|
In order to override setting from that file you can create
|
|
|
|
/etc/containers/containers.conf with your changed settings.
|
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
2020-02-25 16:03:24 +01:00
|
|
|
%triggerun cni-config -- %{name}-cni-config < 1.6.0
|
|
|
|
# The name of the network bridge changed from cni0 to podman-cni0 with
|
|
|
|
# podman 1.6. We need to rename the existing bridge to the new name to
|
|
|
|
# to avoid network issues after upgrade
|
|
|
|
if ip link show dev cni0 > /dev/null 2>&1; then
|
|
|
|
ip link set dev cni0 down
|
|
|
|
ip link set dev cni0 name cni-podman0
|
|
|
|
ip link set dev cni-podman0 up
|
|
|
|
fi
|
|
|
|
|
2018-02-19 13:00:31 +01:00
|
|
|
%changelog
|