45
45
# %%{name}
46
46
%global git0 %{container_base_url }/%{name }
47
47
48
- # dnsname
49
- %global repo_plugins dnsname
50
- %global git_plugins %{container_base_url }/%{repo_plugins }
51
- %global commit_plugins 18822f9a4fb35d1349eb256f4cd2bfd372474d84
52
- %global import_path_plugins %{container_base_path }/%{repo_plugins }
53
-
54
48
Name: podman
55
49
%if %{defined copr_build }
56
50
Epoch: 102
@@ -76,7 +70,6 @@ Summary: Manage Pods, Containers and Container Images
76
70
URL: https://%{name }.io/
77
71
# All SourceN files fetched from upstream
78
72
Source0: %{git0 }/archive/v%{version_no_tilde }.tar.gz
79
- Source1: %{git_plugins }/archive/%{commit_plugins }/%{repo_plugins }-%{commit_plugins }.tar.gz
80
73
Provides: %{name }-manpages = %{epoch }:%{version }-%{release }
81
74
BuildRequires: %{_bindir }/envsubst
82
75
%if %{defined build_with_btrfs }
@@ -181,19 +174,6 @@ run %{name}-remote in production.
181
174
manage pods, containers and container images. %{name }-remote supports ssh
182
175
connections as well.
183
176
184
- %package plugins
185
- Summary: Plugins for %{name }
186
- Requires: dnsmasq
187
- Recommends: gvisor-tap-vsock
188
-
189
- %description plugins
190
- This plugin sets up the use of dnsmasq on a given CNI network so
191
- that Pods can resolve each other by name. When configured,
192
- the pod and its IP address are added to a network specific hosts file
193
- that dnsmasq will read in. Similarly, when a pod
194
- is removed from the network, it will remove the entry from the hosts
195
- file. Each CNI network will have its own dnsmasq instance.
196
-
197
177
%package -n %{name }sh
198
178
Summary: Confined login and user shell using %{name }
199
179
Requires: %{name } = %{epoch }:%{version }-%{release }
@@ -224,9 +204,6 @@ sed -i "s/^const RawVersion = .*/const RawVersion = \"##VERSION##-##SHORT_SHA##\
224
204
sed -i "s/^var Version.*/var Version, err = semver.ParseTolerant(rawversion.RawVersion)/" version/version.go
225
205
%endif
226
206
227
- # untar dnsname
228
- tar zxf %{SOURCE1 }
229
-
230
207
%build
231
208
%set_build_flags
232
209
export CGO_CFLAGS=$CFLAGS
@@ -269,19 +246,6 @@ LDFLAGS=''
269
246
270
247
%{__make} docs docker-docs
271
248
272
- # build dnsname the old way otherwise it fails on koji
273
- cd %{repo_plugins }-%{commit_plugins }
274
- mkdir _build
275
- cd _build
276
- mkdir -p src/%{container_base_path }
277
- ln -s ../../../../ src/%{import_path_plugins }
278
- cd ..
279
- ln -s vendor src
280
- export GOPATH= $(pwd)/_build:$(pwd)
281
- %define gomodulesmode GO111MODULE= off
282
- %gobuild -o bin/dnsname %{import_path_plugins }/plugins/meta/dnsname
283
- cd ..
284
-
285
249
%install
286
250
install -dp %{buildroot }%{_unitdir }
287
251
PODMAN_VERSION=%{version } %{__make} PREFIX=%{buildroot }%{_prefix } ETCDIR=%{_sysconfdir } \
@@ -298,11 +262,6 @@ PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{_sysc
298
262
299
263
sed -i 's;%{buildroot };;g' %{buildroot }%{_bindir }/docker
300
264
301
- # install dnsname plugin
302
- cd %{repo_plugins }-%{commit_plugins }
303
- %{__make} PREFIX= %{_prefix } DESTDIR= %{buildroot } install
304
- cd ..
305
-
306
265
# do not include docker and podman-remote man pages in main package
307
266
for file in `find %{buildroot }%{_mandir }/man[15] -type f | sed "s,%{buildroot },," | grep -v -e remote -e docker`; do
308
267
echo "$file*" >> podman.file-list
@@ -357,12 +316,6 @@ cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/
357
316
%files tests
358
317
%{_datadir }/%{name }/test
359
318
360
- %files plugins
361
- %license %{repo_plugins }-%{commit_plugins }/LICENSE
362
- %doc %{repo_plugins }-%{commit_plugins }/{README.md,README_PODMAN.md}
363
- %dir %{_libexecdir }/cni
364
- %{_libexecdir }/cni/dnsname
365
-
366
319
%files -n %{name }sh
367
320
%{_bindir }/%{name }sh
368
321
0 commit comments