Skip to content

Commit caee76e

Browse files
Merge pull request #20790 from lsm5/rpm-remove-dnsname
[CI:BUILD] rpm: remove dnsname
2 parents 6b592bd + ac3d570 commit caee76e

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

rpm/podman.spec

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@
4545
# %%{name}
4646
%global git0 %{container_base_url}/%{name}
4747

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-
5448
Name: podman
5549
%if %{defined copr_build}
5650
Epoch: 102
@@ -76,7 +70,6 @@ Summary: Manage Pods, Containers and Container Images
7670
URL: https://%{name}.io/
7771
# All SourceN files fetched from upstream
7872
Source0: %{git0}/archive/v%{version_no_tilde}.tar.gz
79-
Source1: %{git_plugins}/archive/%{commit_plugins}/%{repo_plugins}-%{commit_plugins}.tar.gz
8073
Provides: %{name}-manpages = %{epoch}:%{version}-%{release}
8174
BuildRequires: %{_bindir}/envsubst
8275
%if %{defined build_with_btrfs}
@@ -181,19 +174,6 @@ run %{name}-remote in production.
181174
manage pods, containers and container images. %{name}-remote supports ssh
182175
connections as well.
183176

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-
197177
%package -n %{name}sh
198178
Summary: Confined login and user shell using %{name}
199179
Requires: %{name} = %{epoch}:%{version}-%{release}
@@ -224,9 +204,6 @@ sed -i "s/^const RawVersion = .*/const RawVersion = \"##VERSION##-##SHORT_SHA##\
224204
sed -i "s/^var Version.*/var Version, err = semver.ParseTolerant(rawversion.RawVersion)/" version/version.go
225205
%endif
226206

227-
# untar dnsname
228-
tar zxf %{SOURCE1}
229-
230207
%build
231208
%set_build_flags
232209
export CGO_CFLAGS=$CFLAGS
@@ -269,19 +246,6 @@ LDFLAGS=''
269246

270247
%{__make} docs docker-docs
271248

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-
285249
%install
286250
install -dp %{buildroot}%{_unitdir}
287251
PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{_sysconfdir} \
@@ -298,11 +262,6 @@ PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{_sysc
298262

299263
sed -i 's;%{buildroot};;g' %{buildroot}%{_bindir}/docker
300264

301-
# install dnsname plugin
302-
cd %{repo_plugins}-%{commit_plugins}
303-
%{__make} PREFIX=%{_prefix} DESTDIR=%{buildroot} install
304-
cd ..
305-
306265
# do not include docker and podman-remote man pages in main package
307266
for file in `find %{buildroot}%{_mandir}/man[15] -type f | sed "s,%{buildroot},," | grep -v -e remote -e docker`; do
308267
echo "$file*" >> podman.file-list
@@ -357,12 +316,6 @@ cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/
357316
%files tests
358317
%{_datadir}/%{name}/test
359318

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-
366319
%files -n %{name}sh
367320
%{_bindir}/%{name}sh
368321

0 commit comments

Comments
 (0)