1 Summary: A tool for managing OCI containers and pods
6 Group: Applications/System
7 #Source0Download: https://github.com/containers/podman/releases
8 Source0: https://github.com/containers/podman/archive/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: 53cc2efcc586931e71bb49352be99a3e
11 Source2: registries.conf
12 URL: https://github.com/containers/podman
13 BuildRequires: device-mapper-devel
14 BuildRequires: go-md2man
16 BuildRequires: golang-varlink
17 BuildRequires: gpgme-devel
18 BuildRequires: libseccomp-devel
19 BuildRequires: pkgconfig
20 BuildRequires: rpm-build >= 4.6
21 BuildRequires: systemd-devel
23 Requires: containernetworking-plugins
27 ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Podman (the POD MANager) is a tool for managing containers and images,
32 volumes mounted into those containers, and pods made from groups of
33 containers. Podman is based on libpod, a library for container
34 lifecycle management that is also contained in this repository. The
35 libpod library provides APIs for managing containers, pods, container
38 %package -n bash-completion-podman
39 Summary: bash-completion for podman
40 Group: Applications/Shells
41 Requires: %{name} = %{version}-%{release}
42 Requires: bash-completion >= 2.0
45 %description -n bash-completion-podman
46 This package provides bash-completion for podman.
48 %package -n fish-completion-podman
49 Summary: Fish completion for podman command
50 Group: Applications/Shells
51 Requires: %{name} = %{version}-%{release}
55 %description -n fish-completion-podman
56 Fish completion for podman command.
58 %package -n zsh-completion-podman
59 Summary: Zsh completion for podman command
60 Group: Applications/Shells
61 Requires: %{name} = %{version}-%{release}
65 %description -n zsh-completion-podman
66 Zsh completion for podman command.
74 GOPATH=$(pwd)/.gopath \
77 LIBEXECDIR="%{_libexecdir}" \
79 SHAREDIR_CONTAINERS="%{_datadir}/containers" \
80 ETCDIR="%{_sysconfdir}" \
81 TMPFILESDIR="%{systemdtmpfilesdir}" \
82 SYSTEMDDIR="%{systemdunitdir}" \
83 USERSYSTEMDDIR="%{systemduserunitdir}" \
87 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/containers,%{bash_compdir},%{fish_compdir},%{zsh_compdir}}
92 DESTDIR=$RPM_BUILD_ROOT \
95 LIBEXECDIR="%{_libexecdir}" \
97 SHAREDIR_CONTAINERS="%{_datadir}/containers" \
98 ETCDIR="%{_sysconfdir}" \
99 TMPFILESDIR="%{systemdtmpfilesdir}" \
100 SYSTEMDDIR="%{systemdunitdir}" \
101 USERSYSTEMDDIR="%{systemduserunitdir}" \
102 PYTHON="%{__python3}"
104 cp -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/containers
106 $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{bash_compdir}/podman bash
107 $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{fish_compdir}/podman.fish fish
108 $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{zsh_compdir}/_podman zsh
111 rm -rf $RPM_BUILD_ROOT
114 %defattr(644,root,root,755)
116 %dir %{_sysconfdir}/containers
117 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/policy.json
118 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/registries.conf
119 %attr(755,root,root) %{_bindir}/podman
120 %attr(755,root,root) %{_bindir}/podman-remote
121 %{systemdunitdir}/podman.service
122 %{systemdunitdir}/podman.socket
123 %{systemdunitdir}/podman-auto-update.service
124 %{systemdunitdir}/podman-auto-update.timer
125 %{systemdunitdir}/podman-restart.service
126 %{systemduserunitdir}/podman.service
127 %{systemduserunitdir}/podman.socket
128 %{systemduserunitdir}/podman-auto-update.service
129 %{systemduserunitdir}/podman-auto-update.timer
130 %{systemduserunitdir}/podman-restart.service
131 %{_mandir}/man1/podman*.1*
132 %{_mandir}/man5/oci-hooks.5*
133 /usr/lib/tmpfiles.d/podman.conf
135 %files -n bash-completion-podman
136 %defattr(644,root,root,755)
137 %{bash_compdir}/podman
139 %files -n fish-completion-%{name}
140 %defattr(644,root,root,755)
141 %{fish_compdir}/podman.fish
143 %files -n zsh-completion-%{name}
144 %defattr(644,root,root,755)
145 %{zsh_compdir}/_podman