From b62308d3ffa44d8becb08112c303a6a35a5c75e7 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 6 Feb 2020 06:50:12 -0500 Subject: [PATCH] do not install remote files for centos7 Signed-off-by: Lokesh Mandvekar --- podman.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/podman.spec b/podman.spec index d5aeb9c..9478349 100644 --- a/podman.spec +++ b/podman.spec @@ -514,6 +514,13 @@ for file in `find %{buildroot}%{_mandir}/man[15] -type f | sed "s,%{buildroot},, echo "$file*" >> podman.file-list done +# do not install remote manpages on centos7 +%if 0%{?centos} < 8 +rm -rf %{buildroot}%{_mandir}/man1/docker-remote.1 +rm -rf %{buildroot}%{_mandir}/man1/%{name}-remote.1 +rm -rf %{buildroot}%{_mandir}/man5/%{name}-remote.conf.5 +%endif + # source codes for building projects %if 0%{?with_devel} install -d -p %{buildroot}/%{gopath}/src/%{import_path}/