]>
Commit | Line | Data |
---|---|---|
18c175b8 JP |
1 | Summary: A tool for managing OCI containers and pods |
2 | Name: podman | |
488b519b | 3 | Version: 3.2.2 |
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 | |
488b519b | 9 | # Source0-md5: d0788c56ad243b6c3e585240bc691526 |
35a38226 | 10 | Source1: policy.json |
00346cb1 | 11 | Source2: registries.conf |
096dadfb | 12 | Patch0: %{name}-seccomp_32bit.patch |
18c175b8 | 13 | URL: https://github.com/containers/podman |
cbf5965c | 14 | BuildRequires: device-mapper-devel |
18c175b8 JP |
15 | BuildRequires: go-md2man |
16 | BuildRequires: golang | |
17 | BuildRequires: golang-varlink | |
cbf5965c JP |
18 | BuildRequires: gpgme-devel |
19 | BuildRequires: libseccomp-devel | |
20 | BuildRequires: pkgconfig | |
93c72252 | 21 | BuildRequires: rpm-build >= 4.6 |
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 | ||
31 | %description | |
32 | Podman (the POD MANager) is a tool for managing containers and images, | |
33 | volumes mounted into those containers, and pods made from groups of | |
34 | containers. Podman is based on libpod, a library for container | |
35 | lifecycle management that is also contained in this repository. The | |
36 | libpod library provides APIs for managing containers, pods, container | |
37 | images, and volumes. | |
38 | ||
93c72252 JP |
39 | %package -n bash-completion-podman |
40 | Summary: bash-completion for podman | |
41 | Group: Applications/Shells | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: bash-completion >= 2.0 | |
44 | BuildArch: noarch | |
45 | ||
46 | %description -n bash-completion-podman | |
47 | This package provides bash-completion for podman. | |
48 | ||
49 | %package -n fish-completion-podman | |
50 | Summary: Fish completion for podman command | |
51 | Group: Applications/Shells | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | Requires: fish | |
54 | BuildArch: noarch | |
55 | ||
56 | %description -n fish-completion-podman | |
57 | Fish completion for podman command. | |
58 | ||
59 | %package -n zsh-completion-podman | |
60 | Summary: Zsh completion for podman command | |
61 | Group: Applications/Shells | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | Requires: zsh | |
64 | BuildArch: noarch | |
65 | ||
66 | %description -n zsh-completion-podman | |
67 | Zsh completion for podman command. | |
68 | ||
18c175b8 JP |
69 | %prep |
70 | %setup -q | |
096dadfb JP |
71 | cd vendor/github.com/containers/common |
72 | %patch0 -p1 | |
18c175b8 JP |
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 | ||
93c72252 | 92 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/containers,%{bash_compdir},%{fish_compdir},%{zsh_compdir}} |
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 | |
00346cb1 | 107 | cp -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/containers |
35a38226 | 108 | |
93c72252 JP |
109 | $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{bash_compdir}/podman bash |
110 | $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{fish_compdir}/podman.fish fish | |
111 | $RPM_BUILD_ROOT%{_bindir}/podman completion -f $RPM_BUILD_ROOT%{zsh_compdir}/_podman zsh | |
112 | ||
18c175b8 JP |
113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
118 | %doc README.md changelog.txt | |
94a7f745 | 119 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cni/net.d/87-podman-bridge.conflist |
35a38226 JP |
120 | %dir %{_sysconfdir}/containers |
121 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/policy.json | |
00346cb1 | 122 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/registries.conf |
18c175b8 JP |
123 | %attr(755,root,root) %{_bindir}/podman |
124 | %attr(755,root,root) %{_bindir}/podman-remote | |
125 | %{systemdunitdir}/podman.service | |
126 | %{systemdunitdir}/podman.socket | |
a6a3c572 JP |
127 | %{systemdunitdir}/podman-auto-update.service |
128 | %{systemdunitdir}/podman-auto-update.timer | |
18c175b8 JP |
129 | %{systemduserunitdir}/podman.service |
130 | %{systemduserunitdir}/podman.socket | |
a6a3c572 JP |
131 | %{systemduserunitdir}/podman-auto-update.service |
132 | %{systemduserunitdir}/podman-auto-update.timer | |
18c175b8 JP |
133 | %{_mandir}/man1/podman*.1* |
134 | %{_mandir}/man5/containers-mounts.conf.5* | |
135 | %{_mandir}/man5/oci-hooks.5* | |
e7ee545a | 136 | /usr/lib/tmpfiles.d/podman.conf |
93c72252 JP |
137 | |
138 | %files -n bash-completion-podman | |
139 | %defattr(644,root,root,755) | |
140 | %{bash_compdir}/podman | |
141 | ||
142 | %files -n fish-completion-%{name} | |
143 | %defattr(644,root,root,755) | |
144 | %{fish_compdir}/podman.fish | |
145 | ||
146 | %files -n zsh-completion-%{name} | |
147 | %defattr(644,root,root,755) | |
148 | %{zsh_compdir}/_podman |