]>
Commit | Line | Data |
---|---|---|
18c175b8 JP |
1 | Summary: A tool for managing OCI containers and pods |
2 | Name: podman | |
8f4594b0 | 3 | Version: 3.4.3 |
18c175b8 JP |
4 | Release: 1 |
5 | License: Apache v2.0 | |
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 | |
8f4594b0 | 9 | # Source0-md5: 59a56d9afeeaa1ddda13e9ff0718f005 |
35a38226 | 10 | Source1: policy.json |
00346cb1 | 11 | Source2: registries.conf |
18c175b8 | 12 | URL: https://github.com/containers/podman |
cbf5965c | 13 | BuildRequires: device-mapper-devel |
18c175b8 JP |
14 | BuildRequires: go-md2man |
15 | BuildRequires: golang | |
16 | BuildRequires: golang-varlink | |
cbf5965c JP |
17 | BuildRequires: gpgme-devel |
18 | BuildRequires: libseccomp-devel | |
19 | BuildRequires: pkgconfig | |
93c72252 | 20 | BuildRequires: rpm-build >= 4.6 |
e6acc512 | 21 | BuildRequires: rpmbuild(macros) >= 1.644 |
cbf5965c | 22 | BuildRequires: systemd-devel |
18c175b8 | 23 | Requires: conmon |
94a7f745 | 24 | Requires: containernetworking-plugins |
18c175b8 | 25 | Requires: crun |
2d104b8a JP |
26 | Suggests: slirp4netns |
27 | Suggests: uidmap | |
18c175b8 JP |
28 | ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
8a009d33 JP |
31 | %define _enable_debug_packages 0 |
32 | ||
18c175b8 JP |
33 | %description |
34 | Podman (the POD MANager) is a tool for managing containers and images, | |
35 | volumes mounted into those containers, and pods made from groups of | |
36 | containers. Podman is based on libpod, a library for container | |
37 | lifecycle management that is also contained in this repository. The | |
38 | libpod library provides APIs for managing containers, pods, container | |
39 | images, and volumes. | |
40 | ||
93c72252 JP |
41 | %package -n bash-completion-podman |
42 | Summary: bash-completion for podman | |
43 | Group: Applications/Shells | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: bash-completion >= 2.0 | |
46 | BuildArch: noarch | |
47 | ||
48 | %description -n bash-completion-podman | |
49 | This package provides bash-completion for podman. | |
50 | ||
51 | %package -n fish-completion-podman | |
52 | Summary: Fish completion for podman command | |
53 | Group: Applications/Shells | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Requires: fish | |
56 | BuildArch: noarch | |
57 | ||
58 | %description -n fish-completion-podman | |
59 | Fish completion for podman command. | |
60 | ||
61 | %package -n zsh-completion-podman | |
62 | Summary: Zsh completion for podman command | |
63 | Group: Applications/Shells | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | Requires: zsh | |
66 | BuildArch: noarch | |
67 | ||
68 | %description -n zsh-completion-podman | |
69 | Zsh completion for podman command. | |
70 | ||
18c175b8 JP |
71 | %prep |
72 | %setup -q | |
73 | ||
74 | %build | |
a6a3c572 JP |
75 | %{__make} \ |
76 | GO=/usr/bin/go \ | |
e908b902 | 77 | GOPATH=$(pwd)/.gopath \ |
e7ee545a JP |
78 | PREFIX="%{_prefix}" \ |
79 | BINDIR="%{_bindir}" \ | |
80 | LIBEXECDIR="%{_libexecdir}" \ | |
81 | MANDIR="%{_mandir}" \ | |
82 | SHAREDIR_CONTAINERS="%{_datadir}/containers" \ | |
83 | ETCDIR="%{_sysconfdir}" \ | |
84 | TMPFILESDIR="%{systemdtmpfilesdir}" \ | |
85 | SYSTEMDDIR="%{systemdunitdir}" \ | |
86 | USERSYSTEMDDIR="%{systemduserunitdir}" \ | |
87 | PYTHON="%{__python3}" | |
18c175b8 JP |
88 | |
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
ad6ad319 | 92 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/containers,%{bash_compdir},%{fish_compdir},%{zsh_compdir},%{_sharedstatedir}/containers} |
35a38226 | 93 | |
18c175b8 JP |
94 | %{__make} install \ |
95 | DESTDIR=$RPM_BUILD_ROOT \ | |
e7ee545a JP |
96 | PREFIX="%{_prefix}" \ |
97 | BINDIR="%{_bindir}" \ | |
98 | LIBEXECDIR="%{_libexecdir}" \ | |
99 | MANDIR="%{_mandir}" \ | |
100 | SHAREDIR_CONTAINERS="%{_datadir}/containers" \ | |
101 | ETCDIR="%{_sysconfdir}" \ | |
102 | TMPFILESDIR="%{systemdtmpfilesdir}" \ | |
103 | SYSTEMDDIR="%{systemdunitdir}" \ | |
104 | USERSYSTEMDDIR="%{systemduserunitdir}" \ | |
105 | PYTHON="%{__python3}" | |
18c175b8 | 106 | |
ad6ad319 JP |
107 | cp -p %{SOURCE1} %{SOURCE2} \ |
108 | vendor/github.com/containers/common/pkg/config/containers.conf \ | |
109 | $RPM_BUILD_ROOT%{_sysconfdir}/containers | |
110 | ||
111 | %{__sed} -e 's|/var/lib/containers|%{_sharedstatedir}/containers|g' \ | |
112 | vendor/github.com/containers/storage/storage.conf \ | |
113 | > $RPM_BUILD_ROOT%{_sysconfdir}/containers/storage.conf | |
35a38226 | 114 | |
93c72252 JP |
115 | $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{bash_compdir}/podman bash |
116 | $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{fish_compdir}/podman.fish fish | |
117 | $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{zsh_compdir}/_podman zsh | |
118 | ||
18c175b8 JP |
119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
b74ba7ea JP |
122 | %post |
123 | %systemd_post podman.service podman.socket | |
124 | ||
125 | %preun | |
126 | %systemd_preun podman.service podman.socket | |
127 | ||
128 | %postun | |
129 | %systemd_reload | |
130 | ||
18c175b8 JP |
131 | %files |
132 | %defattr(644,root,root,755) | |
c22a6efc | 133 | %doc README.md |
35a38226 | 134 | %dir %{_sysconfdir}/containers |
ad6ad319 | 135 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/containers.conf |
35a38226 | 136 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/policy.json |
00346cb1 | 137 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/registries.conf |
ad6ad319 | 138 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/storage.conf |
18c175b8 JP |
139 | %attr(755,root,root) %{_bindir}/podman |
140 | %attr(755,root,root) %{_bindir}/podman-remote | |
141 | %{systemdunitdir}/podman.service | |
142 | %{systemdunitdir}/podman.socket | |
a6a3c572 JP |
143 | %{systemdunitdir}/podman-auto-update.service |
144 | %{systemdunitdir}/podman-auto-update.timer | |
41286851 | 145 | %{systemdunitdir}/podman-restart.service |
18c175b8 JP |
146 | %{systemduserunitdir}/podman.service |
147 | %{systemduserunitdir}/podman.socket | |
a6a3c572 JP |
148 | %{systemduserunitdir}/podman-auto-update.service |
149 | %{systemduserunitdir}/podman-auto-update.timer | |
41286851 | 150 | %{systemduserunitdir}/podman-restart.service |
18c175b8 | 151 | %{_mandir}/man1/podman*.1* |
18c175b8 | 152 | %{_mandir}/man5/oci-hooks.5* |
e7ee545a | 153 | /usr/lib/tmpfiles.d/podman.conf |
ad6ad319 | 154 | %dir %{_sharedstatedir}/containers |
93c72252 JP |
155 | |
156 | %files -n bash-completion-podman | |
157 | %defattr(644,root,root,755) | |
158 | %{bash_compdir}/podman | |
159 | ||
160 | %files -n fish-completion-%{name} | |
161 | %defattr(644,root,root,755) | |
162 | %{fish_compdir}/podman.fish | |
163 | ||
164 | %files -n zsh-completion-%{name} | |
165 | %defattr(644,root,root,755) | |
166 | %{zsh_compdir}/_podman |