use the package name as program suite in man pages

This commit is contained in:
David Tardon 2016-03-03 07:55:08 +01:00
parent 02d890518b
commit a6428e8369

View File

@ -67,7 +67,7 @@ rm -rf %{buildroot}/%{_docdir}/%{name}
# generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in cdr2raw cmx2raw cdr2xhtml cmx2xhtml cdr2text cmx2text; do
help2man -N -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
done
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 0644 cdr2*.1 cmx2*.1 %{buildroot}/%{_mandir}/man1