From 835cfbc05f873e2ac30e9aa03b0cea7e7b9b1ced Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 1 Mar 2024 17:51:51 +0100 Subject: [PATCH] [CI:BUILD] rpm: Put the podmansh(1) manual in the podmansh sub-package ... and fix the style. Currently, the podmansh(1) manual is shipped by the podman package. It makes one wonder where the binary is, since they can read the manual. [NO NEW TESTS NEEDED] Fixes: 3efaffae43cb1650 ("New command: podmansh") Signed-off-by: Debarshi Ray --- rpm/podman.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpm/podman.spec b/rpm/podman.spec index 294fb5b48c..0a807a536a 100644 --- a/rpm/podman.spec +++ b/rpm/podman.spec @@ -263,8 +263,8 @@ PODMAN_VERSION=%{version} %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDI sed -i 's;%{buildroot};;g' %{buildroot}%{_bindir}/docker # do not include docker and podman-remote man pages in main package -for file in `find %{buildroot}%{_mandir}/man[15] -type f | sed "s,%{buildroot},," | grep -v -e remote -e docker`; do - echo "$file*" >> podman.file-list +for file in `find %{buildroot}%{_mandir}/man[15] -type f | sed "s,%{buildroot},," | grep -v -e %{name}sh.1 -e remote -e docker`; do + echo "$file*" >> %{name}.file-list done rm -f %{buildroot}%{_mandir}/man5/docker*.5 @@ -319,6 +319,7 @@ cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/ %files -n %{name}sh %{_bindir}/%{name}sh +%{_mandir}/man1/%{name}sh.1* %changelog %if %{defined autochangelog}