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