Handle EPEL6 help2man options

f38
Orion Poplawski 9 years ago
parent 3f05476d45
commit 1a5fb30e43

@ -52,7 +52,11 @@ perl Makefile.pl -install --prefix=%{_prefix} --destdir=%{buildroot}
# Generate man page
cp %{name}.pl %{name}
%if 0%{?rhel} && 0%{?rhel} <= 6
help2man -N -o %{name}.1 ./%{name}
%else
help2man -N --no-discard-stderr -o %{name}.1 ./%{name}
%endif
sed -i 's/\(.\)/\n\1/' %{name}.1
sed -i 's/PACKAGE/PKGDIFF/g' %{name}.1
install -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1

Loading…
Cancel
Save